/* ============================================================
   Rumaiz Interiors — SHARED CSS
   ============================================================
   Global styles used on every page: variables, reset, layout,
   navbar, footer, buttons, cards, form inputs, animations,
   and utility classes.

   Page-specific styles live in their own files:
     css/page-home.css
     css/page-about.css
     css/page-portfolio.css
     css/page-contact.css
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --radius: 0.875rem;

  /* Palette */
  --background: oklch(0.185 0.026 58);
  --foreground: oklch(0.94 0.018 75);

  --card: oklch(0.235 0.028 55);
  --card-foreground: oklch(0.94 0.018 75);

  --primary: oklch(0.695 0.122 73);
  --primary-foreground: oklch(0.13 0.022 50);

  --secondary: oklch(0.275 0.032 52);
  --secondary-foreground: oklch(0.94 0.018 75);

  --muted: oklch(0.24 0.026 55);
  --muted-foreground: oklch(0.74 0.028 55);

  --accent: oklch(0.760 0.118 79);
  --accent-foreground: oklch(0.13 0.022 50);

  --border: oklch(0.42 0.045 50);
  --input: oklch(0.28 0.030 52);

  /* Luxury metallic gold system — matched to logo mark */
  --gold-primary:     oklch(0.695 0.122 73);
  --gold-bright:      oklch(0.838 0.120 84);
  --gold-metallic:    oklch(0.760 0.118 79);
  --gold-deep:        oklch(0.630 0.121 69);
  --gold-shadow:      oklch(0.519 0.104 69);
  --gold-shadow-deep: oklch(0.360 0.086 57);
  --gold-highlight:   oklch(0.934 0.106 97);

  /* Brushed-metal gradient — simulates realistic champagne-gold/brass with a
     distinct light-catch streak (not a flat linear ramp) plus deeper shadow
     ends for tonal contrast. Used sparingly: CTA, active nav indicator,
     dividers, small accent icons. */
  --gold-brushed: linear-gradient(
    115deg,
    var(--gold-shadow-deep) 0%,
    var(--gold-shadow)      9%,
    var(--gold-deep)        22%,
    var(--gold-primary)     37%,
    var(--gold-bright)      48%,
    var(--gold-primary)     56%,
    var(--gold-metallic)    70%,
    var(--gold-deep)        86%,
    var(--gold-shadow)      96%,
    var(--gold-shadow-deep) 100%
  );
  --gold-brushed-line: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-shadow) 10%,
    var(--gold-deep) 25%,
    var(--gold-bright) 50%,
    var(--gold-deep) 75%,
    var(--gold-shadow) 90%,
    transparent 100%
  );
  /* Delicate edge highlight/bevel — a hairline catch-light on the top edge and
     a soft dark reveal on the bottom edge, the way brushed metal actually
     reflects an overhead light. Append after other box-shadow values. */
  --gold-bevel: inset 0 1px 0 oklch(0.934 0.106 97 / 0.45),
                inset 0 -1.5px 2px oklch(0.340 0.080 56 / 0.35);

  /* Named tones (semantic aliases used throughout the stylesheet) */
  --cream:      oklch(0.24 0.026 55);
  --ivory:      oklch(0.94 0.018 75);
  --beige:      oklch(0.44 0.07 60);
  --taupe:      oklch(0.62 0.04 55);
  /* Single text-gold token — used everywhere gold shows up as flat text/icon
     color (headline emphasis, labels, links, icons). Pinned to gold-metallic
     so it reads as the same metal as the brushed-gradient buttons instead of
     a duller, separate bronze tone. */
  --warm-brown: var(--gold-metallic);
  --deep-brown: var(--foreground);
  --gold:       var(--gold-metallic);

  /* Shadows — layered for realistic depth (contact + ambient + cast) */
  --shadow-soft: 0 1px 2px rgba(12, 7, 4, 0.35),
                 0 8px 16px -8px rgba(12, 7, 4, 0.45),
                 0 20px 34px -18px rgba(12, 7, 4, 0.5);
  --shadow-luxe: 0 2px 4px rgba(12, 7, 4, 0.4),
                 0 16px 28px -12px rgba(12, 7, 4, 0.55),
                 0 36px 64px -24px rgba(8, 5, 3, 0.7);
  --shadow-gold-glow: 0 6px 20px -6px oklch(0.630 0.121 69 / 0.35);
  --inset-hairline: inset 0 1px 0 oklch(0.94 0.018 75 / 0.06);

  /* Premium easing */
  --ease-luxe: cubic-bezier(0.19, 1, 0.22, 1);

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:  "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ── Cross-page transitions ───────────────────────────────────
   Smooths navigation between pages (Home → About → Portfolio etc.)
   with a soft cross-fade instead of a hard cut, in browsers that
   support the View Transitions API. Silently ignored elsewhere —
   no fallback needed, the navigation still works instantly. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  background-color: var(--background);
  background-image:
    radial-gradient(60rem 40rem at 12% -10%, oklch(0.630 0.121 69 / 0.05), transparent 60%),
    radial-gradient(50rem 36rem at 105% 30%, oklch(0.275 0.032 52 / 0.5), transparent 55%),
    radial-gradient(70rem 50rem at 50% 120%, oklch(0.095 0.016 55 / 0.5), transparent 60%),
    radial-gradient(90rem 60rem at 50% 0%, oklch(0.630 0.121 69 / 0.04), transparent 45%);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
