/* ============================================================
   STONECRAFT — "Stone & Light" Design System
   Premium architectural editorial aesthetic
   ============================================================ */

/* 1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Navy palette */
  --navy-900: #1E1F4D;
  --navy-800: #2B2D6B;
  --navy-700: #3A3C8A;
  --navy-600: #4E50A3;
  --navy-100: #E8E8F4;

  /* Gold palette */
  --gold-600: #C8962E;
  --gold-500: #D4A843;
  --gold-400: #E0BE6A;
  --gold-300: #EBCF8E;
  --gold-100: #FDF6E8;

  /* Neutrals */
  --neutral-900: #1A1A1A;
  --neutral-700: #4A4A4A;
  --neutral-500: #7A7A7A;
  --neutral-300: #B0B0B0;
  --neutral-200: #E0DFDB;
  --neutral-100: #F7F6F3;
  --white: #FFFFFF;

  /* Overlays */
  --overlay-navy: rgba(30, 31, 77, 0.75);
  --overlay-navy-heavy: rgba(30, 31, 77, 0.88);
  --overlay-gold: rgba(200, 150, 46, 0.85);
  --overlay-dark: rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Sizes */
  --container-max: 1280px;
  --container-narrow: 960px;
  --nav-height: 80px;
  --border-radius: 4px;
  --border-radius-lg: 8px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-gold: 0 4px 20px rgba(200,150,46,0.3);
}


/* 2. CSS Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--neutral-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* 3. Typography
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-800);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
}

h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-600);
}

p {
  margin-bottom: 1em;
  color: var(--neutral-700);
}

p:last-child {
  margin-bottom: 0;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white p {
  color: var(--white);
}

.text-white p {
  color: rgba(255,255,255,0.85);
}

.accent-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold-600);
  margin-bottom: var(--space-md);
}


/* 4. Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--cream {
  background-color: var(--neutral-100);
}

.section--gold-tint {
  background-color: var(--gold-100);
}

.section--navy {
  background-color: var(--navy-900);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .accent-line {
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}


/* 5. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--border-radius);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold-600);
  color: var(--white);
}

.btn--gold:hover {
  background: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid var(--navy-800);
}

.btn--outline-navy:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--large {
  padding: 1.1em 2.6em;
  font-size: 0.9rem;
}


/* 6. Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  background: var(--navy-900);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo img {
  height: 42px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-600);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.4s; }

.mobile-menu .btn {
  margin-top: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
  transition-delay: 0.45s;
}

.mobile-menu.active .btn {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__hamburger { display: none; }
}


/* 7. Hero Section
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 31, 77, 0.3) 0%,
    rgba(30, 31, 77, 0.5) 40%,
    rgba(30, 31, 77, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero__content p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s var(--ease-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}


/* 8. Introduction Section
   ------------------------------------------------------------ */
.intro {
  padding: var(--space-3xl) 0;
}

.intro__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.intro__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.intro__images img {
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  width: 100%;
}

.intro__images img:first-child {
  height: 280px;
  grid-column: 1 / -1;
}

.intro__images img:nth-child(2),
.intro__images img:nth-child(3) {
  height: 200px;
}

.intro__text h2 {
  margin-bottom: var(--space-md);
}

.intro__text p {
  font-size: 1.05rem;
}

.intro__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--neutral-200);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

@media (min-width: 1024px) {
  .intro__grid {
    grid-template-columns: 1fr 1fr;
  }
  .intro__images img:first-child {
    height: 340px;
  }
  .intro__images img:nth-child(2),
  .intro__images img:nth-child(3) {
    height: 240px;
  }
}


/* 9. Solutions Section
   ------------------------------------------------------------ */
.solutions__grid {
  display: grid;
  gap: var(--space-md);
}

.solution-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.solution-card__img {
  position: absolute;
  inset: 0;
}

.solution-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.solution-card:hover .solution-card__img img {
  transform: scale(1.08);
}

.solution-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 31, 77, 0.9) 0%,
    rgba(30, 31, 77, 0.2) 60%,
    transparent 100%
  );
  transition: background var(--duration-normal) var(--ease-out);
}

