/* YOUI Painting — Modern Design System */

:root {
  /* Studio navy – from original YOUI brand */
  --navy: #0d1a34;
  --navy-light: #152945;
  --navy-mid: #1c3454;
  --navy-soft: #243d62;

  /* Canvas neutrals – warm, gallery-like */
  --cream: #faf7f2;
  --cream-dark: #e8e2d8;
  --cream-deep: #d4ccc0;

  /* Gold – primary accent, brush & frame */
  --gold: #b8944f;
  --gold-light: #d4b978;
  --gold-deep: #967836;
  --gold-glow: rgba(184, 148, 79, 0.28);

  /* Pigment accents – used sparingly */
  --terracotta: #b86a52;
  --sage: #6b7f6e;
  --slate: #5c6678;

  --white: #ffffff;
  --text: #1a2438;
  --text-muted: #5a6272;
  --text-light: rgba(255, 255, 255, 0.88);
  --shadow-sm: 0 2px 8px rgba(13, 26, 52, 0.06);
  --shadow-md: 0 8px 32px rgba(13, 26, 52, 0.1);
  --shadow-lg: 0 20px 60px rgba(13, 26, 52, 0.15);
  --shadow-gold: 0 6px 24px rgba(184, 148, 79, 0.28);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  background-image: linear-gradient(180deg, var(--cream) 0%, #f3efe8 100%);
  background-attachment: fixed;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  overflow: visible;
  background: linear-gradient(180deg, rgba(13, 26, 52, 0.82) 0%, rgba(13, 26, 52, 0.48) 72%, transparent 100%);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(13, 26, 52, 0.98);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(13, 26, 52, 0.45);
}

.site-header.scrolled .logo-text {
  text-shadow: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(13, 26, 52, 0.5);
  transition: background var(--transition), color var(--transition), text-shadow var(--transition);
}

.site-header.scrolled .main-nav a {
  color: var(--text-light);
  text-shadow: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  margin-left: 0.75rem;
  padding: 0.6rem 1.25rem !important;
  background: linear-gradient(145deg, var(--gold-light), var(--gold) 60%, var(--gold-deep)) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 10px var(--gold-glow), 0 1px 4px rgba(13, 26, 52, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-shadow: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold) !important;
  background: linear-gradient(145deg, #e2cb8e, var(--gold-light) 50%, var(--gold)) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(13, 26, 52, 0.9) 0%, rgba(28, 52, 84, 0.72) 48%, rgba(13, 26, 52, 0.88) 100%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--navy);
  box-shadow: 0 2px 12px var(--gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(145deg, #e2cb8e 0%, var(--gold-light) 50%, var(--gold) 100%);
}

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

.btn-outline:hover {
  border-color: var(--gold-light);
  background: rgba(212, 185, 120, 0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 26, 52, 0.84) 0%, rgba(28, 52, 84, 0.7) 50%, rgba(13, 26, 52, 0.86) 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--cream), transparent);
}

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

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--white);
}

.page-hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  max-width: 560px;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ── Intro / About block ── */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.intro-text {
  grid-column: 1;
  grid-row: 1;
}

.intro-tagline {
  grid-column: 1;
  grid-row: 2;
  margin-top: -1rem;
}

.intro-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 440px;
  box-shadow: var(--shadow-lg);
  background: var(--cream-dark);
}

.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.intro-text p:last-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  font-style: italic;
}

/* ── Navigation Cards ── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.nav-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.nav-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 26, 52, 0.93) 0%, rgba(13, 26, 52, 0.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background var(--transition);
}

.nav-card:hover .nav-card-overlay {
  background: linear-gradient(to top, rgba(13, 26, 52, 0.96) 0%, rgba(28, 52, 84, 0.45) 100%);
}

.nav-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.nav-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

.nav-card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-card:hover .nav-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Services ── */
.services-grid {
  display: grid;
  gap: 2rem;
}

.service-category {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-category-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  opacity: 0.55;
}

.service-category h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.service-category .tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-items {
  display: grid;
  gap: 1.5rem;
}

.service-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Projects ── */
.project-section {
  margin-bottom: 4rem;
}

.project-section:last-child { margin-bottom: 0; }

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-dark);
}

