/* ==========================================================
   base.css — Dishant Photo Editor Portfolio
   Inspired by: ourstoryimagery.com
   Palette: Warm Cream / Linen / Taupe / Warm Brown
   Fonts: Cormorant Garamond (headings) + Poppins (body)
   ========================================================== */

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

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Color Palette — inspired by ourstoryimagery.com */
  --color-bg:           #FAF9F8;
  --color-surface:      #F3F0ED;
  --color-card:         #FFFFFF;
  --color-card-hover:   #F8F6F4;
  --color-brown:        #6B5D4F;
  --color-brown-light:  #9F9483;
  --color-brown-dark:   #4A3F35;
  --color-taupe:        #BEB5AA;
  --color-details:      #E7E3DF;
  --color-text:         #434343;
  --color-text-muted:   #7A7268;
  --color-text-dim:     #B5AFA9;
  --color-border:       #E7E3DF;
  --color-border-hover: #9F9483;
  --color-error:        #C0574A;
  --color-success:      #6A9A7C;
  --color-white:        #FFFFFF;

  /* Legacy aliases (used by old HTML in services.html) */
  --color-gold:         var(--color-brown-light);
  --color-gold-bright:  var(--color-brown);
  --grad-gold:          var(--grad-warm);

  /* Gradients */
  --grad-warm:          linear-gradient(135deg, #6B5D4F 0%, #9F9483 100%);
  --grad-cream:         linear-gradient(180deg, #FAF9F8 0%, #F3F0ED 100%);
  --grad-overlay:       linear-gradient(to bottom, rgba(67,63,53,0.15) 0%, rgba(67,63,53,0.55) 100%);
  --grad-hero:          linear-gradient(to right, rgba(67,43,27,0.70) 0%, rgba(67,43,27,0.25) 60%, rgba(67,43,27,0.05) 100%);
  --grad-section:       linear-gradient(180deg, #F3F0ED 0%, #FAF9F8 100%);

  /* Fonts */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Poppins', 'Inter', system-ui, sans-serif;

  /* Fluid Font Scale */
  --fs-xs:   clamp(0.70rem, 1.4vw, 0.75rem);
  --fs-sm:   clamp(0.80rem, 1.7vw, 0.875rem);
  --fs-base: clamp(0.92rem, 2vw, 1rem);
  --fs-md:   clamp(1.05rem, 2.2vw, 1.125rem);
  --fs-lg:   clamp(1.15rem, 2.5vw, 1.25rem);
  --fs-xl:   clamp(1.35rem, 3vw, 1.5rem);
  --fs-2xl:  clamp(1.6rem, 4vw, 2rem);
  --fs-3xl:  clamp(2rem, 5vw, 2.75rem);
  --fs-4xl:  clamp(2.5rem, 6vw, 3.5rem);
  --fs-5xl:  clamp(3.5rem, 8vw, 5.5rem);
  --fs-6xl:  clamp(4.5rem, 10vw, 7rem);

  /* Weights */
  --fw-light:    300;
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(107, 93, 79, 0.1), 0 1px 2px rgba(107, 93, 79, 0.08);
  --shadow-md:   0 4px 16px rgba(107, 93, 79, 0.12), 0 2px 6px rgba(107, 93, 79, 0.08);
  --shadow-lg:   0 8px 32px rgba(107, 93, 79, 0.15), 0 4px 12px rgba(107, 93, 79, 0.1);
  --shadow-xl:   0 20px 60px rgba(107, 93, 79, 0.2);
  --shadow-warm: 0 0 30px rgba(159, 148, 131, 0.3);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --trans-fast:  150ms var(--ease-smooth);
  --trans-base:  300ms var(--ease-smooth);
  --trans-slow:  500ms var(--ease-smooth);

  /* Layout */
  --nav-height: 80px;
  --max-width: 1200px;
  --content-width: 900px;

  /* Z-Index */
  --z-nav: 900; --z-modal: 1000; --z-toast: 1100;
}

/* ── CSS Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  color: var(--color-brown);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
p { color: var(--color-text-muted); line-height: 1.75; }

/* Section titles — ourstory style: small caps eyebrow + large serif title */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brown-light);
  display: block;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: var(--fs-3xl);
  color: var(--color-brown);
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  font-weight: var(--fw-light);
}

.divider-line {
  width: 48px;
  height: 1px;
  background: var(--color-brown-light);
  margin: var(--space-4) auto;
}

.divider-line--left {
  margin-left: 0;
}