/* Faint grain — breaks up flat gradient banding and gives the dark
   background a tactile, leather/print-like quality instead of a flat
   digital fill. Fixed + pointer-events:none so it never affects layout
   or interaction. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

a       { color: inherit; text-decoration: none; }
img     { display: block; max-width: 100%; }
button  { cursor: pointer; font-family: inherit; }
ul, ol  { list-style: none; }

/* ── Layout ────────────────────────────────────────────────── */
.container-luxe {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  .container-luxe { padding-left: 2rem; padding-right: 2rem; }
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  animation: navFadeIn 0.8s ease-out;
}
@keyframes navFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.navbar.transparent {
  background: oklch(0.185 0.026 58 / 0.78);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid oklch(0.42 0.045 50 / 0.35);
  box-shadow: var(--inset-hairline);
}
.navbar.solid {
  background: oklch(0.185 0.026 58 / 0.9);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid oklch(0.42 0.045 50 / 0.55);
  box-shadow: var(--inset-hairline), 0 4px 28px -6px rgba(10, 6, 3, 0.6);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .navbar-inner { height: 5rem; } }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 0.5rem + 1.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.5s ease;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  transform: translateZ(0);
}
@media (min-width: 768px) { .nav-logo-img { height: 56px; } }
.navbar.transparent .nav-logo,
.navbar.solid .nav-logo { color: var(--deep-brown); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.5s ease, opacity 0.3s ease;
}
.navbar.transparent .nav-link       { color: var(--deep-brown); }
.navbar.transparent .nav-link:hover { color: var(--warm-brown); }
.navbar.solid .nav-link             { color: oklch(0.94 0.018 75 / 0.7); }
.navbar.solid .nav-link:hover       { color: var(--foreground); }
.nav-link {
  position: relative;
}
.nav-link.active {
  opacity: 1 !important;
  font-weight: 500;
  text-decoration: none;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold-brushed-line);
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-position 1.1s var(--ease-luxe), box-shadow 0.5s var(--ease-luxe), transform 0.5s var(--ease-luxe), border-color 0.5s ease;
}
.navbar.transparent .nav-cta {
  background: var(--gold-brushed);
  background-size: 220% 220%;
  color: var(--primary-foreground);
  border: 1px solid oklch(0.838 0.120 84 / 0.5);
  backdrop-filter: blur(4px);
  box-shadow: var(--gold-bevel);
}
.navbar.transparent .nav-cta:hover,
.navbar.solid .nav-cta:hover {
  box-shadow: var(--shadow-gold-glow), var(--gold-bevel);
  transform: translateY(-1px);
  background-position: 100% 0%;
}
.navbar.solid .nav-cta {
  background: var(--gold-brushed);
  background-size: 220% 220%;
  color: var(--primary-foreground);
  border: 1px solid oklch(0.838 0.120 84 / 0.35);
  box-shadow: var(--gold-bevel);
}

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  transition: color 0.5s ease;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.navbar.transparent .nav-hamburger { color: var(--deep-brown); }
.navbar.solid .nav-hamburger       { color: var(--foreground); }
.nav-hamburger .icon-close { display: none; }
.nav-hamburger.open .icon-menu  { display: none; }
.nav-hamburger.open .icon-close { display: block; }

/* Mobile drawer */
.nav-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.nav-drawer.open { max-height: 24rem; opacity: 1; }
@media (min-width: 768px) { .nav-drawer { display: none; } }

.nav-drawer-inner {
  border-top: 1px solid oklch(0.42 0.045 50 / 0.4);
  background: oklch(0.185 0.026 58 / 0.96);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
}
.nav-drawer-inner .container-luxe {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  color: oklch(0.94 0.018 75 / 0.8);
  transition: color 0.2s;
}
.drawer-link:hover,
.drawer-link.active { color: var(--foreground); font-weight: 500; }

