/* ==========================================================================
   DADDY NOIR — Dark Luxury Design System
   Foundation Stylesheet
   ========================================================================== */

/* ── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* ==========================================================================
   1. CSS Reset + Box Sizing
   ========================================================================== */

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

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ==========================================================================
   2. :root Custom Properties
   ========================================================================== */

:root {
  /* ── Colors ─────────────────────────────────────────────────────────── */
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #0c0c0c;
  --color-bg-tertiary: #080808;
  --color-bg-elevated: #111111;

  --color-accent-primary: #c9a96e;
  --color-accent-secondary: #d4c5a9;
  --color-accent-tertiary: #8b0000;

  --color-text-primary: #e8ded1;
  --color-text-secondary: #8a8078;
  --color-text-muted: #6b6360;
  --color-text-muted-deep: #4a4440;

  --color-border-subtle: rgba(201, 169, 110, 0.08);
  --color-border-medium: rgba(201, 169, 110, 0.15);
  --color-border-active: rgba(201, 169, 110, 0.35);

  --color-gold-glow: rgba(201, 169, 110, 0.12);
  --color-gold-glow-strong: rgba(201, 169, 110, 0.2);

  /* ── Typography ─────────────────────────────────────────────────────── */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --font-weight-body-light: 300;
  --font-weight-body-regular: 400;
  --font-weight-body-medium: 500;
  --font-weight-body-semibold: 600;

  --font-weight-heading-regular: 400;
  --font-weight-heading-medium: 500;
  --font-weight-heading-semibold: 600;
  --font-weight-heading-bold: 700;

  /* ── Spacing ────────────────────────────────────────────────────────── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: 7rem;

  /* ── Borders & Radii ─────────────────────────────────────────────────── */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* ── Transitions ────────────────────────────────────────────────────── */
  --transition-fast: 200ms ease;
  --transition-base: 350ms ease;
  --transition-slow: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-luxury: 800ms cubic-bezier(0.19, 1, 0.22, 1);

  /* ── Z-Index Scale ──────────────────────────────────────────────────── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-grain: 500;
  --z-toast: 600;
}

/* ==========================================================================
   3. Grain / Noise Texture Overlay
   ========================================================================== */

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ==========================================================================
   4. Base Body Styles
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-light);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================================================
   5. Typography Scale
   ========================================================================== */

/* ── Section Label ──────────────────────────────────────────────────── */

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-accent-primary);
  margin-right: var(--space-sm);
  vertical-align: middle;
  opacity: 0.6;
}

/* ── Section Heading ─────────────────────────────────────────────────── */

.section-heading {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-regular);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xl);
}

.section-heading em,
.section-heading i {
  font-style: italic;
  color: var(--color-accent-primary);
}

/* ── Section Body ────────────────────────────────────────────────────── */

.section-body {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-body-regular);
  margin-bottom: var(--space-2xl);
}

.section-body strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-body-medium);
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  padding: 1.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background-color var(--transition-luxury),
    backdrop-filter var(--transition-luxury),
    padding var(--transition-base),
    box-shadow var(--transition-luxury);
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.scrolled {
  background-color: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1rem 3rem;
  box-shadow: 0 1px 0 var(--color-border-subtle);
}

/* ── Nav Logo ────────────────────────────────────────────────────────── */

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--font-weight-heading-bold);
  color: var(--color-accent-primary);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--color-accent-secondary);
}

/* ── Nav Links ───────────────────────────────────────────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── Mobile Toggle (hidden by default) ──────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent-primary);
}

/* ==========================================================================
   7. Button System
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 4px;
}

/* ── Primary Button ──────────────────────────────────────────────────── */

.btn-primary {
  color: var(--color-accent-primary);
  background-color: transparent;
  border: 1px solid var(--color-accent-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--color-gold-glow);
}

/* ── Ghost Button ────────────────────────────────────────────────────── */

.btn-ghost {
  color: var(--color-text-secondary);
  background-color: transparent;
  border: 1px solid rgba(138, 128, 120, 0.25);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
  transform: translateY(-1px);
}

/* ==========================================================================
   8. Section Common Styles
   ========================================================================== */

.section {
  padding: var(--space-section) 2rem;
  position: relative;
  overflow: hidden;
}

.section--dark {
  background-color: var(--color-bg-secondary);
}

.section--darker {
  background-color: var(--color-bg-tertiary);
}

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

