/* ============================================
   ACORN BUILDERS - MODERN LIGHT THEME  
   ============================================ */

/* ============================================
   VARIABLES & FONTS
   ============================================ */

/* ===== FONTS ===== */
@font-face {
   font-family: 'Kirvy';
   src: url('../fonts/Kirvy-Regular.otf') format('opentype');
   font-weight: normal;
   font-style: normal;
}

:root {
   /* Colors */
   --color-primary: #E65100;
   /* Orange */
   --color-primary-dark: #BF360C;
   --color-secondary: #183154;
   /* Deep Blue */
   --color-secondary-light: #283593;

   --color-text-body: #424242;
   --color-text-light: #757575;

   --color-bg: #FFFFFF;
   --color-bg-alt: #F5F7FA;
   --color-surface: #FFFFFF;

   --border-color: #E0E0E0;

   /* Typography */
   --font-primary: 'Poppins', 'Gayathri', sans-serif;
   --font-display: 'Kirvy', 'Poppins', sans-serif;

   /* Spacing */
   --space-1: 0.25rem;
   --space-2: 0.5rem;
   --space-4: 1rem;
   --space-8: 2rem;
   --space-16: 4rem;

   /* Shadows */
   --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

   /* Radius */
   --radius-sm: 0.25rem;
   --radius-md: 0.5rem;
   --radius-lg: 1rem;
   --radius-xl: 1.5rem;
   --radius-full: 9999px;

   /* Transitions */
   --transition: all 0.3s ease;

   /* Font Sizes */
   --text-xs: 0.75rem;
   --text-sm: 0.875rem;
   --text-base: 1rem;
   --text-lg: 1.125rem;
   --text-xl: 1.25rem;
   --text-2xl: 1.5rem;
   --text-3xl: 2rem;
   --text-4xl: 3rem;
   --text-hero: 4rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   font-size: 16px;
   overflow-x: hidden;
   /* Prevent horizontal scroll */
   width: 100%;
}

body {
   font-family: var(--font-primary);
   background-color: var(--color-bg);
   color: var(--color-text-body);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
   /* Double safety */
   width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-weight: 700;
   line-height: 1.2;
   color: var(--color-secondary);
}

h1 {
   font-size: var(--text-hero);
}

h2 {
   font-size: var(--text-3xl);
}

h3 {
   font-size: var(--text-2xl);
}

h4 {
   font-size: var(--text-xl);
}

p {
   margin-bottom: var(--space-4);
   max-width: 65ch;
}

a {
   color: var(--color-primary);
   text-decoration: none;
   transition: var(--transition);
}

a:hover {
   color: var(--color-primary-dark);
}

/* Global Image Reset */
img {
   max-width: 100%;
   height: auto;
   display: block;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
   width: 100%;
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 var(--space-8);
}

@media (max-width: 768px) {
   .container {
      padding: 0 var(--space-4);
   }
}

.section {
   padding: var(--space-16) 0;
}

.bg-alt {
   background-color: var(--color-bg-alt);
}

.text-center {
   text-align: center;
}

.text-primary {
   color: var(--color-primary);
}

.text-muted {
   color: var(--color-text-light);
}

.flex-center {
   display: flex;
   align-items: center;
   justify-content: center;
}

/* ============================================
   LAYOUT (Grid, Dividers)
   ============================================ */

/* ===== GRID ===== */
.grid-3 {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 2rem;
}

.grid-2 {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
   gap: 4rem;
   align-items: center;
}

@media (max-width: 768px) {
   .grid-2 {
      grid-template-columns: 1fr;
      gap: 2rem;
   }
}

/* ===== DIVIDERS ===== */
.section-divider {
   position: relative;
   width: 100%;
   overflow: hidden;
   line-height: 0;
}

.section-divider svg {
   position: relative;
   display: block;
   width: calc(100% + 1.3px);
   height: 80px;
}

.section-divider.top {
   transform: rotate(180deg);
}

.divider-wave {
   fill: var(--color-bg-alt);
}

.divider-wave-primary {
   fill: var(--color-primary);
   opacity: 0.1;
}

.divider-wave-secondary {
   fill: var(--color-secondary);
   opacity: 0.05;
}

.divider-slant {
   fill: var(--color-bg);
}