.drawer-cta {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--gold-brushed);
  background-size: 200% 200%;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold-glow), var(--gold-bevel);
  transition: background-position 0.7s var(--ease-luxe);
}
.drawer-cta:hover { background-position: 100% 0%; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: oklch(0.235 0.028 55 / 0.6);
}
@media (min-width: 768px) { footer { margin-top: 6rem; } }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 4rem 0; } }

.footer-brand      { display: flex; align-items: center; gap: 0.625rem; }
.footer-logo-img   { height: 40px; width: auto; flex-shrink: 0; display: block; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--deep-brown); letter-spacing: 0.01em; }
.footer-desc       { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.footer-address    { margin-top: 1rem; font-size: 0.875rem; color: oklch(0.94 0.018 75 / 0.7); }
.footer-heading    { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: oklch(0.94 0.018 75 / 0.6); }
.footer-links      { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-links a    { transition: color 0.3s ease; }
.footer-links a:hover { color: var(--warm-brown); }
.footer-contact    { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact a  { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-contact a:hover { color: var(--warm-brown); }
.footer-socials    { margin-top: 1rem; display: flex; gap: 0.75rem; color: oklch(0.94 0.018 75 / 0.6); }
.footer-socials a  { transition: color 0.3s ease; }
.footer-socials a:hover { color: var(--warm-brown); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ── Floating Call Button ──────────────────────────────────── */
.call-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: var(--gold-brushed);
  border: 1px solid oklch(0.838 0.120 84 / 0.4);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-luxe), var(--shadow-gold-glow), var(--gold-bevel);
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe);
}
.call-float:hover  { transform: scale(1.08) translateY(-2px); box-shadow: var(--shadow-luxe), 0 8px 26px -6px oklch(0.630 0.121 69 / 0.5), var(--gold-bevel); }
.call-float:active { transform: scale(0.96); }
@media (min-width: 768px) {
  .call-float { bottom: 1.5rem; right: 1.5rem; width: 3.5rem; height: 3.5rem; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--gold-brushed);
  background-size: 240% 240%;
  background-position: 0% 50%;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft), var(--gold-bevel);
  transition: background-position 0.9s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe), transform 0.4s var(--ease-luxe);
  border: 1px solid oklch(0.838 0.120 84 / 0.35);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: var(--shadow-soft), var(--shadow-gold-glow), var(--gold-bevel);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
/* subtle diagonal light sweep, barely perceptible, reinforces "metal" read */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, oklch(1 0 0 / 0.22) 50%, transparent 60%);
  background-size: 220% 100%;
  background-position: 130% 0;
  transition: background-position 0.9s var(--ease-luxe);
  pointer-events: none;
}
.btn-primary:hover::after { background-position: -30% 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.760 0.118 79 / 0.45);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  color: var(--gold-metallic);
  background: oklch(0.235 0.028 55 / 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--inset-hairline);
  transition: background 0.4s var(--ease-luxe), color 0.4s var(--ease-luxe), border-color 0.4s ease, transform 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe);
}
.btn-outline:hover {
  background: oklch(0.695 0.122 73 / 0.14);
  border-color: oklch(0.838 0.120 84 / 0.75);
  color: var(--gold-bright);
  box-shadow: var(--inset-hairline), var(--shadow-gold-glow);
  transform: translateY(-2px);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  position: relative;
  border-radius: calc(var(--radius) * 1.5);
  background: var(--card);
  border: 1px solid oklch(0.42 0.045 50 / 0.6);
  box-shadow: var(--shadow-soft), var(--inset-hairline);
  transition: box-shadow 0.55s var(--ease-luxe), transform 0.55s var(--ease-luxe), border-color 0.4s ease;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-luxe), var(--inset-hairline);
  transform: translateY(-6px);
  border-color: oklch(0.42 0.045 50 / 0.85);
}
/* Gold hairline that fades in along the top edge on hover — a small,
   recognizable "premium card" tell used consistently across .card,
   .service-card and .feature-card. */
.card::before,
.service-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gold-brushed-line);
  opacity: 0;
  transition: opacity 0.5s var(--ease-luxe);
  pointer-events: none;
}
.card:hover::before,
.service-card:hover::before,
.feature-card:hover::before { opacity: 1; }

/* ── Section helpers ───────────────────────────────────────── */
.section-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--warm-brown);
  margin-bottom: 0.75rem;
}
.section-title  { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--deep-brown); }
.section-divider {
  width: 3rem;
  height: 1px;
  background: var(--gold-brushed-line);
  margin: 1rem auto 0;
}
.section-sub {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: oklch(0.94 0.018 75 / 0.65);
}