/* ── Scroll Reveal (Progressive Enhancement) ─────────────────────────── */
/*
   Content is always visible by default.
   JS applies subtle entrance animations as progressive enhancement.
   Reveal is purely additive — never hides content.
*/
.js-enabled .reveal-target.reveal {
  animation: fadeUp var(--transition-luxury) both;
}

/* Staggered reveals */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ==========================================================================
   9. Service / Luxury Cards
   ========================================================================== */

.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform var(--transition-slow),
    border-color var(--transition-slow),
    box-shadow var(--transition-slow);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at center,
    rgba(201, 169, 110, 0.06) 0%,
    rgba(201, 169, 110, 0.02) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
  pointer-events: none;
  z-index: 0;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-medium);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--color-border-subtle);
}

.service-card:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Service Card Heading ────────────────────────────────────────────── */

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--font-weight-heading-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-body-light);
}

/* ── Service Card Icon ───────────────────────────────────────────────── */

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  color: var(--color-accent-primary);
  font-size: 1.25rem;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.service-card:hover .service-icon {
  border-color: var(--color-accent-primary);
  background-color: rgba(201, 169, 110, 0.05);
}

/* ==========================================================================
   10. Gallery Grid
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-slow);
}

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

/* ── Gallery Layout Placeholders ─────────────────────────────────────── */

.gallery-item:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 7 / 10; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 7 / 10; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 10 / 13; grid-row: 2 / 3; }
.gallery-item:nth-child(6) { grid-column: 1 / 5; grid-row: 3 / 5; }
.gallery-item:nth-child(7) { grid-column: 5 / 9; grid-row: 3 / 5; }
.gallery-item:nth-child(8) { grid-column: 9 / 13; grid-row: 3 / 5; }

/* ── Gallery Backgrounds (abstract mood gradients) ──────────────────── */

.gallery-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform var(--transition-luxury);
}

.gallery-item:hover .gallery-bg {
  transform: scale(1.08);
}

.gallery-bg-1 {
  background:
    linear-gradient(
      135deg,
      #1a1410 0%,
      #2a1f14 30%,
      #1e1812 60%,
      #0f0c08 100%
    );
}

.gallery-bg-2 {
  background:
    linear-gradient(
      160deg,
      #0f1114 0%,
      #14171c 25%,
      #1a1e24 50%,
      #0c0e12 100%
    );
}

.gallery-bg-3 {
  background:
    radial-gradient(
      ellipse at 30% 40%,
      #1e1612 0%,
      #120e0a 50%,
      #080808 100%
    );
}

.gallery-bg-4 {
  background:
    linear-gradient(
      200deg,
      #111010 0%,
      #1a1614 35%,
      #0f0d0b 70%,
      #060504 100%
    );
}

.gallery-bg-5 {
  background:
    radial-gradient(
      circle at 70% 30%,
      #181410 0%,
      #0c0a08 50%,
      #050404 100%
    );
}

.gallery-bg-6 {
  background:
    linear-gradient(
      145deg,
      #191612 0%,
      #211d15 28%,
      #17140f 55%,
      #0b0907 100%
    );
}

.gallery-bg-7 {
  background:
    radial-gradient(
      ellipse at 60% 50%,
      #14110e 0%,
      #0b0908 50%,
      #060505 100%
    );
}

.gallery-bg-8 {
  background:
    linear-gradient(
      180deg,
      #0a0a0c 0%,
      #0e0d10 40%,
      #08080a 70%,
      #040406 100%
    );
}

/* ── Gallery Overlay ─────────────────────────────────────────────────── */

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.2) 40%,
    transparent 65%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
}

/* ==========================================================================
   11. Form Elements
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--font-weight-body-light);
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted-deep);
  opacity: 0.7;
  font-weight: var(--font-weight-body-light);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--color-border-medium);
  background-color: rgba(255, 255, 255, 0.035);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent-primary);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 3px rgba(201, 169, 110, 0.06),
    inset 0 0 0 1px rgba(201, 169, 110, 0.1);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a8078' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background-color: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

/* ── Focus Visible ───────────────────────────────────────────────────── */

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* ── Form Error State ────────────────────────────────────────────────── */

.form-group input.error,
.form-group textarea.error {
  border-color: rgba(139, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.05);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
  border-color: rgba(139, 0, 0, 0.6);
}