.divider-slant-primary {
   fill: var(--color-primary);
   opacity: 0.08;
}

.divider-combined svg {
   height: 120px;
}

.section-with-divider {
   position: relative;
}

@media (max-width: 768px) {
   .section-divider svg {
      height: 50px;
   }

   .divider-combined svg {
      height: 80px;
   }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* ===== CARDS ===== */
.card {
   background: var(--color-surface);
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-sm);
   border: 1px solid var(--border-color);
   overflow: hidden;
   transition: var(--transition);
}

.card:hover {
   transform: translateY(-5px);
   box-shadow: var(--shadow-lg);
   border-color: var(--color-primary);
}

.card-body {
   padding: var(--space-8);
}

/* ===== BUTTONS ===== */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.75rem 1.5rem;
   border-radius: var(--radius-full);
   font-weight: 600;
   font-size: var(--text-sm);
   transition: var(--transition);
   cursor: pointer;
   border: none;
   gap: 0.5rem;
}

.btn-primary {
   background-color: var(--color-primary);
   color: white;
   box-shadow: 0 4px 6px -1px rgba(230, 81, 0, 0.2);
}

.btn-primary:hover {
   background-color: var(--color-primary-dark);
   transform: translateY(-2px);
   box-shadow: 0 10px 15px -3px rgba(230, 81, 0, 0.3);
   color: white;
}

.btn-outline {
   background-color: transparent;
   border: 2px solid var(--color-primary);
   color: var(--color-primary);
}

.btn-outline:hover {
   background-color: var(--color-primary);
   color: white;
}

.btn-lg {
   padding: 1rem 2rem;
   font-size: var(--text-base);
}

.btn-sm {
   padding: 0.5rem 1rem;
   font-size: var(--text-xs);
}

/* ===== BADGES ===== */
.badge {
   display: inline-block;
   padding: 0.25rem 0.75rem;
   border-radius: var(--radius-full);
   font-size: var(--text-xs);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.badge-primary {
   background-color: rgba(230, 81, 0, 0.1);
   color: var(--color-primary);
}

.badge-success {
   background: #E8F5E9;
   color: #2E7D32;
}

.badge-warning {
   background: #FFF3E0;
   color: #EF6C00;
}

/* ===== NAVIGATION ===== */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   background: rgba(255, 255, 255, 0.9);
   backdrop-filter: blur(10px);
   border-bottom: 1px solid var(--border-color);
   padding: 1rem 0;
}

.nav-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.nav-brand {
   font-size: 1.5rem;
   font-weight: 800;
   color: var(--color-secondary);
   letter-spacing: -0.03em;
}

.nav-menu {
   display: flex;
   gap: 2rem;
   list-style: none;
   align-items: center;
}

.nav-link {
   color: var(--color-text-body);
   font-weight: 500;
   font-size: var(--text-base);
   position: relative;
   padding-bottom: 0.25rem;
}

.nav-link::after {
   content: '';
   position: absolute;
   left: 0;
   bottom: 0;
   width: 0;
   height: 2px;
   background-color: var(--color-primary);
   transition: width 0.3s ease;
}

.nav-link:hover {
   color: var(--color-primary);
}

.nav-link:hover::after {
   width: 100%;
}

.mobile-toggle {
   display: none;
   background: none;
   border: none;
   cursor: pointer;
   color: var(--color-secondary);
   padding: 0.5rem;
}

@media (max-width: 768px) {
   .mobile-toggle {
      display: block;
   }

   .nav-menu {
      position: fixed;
      top: 70px;
      left: 0;
      width: 100%;
      background: white;
      flex-direction: column;
      padding: 2rem;
      gap: 1.5rem;
      border-bottom: 1px solid var(--border-color);
      box-shadow: var(--shadow-md);
      transform: translateY(-150%);
      transition: transform 0.3s ease-in-out;
      z-index: 999;
   }

   .nav-menu.active {
      transform: translateY(0);
      display: flex;
   }
}

/* ===== SHAPES ===== */
.abstract-shape {
   position: absolute;
   z-index: 0;
   pointer-events: none;
}

.shape-circle {
   border-radius: 50%;
   background: var(--color-primary);
}

.shape-square {
   background: var(--color-secondary);
   border-radius: var(--radius-md);
}