/* ── Scroll Custom ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-taupe); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-brown-light); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  transition: background var(--trans-slow), box-shadow var(--trans-slow);
}

.navbar--scrolled {
  background: rgba(250, 249, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.navbar--light { background: transparent; }

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.navbar__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border-hover);
  background: var(--color-brown);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: var(--fw-light);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.navbar__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-light);
  color: var(--color-brown);
  letter-spacing: 0.08em;
}

/* Hero navbar — white text on dark image */
.navbar--hero .navbar__name { color: rgba(255,255,255,0.92); }
.navbar--hero .navbar__logo { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); color: white; }
.navbar--hero .nav-link { color: rgba(255,255,255,0.85); }
.navbar--hero .nav-link:hover { color: #fff; }
.navbar--hero .btn-primary { background: rgba(255,255,255,0.15); color: white; border-color: rgba(255,255,255,0.5); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brown);
  position: relative;
  transition: color var(--trans-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--color-brown-light);
  transition: width var(--trans-slow);
}

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

.nav-link:hover { color: var(--color-brown-light); }
.nav-link.active { color: var(--color-brown-dark); }

.navbar__cta { display: flex; align-items: center; }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none;
  border: none;
}

.navbar__hamburger span {
  width: 22px; height: 1px;
  background: var(--color-brown);
  transition: all var(--trans-base);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar__hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero navbar hamburger white */
.navbar--hero .navbar__hamburger span { background: white; }

/* Mobile menu */
.navbar__mobile-menu {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  bottom: 0;                          /* extend to bottom of screen */
  background: #FAF9F8;                /* fully solid — no bleed-through */
  overflow-y: auto;
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  display: none;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  z-index: calc(var(--z-nav) - 1);
}

.navbar__mobile-menu.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--trans-base);
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  padding: 0.85rem 2rem;
}

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

.btn-primary:hover {
  background: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--color-brown-light);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--color-brown);
  border-color: var(--color-border);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.65rem;
}

.btn-lg {
  padding: 1.1rem 2.8rem;
  font-size: var(--fs-xs);
}

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

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--space-8);
}

.section {
  padding-block: var(--space-24);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-32);
}

.section-header {
  margin-bottom: var(--space-16);
}

.section-header.text-center { text-align: center; }
.section-header.text-center .divider-line { margin: var(--space-4) auto; }

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

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: transform var(--trans-slow), box-shadow var(--trans-slow), border-color var(--trans-slow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brown-light);
  transform: translateY(-2px);
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-warm {
  background: var(--color-details);
  color: var(--color-brown);
  border: 1px solid var(--color-taupe);
}

.badge-dark {
  background: var(--color-brown);
  color: var(--color-white);
}

/* ── Animations ─────────────────────────────────────────────── */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }

/* Page entrance animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes lineGrow {
  from { width: 0; }
  to   { width: 48px; }
}

/* Hero text entrance */
.hero-animate-1 {
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-animate-2 {
  animation: fadeInUp 1s ease 0.55s both;
}

.hero-animate-3 {
  animation: fadeInUp 1s ease 0.75s both;
}

.hero-animate-4 {
  animation: fadeInUp 1s ease 0.95s both;
}

/* Image parallax shimmer */
.img-hover-scale {
  overflow: hidden;
}

.img-hover-scale img {
  transition: transform 0.8s var(--ease-smooth);
}

.img-hover-scale:hover img {
  transform: scale(1.04);
}

/* Gold line decorative */
.deco-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-taupe);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.deco-line::before,
.deco-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }

.form-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.85rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  outline: none;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-brown-light);
  box-shadow: 0 0 0 3px rgba(159, 148, 131, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-dim); }
.form-textarea { min-height: 140px; resize: vertical; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--color-brown-dark);
  color: rgba(250, 249, 248, 0.8);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 249, 248, 0.3);
  color: rgba(250, 249, 248, 0.9);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--fw-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-light);
  color: rgba(250, 249, 248, 0.9);
  letter-spacing: 0.08em;
}

.footer__tagline {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: rgba(250, 249, 248, 0.55);
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 248, 0.5);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: rgba(250, 249, 248, 0.7);
  transition: color var(--trans-base);
}

.footer__links a:hover { color: rgba(250, 249, 248, 1); }

.footer__bottom {
  border-top: 1px solid rgba(250, 249, 248, 0.1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__bottom p {
  font-size: var(--fs-xs);
  font-weight: var(--fw-light);
  color: rgba(250, 249, 248, 0.4);
  letter-spacing: 0.05em;
}

.footer__legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-links a {
  font-size: var(--fs-xs);
  color: rgba(250, 249, 248, 0.4);
  transition: color var(--trans-base);
}

.footer__legal-links a:hover { color: rgba(250, 249, 248, 0.8); }

/* ── Utilities ──────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full   { width: 100%; }
.h-full   { height: 100%; }
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --nav-height: 72px; }
  .navbar { padding-inline: var(--space-6); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .navbar { padding-inline: var(--space-5); }
  .navbar__links, .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
  .container, .container--narrow { padding-inline: var(--space-5); }
  .section     { padding-block: var(--space-16); }
  .section--sm { padding-block: var(--space-10); }
  .section--lg { padding-block: var(--space-20); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: var(--fs-2xl); }
  .btn-lg { padding: 1.1rem 1.5rem; }
}