.project-header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
}

.project-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 26, 52, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition);
}

.contact-card:hover { box-shadow: var(--shadow-sm); }

.contact-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  color: var(--text);
  font-size: 1rem;
}

.contact-card a:hover { color: var(--gold-deep); }

.contact-card .highlight {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-form-wrap > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group label .req { color: #e05; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 148, 79, 0.18);
}

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

.form-group input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px dashed var(--cream-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--cream);
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ── About / Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--cream-dark);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.review-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.review-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.review-card .btn {
  font-size: 0.85rem;
  padding: 0.65rem 1.5rem;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184, 148, 79, 0.1) 0%, transparent 60%);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-light);
  margin-bottom: 2rem;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  grid-column: 1;
  justify-self: start;
}

.footer-brand img { height: 40px; }

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  grid-column: 2;
  justify-self: center;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.footer-social a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(212, 185, 120, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer-social a:first-child:hover {
  border-color: rgba(110, 155, 210, 0.55);
  background: rgba(40, 103, 178, 0.2);
}

.footer-social a:last-child:hover {
  border-color: rgba(230, 90, 80, 0.5);
  background: rgba(200, 40, 35, 0.18);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Quote Popup ── */
.quote-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
  width: 300px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.quote-popup.visible {
  transform: translateY(0);
  opacity: 1;
}

.quote-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.quote-popup-close:hover { color: var(--white); }

.quote-popup h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.quote-popup p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ── Animations ── */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enhanced .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Prose & content blocks ── */
.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

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

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.lead--left { text-align: left; margin-left: 0; margin-right: 0; }

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--navy);
  text-align: center;
  padding: 2rem 0;
  margin: 1.5rem 0;
  position: relative;
}

.pull-quote::before,
.pull-quote::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-inline: auto;
}

.pull-quote::before { margin-bottom: 1.25rem; }
.pull-quote::after { margin-top: 1.25rem; }

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), transparent);
  margin: 0 auto 2rem;
}

.content-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.content-block h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.content-block h4:first-of-type { margin-top: 0; }

/* ── Why Choose ── */
.why-choose {
  margin-top: 3rem;
  padding: 3rem;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.why-choose::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 148, 79, 0.14) 0%, transparent 70%);
  border-radius: 50%;
}

.why-choose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
}

@media (min-width: 768px) {
  .why-list {
    grid-template-columns: repeat(6, 1fr);
    max-width: 960px;
    margin-inline: auto;
  }

  .why-item:nth-child(1) { grid-column: 1 / 3; }
  .why-item:nth-child(2) { grid-column: 3 / 5; }
  .why-item:nth-child(3) { grid-column: 5 / 7; }
  .why-item:nth-child(4) { grid-column: 2 / 4; }
  .why-item:nth-child(5) { grid-column: 4 / 6; }
}

@media (min-width: 1200px) {
  .why-list {
    grid-template-columns: repeat(5, 1fr);
    max-width: none;
  }

  .why-item:nth-child(1),
  .why-item:nth-child(2),
  .why-item:nth-child(3),
  .why-item:nth-child(4),
  .why-item:nth-child(5) {
    grid-column: auto;
  }
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), transform var(--transition);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.why-item::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(184, 148, 79, 0.45);
}