.shape-outline-square {
   border: 4px solid var(--color-secondary);
   background: transparent;
   border-radius: var(--radius-md);
}

.shape-outline-circle {
   border: 4px solid var(--color-primary);
   border-radius: 50%;
   background: transparent;
}

.shape-dots {
   background-image: radial-gradient(var(--color-text-light) 2px, transparent 2px);
   background-size: 30px 30px;
   opacity: 0.15;
}

/* ===== PROJECT MODAL ===== */
.modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.8);
   backdrop-filter: blur(5px);
   z-index: 2000;
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
   padding: 2rem;
}

.modal-overlay.active {
   opacity: 1;
   visibility: visible;
}

.modal-content {
   background: white;
   width: 100%;
   max-width: 900px;
   border-radius: var(--radius-xl);
   overflow: hidden;
   position: relative;
   transform: scale(0.9);
   transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
   transform: scale(1);
}

.modal-close {
   position: absolute;
   top: 1rem;
   right: 1rem;
   background: white;
   border: none;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   font-size: 2rem;
   line-height: 1;
   cursor: pointer;
   z-index: 10;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: var(--shadow-md);
   transition: transform 0.2s ease;
}

.modal-close:hover {
   transform: rotate(90deg);
   color: var(--color-primary);
}

.modal-grid {
   display: grid;
   grid-template-columns: 1.2fr 1fr;
}

.modal-image-wrapper {
   height: 100%;
   min-height: 400px;
}

.modal-image-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.modal-info {
   padding: 3rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

@media (max-width: 768px) {
   .modal-grid {
      grid-template-columns: 1fr;
   }

   .modal-image-wrapper {
      height: 250px;
      min-height: auto;
   }

   .modal-info {
      padding: 2rem;
   }
}

/* ===== QUOTE MODAL ===== */
#quote-modal .modal-content {
   max-width: 600px;
}


.hero-title {
   margin-bottom: 1.5rem;
   background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
   background-clip: text;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.hero-subtitle {
   font-size: var(--text-lg);
   color: var(--color-text-body);
   margin-bottom: 2.5rem;
   line-height: 1.8;
}

@media (max-width: 768px) {
   .hero {
      padding-top: 6rem;
   }

   :root {
      --text-hero: 2.5rem;
   }
}

/* ===== ZIG-ZAG PROCESS SECTION ===== */
.process-zigzag-section {
   position: relative;
   padding: 8rem 0;
   overflow: hidden;
}

.zigzag-wrapper {
   position: relative;
   max-width: 1000px;
   margin: 0 auto;
}

/* Central Line */
.zigzag-line {
   position: absolute;
   left: 50%;
   top: 0;
   bottom: 0;
   width: 2px;
   background: var(--color-border);
   transform: translateX(-50%);
   z-index: 0;
}

/* Line Progress (Animated) */
.zigzag-line::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--line-progress, 0%);
   background: var(--color-primary);
   transition: height 0.1s linear;
}

.zigzag-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 8rem;
   position: relative;
   z-index: 1;
}

.zigzag-row:last-child {
   margin-bottom: 0;
}

.zigzag-content,
.zigzag-image {
   width: 45%;
}

.zigzag-content {
   padding: 2rem;
}

.zigzag-image img {
   width: 100%;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-lg);
   transition: transform 0.3s ease;
}

.zigzag-image img:hover {
   transform: translateY(-10px);
}

/* Marker on the line */
.zigzag-marker {
   width: 20px;
   height: 20px;
   background: var(--color-surface);
   border: 4px solid var(--color-primary);
   border-radius: 50%;
   position: absolute;
   left: 50%;
   transform: translateX(-50%) scale(0);
   /* Animates to scale(1) */
   z-index: 2;
   transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Text Styling */
.zigzag-content .step-number {
   font-size: 4rem;
   font-weight: 800;
   color: var(--color-primary);
   opacity: 0.15;
   line-height: 1;
   display: block;
   margin-bottom: 0.5rem;
}

.zigzag-content h3 {
   font-size: 2rem;
   margin-bottom: 1rem;
   color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 768px) {
   .zigzag-line {
      left: 20px;
   }

   .zigzag-row {
      flex-direction: column;
      align-items: flex-start;
      padding-left: 50px;
      margin-bottom: 4rem;
   }

   .zigzag-row.reverse {
      flex-direction: column;
   }

   .zigzag-content,
   .zigzag-image {
      width: 100%;
   }

   .zigzag-marker {
      left: 20px;
   }

   .zigzag-image {
      margin-top: 2rem;
      order: 2;
   }

   .zigzag-content {
      padding: 0;
      order: 1;
   }
}

/* ===== RICH FOOTER ===== */
.footer-rich {
   background-color: #183154;
   color: white;
   padding: 2rem 0 1rem;
   position: relative;
   overflow: hidden;
}

/* Subtle Pattern Overlay */
.footer-rich::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
   background-size: 30px 30px;
   opacity: 0.5;
   pointer-events: none;
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 3rem;
   margin-bottom: 2rem;
   position: relative;
   z-index: 1;
}