.form-error {
  font-size: 0.78rem;
  color: #c05a5a;
  margin-top: var(--space-xs);
  font-weight: var(--font-weight-body-light);
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-bg-tertiary);
  padding: var(--space-4xl) 2rem var(--space-2xl);
  position: relative;
}

.site-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(201, 169, 110, 0.2) 20%,
    rgba(201, 169, 110, 0.35) 50%,
    rgba(201, 169, 110, 0.2) 80%,
    transparent 100%
  );
  margin-bottom: var(--space-4xl);
}

/* ── Footer Grid ─────────────────────────────────────────────────────── */

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: var(--space-4xl);
}

/* ── Footer Brand ────────────────────────────────────────────────────── */

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--font-weight-heading-bold);
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-body-light);
  max-width: 260px;
}

/* ── Footer Links ────────────────────────────────────────────────────── */

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-body-light);
  transition: color var(--transition-fast);
  width: fit-content;
}

.footer-links a:hover {
  color: var(--color-accent-primary);
}

/* ── Footer Bottom ───────────────────────────────────────────────────── */

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(201, 169, 110, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted-deep);
  font-weight: var(--font-weight-body-light);
}

.footer-socials {
  display: flex;
  gap: var(--space-lg);
}

.footer-socials a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--font-weight-body-medium);
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--color-accent-primary);
}

/* ==========================================================================
   13. Scroll-Reveal Animation Keyframes
   ========================================================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes subtlePulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes radialBreath {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

/* ==========================================================================
   14. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg-primary);
}

/* ── Hero Background ─────────────────────────────────────────────────── */

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

.hero-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      ellipse at 30% 40%,
      rgba(201, 169, 110, 0.04) 0%,
      rgba(201, 169, 110, 0.01) 35%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 70% 60%,
      rgba(212, 197, 169, 0.03) 0%,
      rgba(212, 197, 169, 0.005) 40%,
      transparent 65%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(139, 0, 0, 0.03) 0%,
      transparent 50%
    );
  animation: radialBreath 12s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0.85) 70%,
      rgba(10, 10, 10, 0.95) 100%
    );
}

/* ── Hero Content ────────────────────────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  padding: 0 2rem;
  animation: fadeUp 1.2s var(--transition-luxury) forwards;
}

/* ── Hero Title ──────────────────────────────────────────────────────── */

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: var(--font-weight-heading-regular);
  line-height: 1.05;
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-lg);
}

.hero-title em,
.hero-title i {
  font-style: italic;
  color: var(--color-accent-primary);
}

/* ── Hero Subtitle ───────────────────────────────────────────────────── */

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: var(--font-weight-body-light);
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
}

/* ── Hero CTA ────────────────────────────────────────────────────────── */

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Hero Scroll Indicator ───────────────────────────────────────────── */

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(201, 169, 110, 0.4) 0%,
    rgba(201, 169, 110, 0.1) 60%,
    transparent 100%
  );
  animation: subtlePulse 2.8s ease-in-out infinite;
  transform-origin: top;
}

/* ==========================================================================
   15. Responsive Breakpoints
   ========================================================================== */