/* ── Grid helpers ──────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Portfolio card ────────────────────────────────────────── */
.portfolio-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.55s var(--ease-luxe);
}
.portfolio-card:hover { box-shadow: var(--shadow-luxe); }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-luxe), filter 0.6s ease; filter: saturate(0.92) sepia(0.1) hue-rotate(-6deg); }
.portfolio-card:hover img { transform: scale(1.045); filter: saturate(1) sepia(0.14) hue-rotate(-6deg); }
/* Permanent warm color-grade tying every photo to the espresso/gold palette,
   regardless of each source image's own white balance. Multiply keeps shadows
   rich without ever washing the photo out. */
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, oklch(0.630 0.121 69 / 0.16), transparent 45%, oklch(0.185 0.026 58 / 0.35));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.portfolio-card-overlay {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, oklch(0.095 0.016 55 / 0.95) 0%, oklch(0.095 0.016 55 / 0.55) 60%, transparent 100%);
  color: var(--ivory);
}
.portfolio-card-overlay h3 { font-family: var(--font-serif); font-size: 1rem; line-height: 1.2; }
.portfolio-card-overlay p  { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; margin-top: 0.25rem; }

/* ── Animations ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease-out forwards;
}
.fade-up-d1 { animation-delay: 0.15s; }
.fade-up-d2 { animation-delay: 0.3s; }
.fade-up-d3 { animation-delay: 0.45s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.ken-burns { animation: kenBurns 18s ease-in-out infinite alternate; transform-origin: center; }
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%       { transform: translateY(7px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal, .ken-burns {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-indicator { animation: none !important; opacity: 1 !important; }
  .scroll-indicator .bouncer { animation: none !important; }
}

/* ── Scroll indicator ──────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  user-select: none;
  z-index: 20;
  opacity: 0;
  animation: scrollIndicatorIn 1s ease-out 1.1s forwards;
}
@keyframes scrollIndicatorIn { to { opacity: 1; } }
.scroll-indicator span.label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: color-mix(in srgb, var(--ivory) 60%, transparent);
  font-family: var(--font-sans);
}
.scroll-indicator .bouncer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: scrollBounce 2.2s var(--ease-luxe) infinite;
}
.scroll-indicator .scroll-arrow { stroke: white; transition: stroke 0.5s ease; }

/* Desktop scroll indicator variant */
.scroll-indicator.desktop span.label    { color: color-mix(in srgb, var(--gold-primary) 50%, transparent); }
.scroll-indicator.desktop .scroll-arrow { stroke: var(--gold-primary); }

/* ── Form inputs ───────────────────────────────────────────── */
.input {
  width: 100%;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  border-color: var(--warm-brown);
  box-shadow: 0 0 0 3px oklch(0.760 0.118 79 / 0.2);
}
textarea.input { resize: none; }

.field > span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: oklch(0.94 0.018 75 / 0.6);
  margin-bottom: 0.5rem;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) * 3);
  background:
    radial-gradient(60rem 30rem at 15% 0%, oklch(0.630 0.121 69 / 0.16), transparent 60%),
    radial-gradient(50rem 30rem at 100% 100%, oklch(0.630 0.121 69 / 0.10), transparent 55%),
    linear-gradient(135deg, var(--secondary), var(--card));
  border: 1px solid oklch(0.630 0.121 69 / 0.3);
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft), var(--inset-hairline);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gold-brushed-line);
  opacity: 0.7;
}
@media (min-width: 640px) { .cta-banner { padding: 3rem; } }
@media (min-width: 768px) { .cta-banner { padding: 5rem; } }

/* ── Service cards ─────────────────────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-soft), var(--inset-hairline);
  transition: box-shadow 0.55s var(--ease-luxe), transform 0.55s var(--ease-luxe), border-color 0.4s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-luxe), var(--inset-hairline);
  transform: translateY(-6px);
  border-color: oklch(0.630 0.121 69 / 0.3);
}
.service-num { font-family: var(--font-serif); font-size: 0.75rem; color: var(--warm-brown); }
.service-card h3 { margin-top: 0.5rem; font-family: var(--font-serif); font-size: 1.375rem; color: var(--deep-brown); line-height: 1.2; }
.service-card p  { margin-top: 0.5rem; font-size: 0.875rem; color: oklch(0.94 0.018 75 / 0.7); line-height: 1.6; }

/* ── Feature cards (Why Choose Us) ────────────────────────── */
.feature-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: calc(var(--radius) * 1.5);
  background: var(--background);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-soft), var(--inset-hairline);
  border: 1px solid oklch(0.42 0.045 50 / 0.6);
  transition: box-shadow 0.55s var(--ease-luxe), transform 0.55s var(--ease-luxe), border-color 0.4s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-luxe), var(--inset-hairline);
  transform: translateY(-6px);
  border-color: oklch(0.630 0.121 69 / 0.3);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--gold-brushed);
  box-shadow: var(--shadow-gold-glow), var(--gold-bevel);
  color: var(--primary-foreground);
  transition: transform 0.5s var(--ease-luxe);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { margin-top: 1.25rem; font-family: var(--font-serif); font-size: 1.25rem; color: var(--deep-brown); }