.solution-card:hover .solution-card__overlay {
  background: linear-gradient(
    to top,
    rgba(30, 31, 77, 0.95) 0%,
    rgba(30, 31, 77, 0.4) 70%,
    rgba(30, 31, 77, 0.2) 100%
  );
}

.solution-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 1;
}

.solution-card__content h3 {
  color: var(--white);
  margin-bottom: 0.4rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.solution-card__content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.solution-card:hover .solution-card__content p {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.5rem;
}

.solution-card__accent {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold-600);
  margin-bottom: var(--space-sm);
  transition: width var(--duration-normal) var(--ease-out);
}

.solution-card:hover .solution-card__accent {
  width: 56px;
}

@media (min-width: 768px) {
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solutions__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .solution-card {
    aspect-ratio: 3 / 4;
  }
}


/* 10. Gallery Preview Section
   ------------------------------------------------------------ */
.gallery-preview__grid {
  columns: 2 240px;
  column-gap: var(--space-sm);
}

.gallery-preview__item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-preview__item img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-preview__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-gold);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-preview__item:hover img {
  transform: scale(1.06);
}

.gallery-preview__item:hover::after {
  opacity: 0.3;
}

.gallery-preview__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .gallery-preview__grid {
    columns: 3 240px;
  }
}

@media (min-width: 1024px) {
  .gallery-preview__grid {
    columns: 4 240px;
  }
}


/* 11. Featured Project Section
   ------------------------------------------------------------ */
.featured {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.featured__bg {
  position: absolute;
  inset: 0;
}

.featured__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-navy-heavy);
}

.featured__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: var(--space-3xl) 0;
}

.featured__content h4 {
  margin-bottom: var(--space-sm);
}

.featured__content h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.featured__quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  border-left: 3px solid var(--gold-600);
  padding-left: var(--space-md);
}


/* 12. Benefits Section
   ------------------------------------------------------------ */
.benefit-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  transition: all var(--duration-normal) var(--ease-out);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
}

.benefit-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-600);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--neutral-500);
}


/* 13. FAQ Section
   ------------------------------------------------------------ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--neutral-200);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-800);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-item__question:hover {
  color: var(--gold-600);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: var(--space-sm);
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--gold-600);
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-item__icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-item__answer p {
  padding-bottom: var(--space-md);
  font-size: 0.95rem;
  color: var(--neutral-700);
  line-height: 1.8;
}


/* 14. Clients Section
   ------------------------------------------------------------ */
.clients__category {
  margin-bottom: var(--space-lg);
}

.clients__category h4 {
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
}

.clients__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.clients__list span {
  display: inline-block;
  padding: 0.4em 1em;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--neutral-700);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-out);
}

.clients__list span:hover {
  border-color: var(--gold-600);
  color: var(--gold-600);
}

.clients__count {
  text-align: center;
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-800);
}


/* 15. Downloads Section
   ------------------------------------------------------------ */
.downloads__grid {
  display: grid;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 2px solid var(--neutral-200);
  border-radius: var(--border-radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.download-card:hover {
  border-color: var(--gold-600);
  box-shadow: var(--shadow-sm);
}

.download-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-100);
  border-radius: var(--border-radius);
  color: var(--gold-600);
}

.download-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-600);
  fill: none;
  stroke-width: 1.5;
}

.download-card__text h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.download-card__text p {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin: 0;
}

@media (min-width: 768px) {
  .downloads__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}


/* 16. Contact Section
   ------------------------------------------------------------ */
.contact {
  background: var(--navy-900);
  padding: var(--space-3xl) 0;
}

.contact__grid {
  display: grid;
  gap: var(--space-xl);
}

.contact__form-group {
  margin-bottom: var(--space-md);
}

.contact__form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
  width: 100%;
  padding: 0.85em 1em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.contact__form-group input::placeholder,
.contact__form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
  outline: none;
  border-color: var(--gold-600);
}

.contact__form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
}

.contact__form-group select option {
  background: var(--navy-900);
  color: var(--white);
}

.contact__form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__form-row {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .contact__form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__info {
  color: var(--white);
}

.contact__info h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact__info-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--gold-600);
  fill: none;
  stroke-width: 1.5;
  margin-top: 0.2rem;
}

