/* ==========================================================================
   Dynasty Interiors — design system
   Palette and fonts sourced from BRAND.md (derived from the poster).
   ========================================================================== */

:root {
  --color-navy: #0b1b2d;
  --color-navy-light: #16304c;
  --color-gold: #c18d37;
  --color-gold-light: #d9a94c;
  --color-cream: #eeeae7;
  --color-white: #ffffff;
  --color-text: #1c2430;
  --color-text-muted: #5a6472;
  --color-border: #dfd9d2;

  --font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container-width: 1180px;
  --radius: 10px;
  --shadow-soft: 0 8px 24px rgba(11, 27, 45, 0.08);
  --shadow-strong: 0 16px 40px rgba(11, 27, 45, 0.16);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}
p { margin: 0 0 var(--space-2); }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-white);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-navy:hover, .btn-navy:focus-visible {
  background: var(--color-navy-light);
  box-shadow: var(--shadow-soft);
}

.btn-block { width: 100%; justify-content: center; }

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand img {
  height: 44px;
  width: auto;
}
.brand-type {
  font-family: var(--font-heading);
  line-height: 1;
}
.brand-type .brand-dynasty {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}
.brand-type .brand-interiors {
  display: block;
  font-weight: 600;
  font-size: 0.62rem;
  color: var(--color-gold);
  letter-spacing: 0.28em;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.header-cta .btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
.header-call {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-navy);
}
.header-call svg { width: 18px; height: 18px; stroke: var(--color-gold); }
.header-call:hover { color: var(--color-gold); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .header-call { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--color-border); width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(11,27,45,0.94) 0%, rgba(11,27,45,0.86) 45%, rgba(11,27,45,0.72) 100%),
    repeating-linear-gradient(135deg, rgba(193,141,55,0.06) 0 2px, transparent 2px 34px);
  color: var(--color-white);
  overflow: hidden;
}
.hero .container {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-4);
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-2);
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.hero h1 span { color: var(--color-gold-light); }
.hero p.lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.86);
  max-width: 46ch;
  margin-bottom: var(--space-3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--space-3); }

.hero-stats {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-gold-light);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
}

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: var(--space-3);
  backdrop-filter: blur(2px);
}
.hero-panel h2 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}
.hero-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.hero-services li {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  padding: 0.6rem 0.7rem;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border-left: 3px solid var(--color-gold);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Page header (non-home pages) */
.page-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-5) 0 var(--space-4);
}
.page-header .container { max-width: 900px; }
.page-header .eyebrow {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: var(--space-1);
}
.page-header h1 { color: var(--color-white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: var(--space-1); }
.page-header p { color: rgba(255,255,255,0.82); max-width: 60ch; margin-bottom: 0; }

/* ==========================================================================
   Sections & shared components
   ========================================================================== */
section { padding: var(--space-5) 0; }
.section-cream { background: var(--color-cream); }
.section-navy { background: var(--color-navy); color: var(--color-white); }
.section-navy h2, .section-navy h3 { color: var(--color-white); }

.section-head {
  max-width: 62ch;
  margin: 0 auto var(--space-4);
  text-align: center;
}
.section-head .eyebrow {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 0.5rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--color-text-muted); margin-bottom: 0; }
.section-navy .section-head p { color: rgba(255,255,255,0.78); }

.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Service cards */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.service-card .service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 2px solid var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.service-card .service-icon svg { width: 26px; height: 26px; stroke: var(--color-gold); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.94rem; margin-bottom: 0; }
.service-card .service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

/* Project cards */
.project-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.project-card .project-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-cream);
}
.project-card .project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.project-card:hover .project-media img { transform: scale(1.05); }
.project-card .project-body { padding: var(--space-3); }
.project-card .project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.35rem;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.project-card p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 0; }

/* Testimonial */
.testimonial {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}
.testimonial p.quote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.testimonial .attribution {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.92rem;
}
.testimonial .attribution span {
  display: block;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Gallery (project pages) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery button {
  padding: 0; border: none; background: none; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.06); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(11,27,45,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 8px; }
.lightbox figcaption { color: rgba(255,255,255,0.85); text-align: center; margin-top: var(--space-1); font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close { top: var(--space-3); right: var(--space-3); }
.lightbox-prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-3); top: 50%; transform: translateY(-50%); }

/* Steps / process list */
.steps { display: grid; gap: var(--space-2); }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-2);
  align-items: start;
}
.step .step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold-light);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { margin-bottom: 0.2rem; font-size: 1.02rem; }
.step p { color: var(--color-text-muted); margin-bottom: 0; font-size: 0.94rem; }

/* CTA band */
.cta-band {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-white); margin-bottom: 0.3rem; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; }
.cta-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2);
}
.breadcrumb a { color: var(--color-gold-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-2); }
.form-row { display: grid; gap: var(--space-2); grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--color-text-muted); }
.form-success {
  background: #f2f8f1;
  border: 1px solid #bfe0bb;
  color: #2c5e28;
  padding: var(--space-2);
  border-radius: 8px;
  margin-bottom: var(--space-2);
}
.form-success[hidden] { display: none; }

.contact-details { display: grid; gap: var(--space-2); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
}
.contact-detail .icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
}
.contact-detail .icon svg { width: 20px; height: 20px; stroke: var(--color-gold-light); }
.contact-detail h3 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.contact-detail p { margin-bottom: 0; color: var(--color-text-muted); font-size: 0.92rem; }
.contact-detail a:hover { color: var(--color-gold); }

.placeholder-flag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fbe9c9;
  color: #7a5a10;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-2); }
.footer-brand img { height: 38px; }
.footer-brand .brand-dynasty { color: var(--color-white); font-size: 1.05rem; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-contact-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-actions .btn { font-size: 0.85rem; padding: 0.7rem 1.1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--color-gold-light); }

/* Sticky mobile contact bar */
.mobile-contact-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 18px rgba(11,27,45,0.12);
}
.mobile-contact-bar .container { display: flex; padding: 0.6rem var(--space-3); gap: 0.6rem; }
.mobile-contact-bar .btn { flex: 1; justify-content: center; padding: 0.75rem 0.5rem; font-size: 0.85rem; }
@media (max-width: 720px) {
  .mobile-contact-bar { display: block; }
  body { padding-bottom: 68px; }
}

/* About page specifics */
.about-figure {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: var(--space-4);
  border-left: 4px solid var(--color-gold);
}
.value-list { display: grid; gap: var(--space-2); }
.value-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.value-list .dot {
  width: 8px; height: 8px; margin-top: 0.5rem; flex: none;
  border-radius: 50%; background: var(--color-gold);
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-gap { display: grid; gap: var(--space-2); }