/* ── ≤ 1024px ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  :root {
    --space-section: 5rem;
  }

  .nav {
    padding: 1.5rem 2rem;
  }

  .nav.scrolled {
    padding: 1rem 2rem;
  }

  .nav-links {
    gap: 1.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 140px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ── ≤ 768px ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --space-section: 4rem;
  }

  .section {
    padding: var(--space-section) 1.5rem;
  }

  /* Mobile Navigation */
  .nav {
    padding: 1.25rem 1.5rem;
  }

  .nav.scrolled {
    padding: 0.9rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem 2.5rem;
    background-color: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--color-border-subtle);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-overlay);
  }

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

  .nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-subtitle {
    max-width: 420px;
  }

  /* Section Body */
  .section-body {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 0.5rem;
  }

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

  /* Footer */
  .footer {
    padding: var(--space-3xl) 1.5rem var(--space-xl);
  }

  .footer::before {
    margin-bottom: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* ── ≤ 480px ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --space-section: 3rem;
  }

  .section {
    padding: var(--space-section) 1rem;
  }

  .nav {
    padding: 1rem 1rem;
  }

  .nav.scrolled {
    padding: 0.75rem 1rem;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  .nav-links {
    width: 100%;
    align-items: center;
    text-align: center;
    border-left: none;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-scroll-indicator {
    bottom: 1.5rem;
  }

  .hero-scroll-line {
    height: 32px;
  }

  .btn {
    font-size: 0.72rem;
    padding: 0.75rem 1.5rem;
    letter-spacing: 0.12em;
  }

  .section-heading {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .section-body {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .section-label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
  }

  .service-card-title {
    font-size: 1.15rem;
  }

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

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

  .site-footer {
    padding: var(--space-2xl) 1rem var(--space-lg);
  }

  .footer-tagline {
    max-width: 100%;
  }
}

/* ==========================================================================
   16. Selection Styling
   ========================================================================== */

::selection {
  background-color: rgba(201, 169, 110, 0.25);
  color: var(--color-text-primary);
}

::-moz-selection {
  background-color: rgba(201, 169, 110, 0.25);
  color: var(--color-text-primary);
}

/* ==========================================================================
   17. Accessibility
   ========================================================================== */

/* ── Focus Visible ───────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
  border-radius: 1px;
}

button:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
}

/* Remove focus outline for mouse clicks — keep only for keyboard nav */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Skip to Content ─────────────────────────────────────────────────── */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: var(--z-toast);
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent-primary);
  color: var(--color-bg-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: var(--font-weight-body-medium);
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
}

/* ── Prefers Reduced Motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-target {
    animation: none;
  }

  .reveal {
    animation: none;
  }

  .service-card:hover {
    transform: none;
  }

  .gallery-item:hover {
    transform: none;
  }

  .gallery-item:hover .gallery-bg {
    transform: none;
  }
}

/* ── High Contrast Mode ──────────────────────────────────────────────── */

@media (prefers-contrast: high) {
  body {
    color: #ffffff;
  }

  .btn-primary {
    border-width: 2px;
  }

  .section-body {
    color: #cccccc;
  }
}

/* ── Reduced Transparency (glassmorphism fallback) ───────────────────── */

@media (prefers-reduced-transparency: reduce) {
  .service-card {
    background: var(--color-bg-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.scrolled {
    background-color: var(--color-bg-primary);
  }
}

/* ==========================================================================
   ADDITIONAL STYLES (matched to HTML/JS)
   ========================================================================== */

/* ── Hero Scroll Indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-accent-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ── Section Subtitle ── */
.section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

/* ── About Layout ── */
.about-left,
.about-right {
  flex: 1;
}

.about-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

/* ── Contact ── */
.contact-inner {
  max-width: 620px;
  margin: 0 auto;
}

.contact-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted-deep);
  margin-top: var(--space-lg);
  font-style: italic;
}

/* ── Footer Divider ── */
.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(201, 169, 110, 0.4);
  margin: 0 auto var(--space-xl);
}

/* ── Gallery Caption Text ── */
.gallery-overlay span,
.gallery-caption {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
}

/* ── Modal (Gallery click) ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  max-width: 600px;
  text-align: center;
  padding: 3rem;
}

.modal-close {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 2rem;
  color: var(--color-accent-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-accent-secondary);
}

.modal-word {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-heading-medium);
  color: var(--color-accent-primary);
  letter-spacing: 0.05em;
}

/* ── Form Feedback (JS validation) ── */
.form-feedback {
  margin-top: var(--space-md);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: var(--font-weight-body-light);
}

.form-feedback--success {
  background: rgba(201, 169, 110, 0.08);
  color: var(--color-accent-primary);
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.form-feedback--error {
  background: rgba(139, 0, 0, 0.08);
  color: #c05a5a;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

/* ── Form Submit Button ── */
.form-submit {
  background: transparent;
  color: var(--color-accent-primary);
  border: 1px solid var(--color-accent-primary);
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.form-submit:hover {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
  transform: translateY(-1px);
}

/* ── Hero Eyebrow ── */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 2rem;
}

/* ── Section Ornament ── */
.section-ornament {
  width: 30px;
  height: 1px;
  background: rgba(201, 169, 110, 0.5);
  position: absolute;
}

.ornament-tl { top: 3rem; left: 2rem; }
.ornament-br { bottom: 3rem; right: 2rem; }

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--font-weight-heading-bold);
  color: var(--color-accent-primary);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.7rem;
  font-weight: var(--font-weight-body-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 0.4rem;
}

.about-ornament {
  width: 60px;
  height: 1px;
  background: var(--color-accent-primary);
  margin-bottom: 2rem;
  opacity: 0.4;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}