.why-item span {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Reviews list (About) ── */
.reviews-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.reviews-block h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.reviews-block .reviews-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.review-links {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.review-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.review-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: rgba(184, 148, 79, 0.35);
}

.review-link .star {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.review-link a {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.review-link a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

.review-link .review-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.review-link .review-text em {
  font-style: normal;
  color: var(--text);
}

/* ── Project intro ── */
.project-intro {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.project-intro h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.project-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── Nav card original labels ── */
.nav-card-label-only {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: auto;
}

.nav-card-overlay:has(.nav-card-label-only) {
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

/* ── Decorative section bg ── */
.section--warm {
  background: var(--white);
  position: relative;
}

.section--warm::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(184, 148, 79, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(107, 127, 110, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.section--warm > .container { position: relative; }

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  margin: 3rem 0;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--navy);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Responsive ── */

/* Wide screens – comfortable reading width on large monitors */
@media (min-width: 1400px) {
  :root { --max-width: 1280px; }
  .hero-content { max-width: 900px; }
  .section-header { max-width: 720px; }
}

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

/* Tablet landscape / small laptop */
@media (max-width: 1024px) {
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .intro-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-text,
  .intro-visual,
  .intro-tagline {
    grid-column: auto;
    grid-row: auto;
  }
  .intro-visual { aspect-ratio: 16/10; max-height: 360px; margin-bottom: 0; align-self: auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .service-category { padding: 2rem; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root { --header-height: 70px; }

  html { font-size: 15px; }

  .container {
    width: min(var(--max-width), 100% - 2rem);
  }

  .menu-toggle { display: flex; z-index: 1001; }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-height));
    z-index: 9999;
    background: rgba(13, 26, 52, 0.98);
    flex-direction: column;
    padding: 1.25rem 1rem 2rem;
    gap: 0;
    transform: translateX(100%);
    opacity: 1;
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.menu-open .site-header {
    z-index: 10000;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .logo-text { font-size: 1.15rem; }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: calc(var(--header-height) + 1.5rem) 1.25rem 3rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

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

  .hero-scroll { display: none; }

  .page-hero {
    padding: calc(var(--header-height) + 2.5rem) 0 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section { padding: 3rem 0; }

  .section-header { margin-bottom: 2.5rem; }

  .nav-cards { grid-template-columns: 1fr; gap: 1rem; }
  .nav-card { aspect-ratio: 16/9; }

  .intro-block { gap: 2rem; }
  .intro-text .section-title { text-align: center !important; }
  .intro-text .section-divider { margin-inline: auto; }
  .intro-visual {
    max-height: 320px;
    aspect-ratio: 16/10;
  }
  .intro-visual::before { display: none; }
  .intro-tagline {
    text-align: center !important;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .section--warm {
    padding-top: 2rem !important;
  }

  .lead {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-align: left;
  }

  .pull-quote {
    font-size: 1.25rem;
    padding: 1.5rem 0;
  }

  .stats-strip { grid-template-columns: 1fr; gap: 1.5rem; }

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

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .service-category { padding: 1.75rem; }
  .service-category-header { flex-direction: column; gap: 0.75rem; }
  .service-number { font-size: 2.25rem; }

  .why-choose { padding: 2rem 1.5rem; margin-top: 2rem; }
  .why-list {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .why-item:nth-child(n) { grid-column: auto; }

  .contact-form-wrap { padding: 1.75rem; }
  .contact-info { gap: 1rem; }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  .content-block { padding: 1.75rem; }

  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  .lightbox-close { top: 1rem; right: 1rem; width: 44px; height: 44px; }
  .lightbox-prev,
  .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
  .lightbox-caption {
    bottom: 1rem;
    font-size: 0.8rem;
    padding: 0 1rem;
    text-align: center;
  }

  .quote-popup {
    left: 1rem;
    right: 1rem;
    width: auto;
    bottom: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
    justify-self: center;
  }

  .footer-social {
    grid-column: auto;
    justify-self: center;
  }

  .review-link:hover { transform: none; }
}

/* Smartphones */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .container {
    width: min(var(--max-width), 100% - 1.25rem);
  }

  .logo-link img { height: 40px; }

  .logo-text {
    font-size: 1rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-title { font-size: clamp(2rem, 11vw, 2.75rem); }

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
  }

  .nav-card-label-only {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .section-title { font-size: clamp(1.65rem, 6vw, 2rem); }

  .intro-text p,
  .prose p,
  .project-intro p {
    font-size: 0.975rem;
  }

  .contact-card { padding: 1.35rem; }
  .contact-form-wrap { padding: 1.35rem; }

  .project-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .service-number { font-size: 2rem; }

  .why-choose h3 { font-size: 1.5rem; }

  .reviews-block h3 { font-size: 1.45rem; }

  .review-link { padding: 1rem 1.15rem; }

  .footer-brand img { height: 36px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .hero-actions { max-width: 100%; }
  .project-gallery { grid-template-columns: 1fr; }
  .logo-text { display: none; }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .quote-popup {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  .site-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}