.feature-card p  { margin-top: 0.5rem; font-size: 0.875rem; color: oklch(0.94 0.018 75 / 0.7); line-height: 1.6; }

/* ── Contact page ──────────────────────────────────────────── */
.contact-details {
  border-radius: calc(var(--radius) * 3);
  background: oklch(0.235 0.028 55 / 0.7);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .contact-details { padding: 2.5rem; } }
.contact-details h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--deep-brown); }
.contact-item       { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg   { color: var(--warm-brown); flex-shrink: 0; margin-top: 0.125rem; }
.contact-item strong { display: block; font-weight: 500; }
.contact-item a     { color: var(--muted-foreground); font-size: 0.875rem; transition: color 0.2s; }
.contact-item a:hover { color: var(--primary); }

.contact-form {
  border-radius: calc(var(--radius) * 3);
  background: var(--background);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .contact-form { padding: 2.5rem; } }

/* ── Image lightbox ────────────────────────────────────────── */
.portfolio-card { cursor: zoom-in; }
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E") center / 22px no-repeat,
    oklch(0.095 0.016 55 / 0.32);
  opacity: 0;
  transition: opacity 0.45s var(--ease-luxe);
  pointer-events: none;
}
.portfolio-card:hover::after { opacity: 1; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: oklch(0.05 0.01 55 / 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-luxe), background 0.45s var(--ease-luxe), visibility 0s linear 0.45s;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
  background: oklch(0.05 0.01 55 / 0.9);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  transition: opacity 0.45s var(--ease-luxe), background 0.45s var(--ease-luxe), visibility 0s linear 0s;
}
.lightbox-figure {
  position: relative;
  max-width: min(90vw, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.5s var(--ease-luxe), opacity 0.5s var(--ease-luxe);
}
.lightbox-overlay.is-open .lightbox-figure { transform: scale(1) translateY(0); opacity: 1; }
.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-luxe);
}
.lightbox-caption { margin-top: 1rem; text-align: center; color: var(--ivory); }
.lightbox-caption h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; }
.lightbox-caption p  {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--ivory) 65%, transparent);
}
.lightbox-close {
  position: absolute;
  top: -1.1rem;
  right: -1.1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-brushed);
  color: var(--primary-foreground);
  border: 1px solid oklch(0.838 0.120 84 / 0.4);
  box-shadow: var(--shadow-luxe), var(--gold-bevel);
  cursor: pointer;
  transition: transform 0.4s var(--ease-luxe);
}
.lightbox-close:hover { transform: scale(1.08) rotate(90deg); }
@media (max-width: 640px) {
  .lightbox-close { top: -1.4rem; right: 0; }
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.095 0.016 55 / 0.55);
  border: 1px solid oklch(0.94 0.018 75 / 0.25);
  color: var(--ivory);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.35s ease, transform 0.35s var(--ease-luxe), border-color 0.35s ease;
}
.lightbox-nav:hover { background: oklch(0.095 0.016 55 / 0.85); border-color: oklch(0.838 0.120 84 / 0.5); }
.lightbox-nav.prev { left: -1.25rem; }
.lightbox-nav.next { right: -1.25rem; }
@media (max-width: 900px) {
  .lightbox-nav.prev { left: 0.25rem; }
  .lightbox-nav.next { right: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay, .lightbox-figure, .lightbox-close, .lightbox-nav, .portfolio-card::after {
    transition: none !important;
  }
}

/* ── Gold-tinted selection & scrollbar ────────────────────────
   Small, easy-to-miss details that separate a template from a
   designed site — the browser's default blue selection highlight
   is jarring against an espresso-and-gold palette. */
::selection {
  background: oklch(0.630 0.121 69 / 0.35);
  color: var(--gold-highlight);
}
html { scrollbar-width: thin; scrollbar-color: var(--gold-shadow) var(--background); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
  background: var(--gold-shadow);
  border-radius: 9999px;
  border: 2px solid var(--background);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ── Utility ───────────────────────────────────────────────── */
.text-center  { text-align: center; }
.mt-auto      { margin-top: auto; }
.w-full       { width: 100%; }
.sr-only      { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