.footer-brand {
   font-family: 'Kirvy', sans-serif;
   color: var(--color-primary);
   /* Orange */
   font-size: 2.5rem;
   margin-bottom: 1rem;
}

.footer-desc {
   color: rgba(255, 255, 255, 0.7);
   line-height: 1.8;
   margin-bottom: 1.5rem;
   max-width: 300px;
}

.footer-heading {
   color: white;
   font-size: 1.1rem;
   font-weight: 600;
   margin-bottom: 1.5rem;
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.footer-links {
   list-style: none;
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.footer-links a {
   color: rgba(255, 255, 255, 0.7);
   transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
   color: white;
   padding-left: 5px;
}

.footer-social {
   display: flex;
   gap: 1rem;
}

.social-link {
   width: 40px;
   height: 40px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   transition: all 0.3s ease;
}

.social-link:hover {
   background: var(--color-primary);
   transform: translateY(-3px);
}

.footer-contact-item {
   display: flex;
   gap: 1rem;
   margin-bottom: 1.5rem;
   color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item .material-icons-round {
   color: var(--color-primary);
}

.footer-bottom {
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 1.5rem;
   text-align: center;
   color: rgba(255, 255, 255, 0.5);
   font-size: 0.9rem;
}

@media (max-width: 992px) {
   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 576px) {
   .footer-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
   }
}

/* ===== OFFER POPUP ===== */
.popup-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.8);
   backdrop-filter: blur(5px);
   z-index: 3000;
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
   padding: 1rem;
}

.popup-overlay.active {
   opacity: 1;
   visibility: visible;
}

.popup-content {
   background: white;
   width: 100%;
   max-width: 800px;
   border-radius: var(--radius-lg);
   overflow: hidden;
   position: relative;
   transform: scale(0.9);
   transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   box-shadow: var(--shadow-xl);
}

.popup-overlay.active .popup-content {
   transform: scale(1);
}

.popup-close {
   position: absolute;
   top: 1rem;
   right: 1rem;
   background: white;
   border: none;
   width: 32px;
   height: 32px;
   border-radius: 50%;
   font-size: 1.5rem;
   line-height: 1;
   cursor: pointer;
   z-index: 10;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: var(--shadow-md);
   transition: transform 0.2s ease;
   color: var(--color-text-light);
}

.popup-close:hover {
   transform: rotate(90deg);
   color: var(--color-primary);
}

.popup-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   min-height: 400px;
}

.popup-image {
   background: var(--color-bg-alt);
   position: relative;
   overflow: hidden;
}

.popup-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.popup-placeholder {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--color-primary);
   opacity: 0.2;
}

.popup-placeholder .material-icons-round {
   font-size: 6rem;
}

.popup-text {
   padding: 3rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
   text-align: left;
}

.popup-text h3 {
   font-size: 2rem;
   margin-bottom: 1rem;
   color: var(--color-secondary);
   line-height: 1.2;
}

.popup-text p {
   color: var(--color-text-body);
   margin-bottom: 2rem;
   font-size: 1.1rem;
   line-height: 1.6;
}

.popup-cta {
   align-self: flex-start;
}

@media (max-width: 768px) {
   .popup-grid {
      grid-template-columns: 1fr;
      min-height: auto;
   }

   .popup-image {
      height: 200px;
   }

   .popup-text {
      padding: 2rem;
      text-align: center;
   }

   .popup-cta {
      align-self: center;
   }
}