/* ============================================
   Millennium Falcon Construction
   Architectural Precision Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --navy: #1e3a5f;
  --navy-deep: #0f2440;
  --navy-light: #2a4f7a;
  --gold: #a07c28;
  --gold-light: #c9a24e;
  --gold-muted: #8a6b1f;
  --white: #ffffff;
  --off-white: #f7f5f0;
  --warm-gray: #e8e4dc;
  --mid-gray: #9a9590;
  --dark-gray: #3d3935;
  --text: #1a1714;
  --text-light: #4a4440;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

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

  --max-width: 1200px;
  --max-width-narrow: 800px;

  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.1);
  --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.12);

  --radius-sm: 2px;
  --radius-md: 4px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.005em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

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

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--gold);
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--gold);
}

.section-intro {
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}

.service-area__list {
  margin-top: var(--space-sm);
}

p {
  max-width: 65ch;
}

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

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

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

.section--bg {
  background-color: var(--off-white);
}

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

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy h4,
.section--navy .kicker {
  color: var(--gold-light);
}

.gold-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: var(--space-sm) 0 var(--space-md);
  border: none;
}

.text-center {
  text-align: center;
}

.text-center .gold-rule {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

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

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  transition: var(--transition);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.2;
  text-decoration: none;
}

.site-logo span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
}

.site-nav--open {
  display: block;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__link {
  display: block;
  padding: 0.75rem var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  transition: var(--transition);
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--gold);
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, transparent 50%),
    linear-gradient(225deg, rgba(212, 168, 67, 0.1) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h4,
.hero .kicker {
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  max-width: 14ch;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
}

.hero .gold-rule {
  margin-bottom: var(--space-lg);
}

/* Geometric accent */
.hero__accent {
  display: none;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  gap: var(--space-md);
}

.service-card {
  background: var(--white);
  padding: var(--space-lg);
  border: 1px solid var(--warm-gray);
  position: relative;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card:hover::before {
  width: 100%;
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.service-card h3 {
  margin-bottom: var(--space-xs);
}

.service-card p {
  color: var(--text-light);
}

.service-card__link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition);
}

.service-card__link:hover {
  color: var(--navy);
}

.service-card__link::after {
  content: ' \2192';
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 100%;
  background: rgba(212, 168, 67, 0.06);
  transform: skewX(-15deg);
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto var(--space-md);
}

.cta-banner .btn-group {
  justify-content: center;
}

/* --- About Section --- */
.about-intro {
  display: grid;
  gap: var(--space-lg);
}

.about-intro__text p {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.about-intro__text p:first-of-type {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.85;
}

.about-photo {
  background: var(--warm-gray);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.85rem;
  font-style: italic;
}

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

.value-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.value-item:last-child {
  border-bottom: none;
}

.value-item h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.3rem;
}

.value-item p {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Services Detail --- */
.service-detail {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--warm-gray);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--warm-gray);
  line-height: 1;
}

.service-detail__content h3 {
  margin-bottom: var(--space-xs);
}

.service-detail__content p {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.service-detail__features {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.service-detail__features li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.service-detail__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

/* Process Section */
.process-steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  padding-left: var(--space-lg);
  position: relative;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--warm-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--mid-gray);
  transition: var(--transition);
}

.gallery-item:nth-child(1) .gallery-item__placeholder { background: #d4cfc6; }
.gallery-item:nth-child(2) .gallery-item__placeholder { background: #c5cdd6; }
.gallery-item:nth-child(3) .gallery-item__placeholder { background: #d6d0c5; }
.gallery-item:nth-child(4) .gallery-item__placeholder { background: #cbc5c0; }
.gallery-item:nth-child(5) .gallery-item__placeholder { background: #bfc8d1; }
.gallery-item:nth-child(6) .gallery-item__placeholder { background: #d1ccc4; }
.gallery-item:nth-child(7) .gallery-item__placeholder { background: #c8c3bc; }
.gallery-item:nth-child(8) .gallery-item__placeholder { background: #c2cbd4; }
.gallery-item:nth-child(9) .gallery-item__placeholder { background: #d4d0c8; }

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-sm);
  background: linear-gradient(transparent, rgba(15, 36, 64, 0.85));
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item__caption {
  transform: translateY(0);
}

.gallery-item:hover .gallery-item__placeholder {
  transform: scale(1.03);
}

.gallery-item__caption h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.gallery-item__caption span {
  font-size: 0.75rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.gallery-filter {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--warm-gray);
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.gallery-filter:hover,
.gallery-filter--active {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

.contact-method {
  padding: var(--space-lg);
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  transition: var(--transition);
}

.contact-method:hover {
  box-shadow: var(--shadow-md);
}

.contact-method h3 {
  margin-bottom: var(--space-xs);
}

.contact-method__value {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: var(--space-xs);
  transition: var(--transition);
  overflow-wrap: break-word;
}

.contact-method__value:hover {
  color: var(--gold);
}

.contact-method p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-methods-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}


.contact-info h3 {
  margin-bottom: var(--space-sm);
}

.service-area {
  padding: var(--space-lg);
  border: 1px solid var(--warm-gray);
}

.service-area h3 {
  margin-bottom: var(--space-xs);
}

.service-area p {
  color: var(--text-light);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.contact-hero-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.contact-hero-methods .btn {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}

.page-header h4,
.page-header .kicker {
  color: var(--gold-light);
  margin-bottom: var(--space-xs);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-xl) 0 var(--space-md);
}

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

.footer-col h4,
.footer-col .footer-heading {
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.footer-col .site-logo {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact li {
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

.footer-contact a {
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.8rem;
}

/* --- Skip Link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ===========================================
   RESPONSIVE — min-width (mobile-first)
   =========================================== */

/* --- Tablet (640px) --- */
@media (min-width: 640px) {
  .contact-hero-methods {
    flex-direction: row;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-methods-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Desktop (960px) --- */
@media (min-width: 960px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    padding: 8rem 0 var(--space-3xl);
  }

  .hero::after {
    height: 120px;
  }

  .page-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .page-header::after {
    height: 80px;
  }

  /* Desktop nav */
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .site-nav__list {
    flex-direction: row;
    gap: var(--space-xs);
  }

  .site-nav__link {
    padding: 0.5rem 0.9rem;
  }

  .site-logo {
    font-size: 1.4rem;
  }

  /* Grid layouts */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-intro {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: var(--space-xl);
  }

  .service-detail {
    grid-template-columns: 80px 1fr;
    align-items: start;
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  /* Hero accent shape */
  .hero__accent {
    display: block;
    position: absolute;
    right: -5%;
    top: 10%;
    width: 45%;
    height: 80%;
    opacity: 0.04;
    border: 2px solid var(--gold);
    transform: rotate(-8deg);
  }

  .hero__accent::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--gold);
  }
}

/* --- Large Desktop (1200px) --- */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .hero {
    padding: 10rem 0 var(--space-3xl);
  }
}
