/* =============================================
   LAYOUT.CSS — Page sections, grids, spacing
   ============================================= */

/* ---- NAVBAR ---- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(245, 242, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(245, 242, 238, 0.97);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar__logo {
  flex-shrink: 0;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */

.hero {
  padding: 160px 24px 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.hero__content {
  max-width: 580px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero__eyebrow-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.82rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

/* Hero visual panel */
.hero__visual {
  padding-left: 46px;
  padding-top: 46px;
  position: relative;
}

.hero__image-wrap {
  border-radius: var(--radius-lg);
  overflow: visible;
  background: transparent;
  display: flex;
  justify-content: center;
  position: relative;
}

/* UPDATE: Replace background gradient with your hero image */
/*.hero__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d5dbd4 0%, #bec8bc 50%, #a8b5a6 100%);
}*/

.hero__image-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(79, 94, 75, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__badge {
  position: absolute;
  bottom: -55px;
  left: -20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999999;
}

.hero__badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(79, 94, 75, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero__badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
}

.hero__badge-text span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ---- SERVICES ---- */

.services {
  padding: var(--section-pad);
  background: var(--color-white);
}

.services__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- OUR WORK ---- */

.work {
  padding: var(--section-pad);
}

.work__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.work__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}

.work__header-left .section-subtitle {
  margin-bottom: 0;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- ABOUT / WHY US ---- */

.about {
  padding: var(--section-pad);
  background: var(--color-primary-gradient);
  color: var(--color-white);
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about .section-label {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.about .section-title {
  color: var(--color-white);
}

.about .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__list-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.about__list-text strong {
  display: block;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 2px;
  font-family: var(--font-heading);
}

.about__list-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__visual-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: background var(--transition);
}

.about__visual-card:hover {
  background: rgba(255, 255, 255, 0.16);
}

.about__visual-card:first-child {
  grid-column: 1 / -1;
}

.about__visual-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 6px;
}

.about__visual-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---- TESTIMONIALS ---- */

.testimonials {
  padding: var(--section-pad);
  background: var(--color-surface);
}

.testimonials__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- CONTACT ---- */

.contact {
  padding: var(--section-pad);
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  padding-top: 8px;
}

.contact__info .section-subtitle {
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(79, 94, 75, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__detail-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.contact__detail-text span {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ---- FOOTER ---- */

.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 24px 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 24px;
  line-height: 1.65;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .hero__inner {
    gap: 48px;
  }
  .about__inner {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 72px 24px;
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 24px 72px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__image-wrap {
    aspect-ratio: 3/2;
    overflow: hidden;
  }

  .hero__badge {
    bottom: -16px;
    left: 16px;
  }

  .hero__stats {
    gap: 24px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__visual {
    grid-template-columns: 1fr 1fr;
  }

  .about__visual-card:first-child {
    grid-column: unset;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .work__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .about__visual {
    grid-template-columns: 1fr;
  }
  .about__visual-card:first-child {
    grid-column: unset;
  }
}