.contact__info-item p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.95rem;
}

.contact__info-item a {
  color: var(--gold-400);
  transition: color var(--duration-fast) var(--ease-out);
}

.contact__info-item a:hover {
  color: var(--gold-600);
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}


/* 17. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand img {
  height: 36px;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  max-width: 300px;
}

.footer__links h4 {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  margin-bottom: var(--space-sm);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--duration-fast) var(--ease-out);
}

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

.footer__contact p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer__contact a {
  color: var(--gold-400);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer__bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  margin: 0;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}


/* 18. Gallery Page
   ------------------------------------------------------------ */
.gallery-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  background: var(--navy-900);
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,150,46,0.15) 0%, transparent 70%);
}

.gallery-hero h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--space-lg) 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
}

.gallery-filters button {
  padding: 0.55em 1.4em;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-500);
  border: 1px solid var(--neutral-200);
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-out);
}

.gallery-filters button:hover {
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.gallery-filters button.active {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.gallery-masonry {
  columns: 1;
  column-gap: var(--space-sm);
  padding: var(--space-lg) 0;
}

.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.gallery-masonry__item.hidden {
  display: none;
}

.gallery-masonry__item img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-masonry__item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-sm);
  background: linear-gradient(to top, rgba(30,31,77,0.8), transparent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-masonry__item:hover img {
  transform: scale(1.05);
}

.gallery-masonry__item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 480px) {
  .gallery-masonry { columns: 2; }
}

@media (min-width: 768px) {
  .gallery-masonry { columns: 3; }
}

@media (min-width: 1024px) {
  .gallery-masonry { columns: 4; }
}


/* 19. Lightbox
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--duration-fast) var(--ease-out);
  z-index: 1;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--duration-fast) var(--ease-out);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.lightbox__nav:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

.lightbox__prev { left: var(--space-md); }
.lightbox__next { right: var(--space-md); }

.lightbox__counter {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}


/* 20. Scroll Animations
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* 21. Mobile CTA Bar
   ------------------------------------------------------------ */
.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem var(--space-sm);
  gap: 0.6rem;
}

.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.75em;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--border-radius);
  text-align: center;
}

.mobile-cta-bar .mobile-cta--call {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.mobile-cta-bar .mobile-cta--quote {
  background: var(--gold-600);
  color: var(--white);
}

.mobile-cta-bar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (min-width: 1024px) {
  .mobile-cta-bar { display: none; }
}

/* Add bottom padding to body for mobile CTA bar */
@media (max-width: 1023px) {
  body {
    padding-bottom: 70px;
  }
}


/* 22. Responsive Refinements
   ------------------------------------------------------------ */

/* Gallery hero needs top padding for fixed nav */
.gallery-hero {
  padding-top: var(--nav-height);
}

/* Mobile section spacing reductions */
@media (max-width: 767px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .intro {
    padding: var(--space-xl) 0;
  }

  .contact {
    padding: var(--space-xl) 0;
  }

  .hero {
    padding-bottom: var(--space-xl);
  }

  .hero__scroll {
    display: none;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    text-align: center;
  }

  .featured__content {
    padding: var(--space-xl) 0;
  }

  .featured {
    min-height: 400px;
  }

  .intro__stats {
    gap: var(--space-sm);
  }

  .stat__value {
    font-size: 1.5rem;
  }

  .faq-item__question {
    font-size: 1.05rem;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__prev { left: var(--space-xs); }
  .lightbox__next { right: var(--space-xs); }
}

/* Tablet refinements */
@media (min-width: 768px) and (max-width: 1023px) {
  .solutions__grid .solution-card {
    aspect-ratio: 16 / 10;
  }
}

/* Large desktop generous spacing */
@media (min-width: 1280px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .hero {
    padding-bottom: calc(var(--space-3xl) + 2rem);
  }

  .container {
    padding: 0 var(--space-lg);
  }
}

/* Premium visual detail — subtle grain texture on dark sections */
.hero__overlay::after,
.featured__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

/* FAQ answer links */
.faq-item__answer a {
  color: var(--gold-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item__answer a:hover {
  color: var(--navy-800);
}


/* 23. Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
