/* ============================================================
   Soap Creek Photography — Design System
   Aesthetic: Clean · Bright · Editorial · Modern
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --white:        #ffffff;
  --off-white:    #faf9f7;
  --cream:        #f4f1ec;
  --light-gray:   #e8e4de;
  --mid-gray:     #9e9890;
  --dark-gray:    #3d3933;
  --ink:          #1a1815;
  --gold:         #b8965a;
  --gold-light:   #d4b47e;
  --gold-subtle:  #f5ede0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:       4px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 4px rgba(26,24,21,.06);
  --shadow:       0 4px 24px rgba(26,24,21,.10);
  --shadow-lg:    0 12px 48px rgba(26,24,21,.14);

  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --max-width:    1240px;
  --nav-h:        72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

p { max-width: 66ch; }
.prose p { margin-bottom: 1.25em; color: var(--dark-gray); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section { padding: clamp(4rem, 8vw, 8rem) 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--ink);
  transition: opacity var(--transition);
}
.nav-logo span { color: var(--gold); }
.nav-logo:hover { opacity: .7; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark-gray);
  padding: .4rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  border-color: var(--gold);
}
.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  border: none !important;
  padding: .6rem 1.4rem !important;
  border-radius: var(--radius) !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #f8f4ef 0%, #ede8e0 50%, #e0d8cd 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(184,150,90,.08) 0%, transparent 70%);
}

/* Decorative grain */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--nav-h) 1.5rem 2rem;
  max-width: 800px;
}
.hero-content .eyebrow { margin-bottom: 1.5rem; }
.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin: 0 auto 2.5rem;
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: .4rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  animation: fadeInUp 1.5s 1.5s both;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s 2s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--dark-gray); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── Divider ─────────────────────────────────────────────────── */
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header .eyebrow { margin-bottom: .75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--dark-gray); font-size: 1.05rem; }

.gold-rule {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 1rem 0;
}
.gold-rule.centered { margin: 1rem auto; }

/* ── Gallery Grid ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
}
.gallery-grid.masonry {
  columns: 3;
  column-gap: .75rem;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--light-gray);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,24,21,.55) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-overlay p {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .04em;
  max-width: none;
}

/* Gallery Category Tabs */
.gallery-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.gallery-tab {
  padding: .45rem 1.2rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1.5px solid var(--light-gray);
  border-radius: 999px;
  color: var(--mid-gray);
  background: transparent;
  transition: all var(--transition);
}
.gallery-tab.active, .gallery-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10,8,6,.92);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--white); font-size: 1.5rem;
  background: rgba(255,255,255,.12); border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); font-size: 1.5rem;
  background: rgba(255,255,255,.12); border-radius: 50%;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-lg);
}
.pricing-card.highlight::before {
  content: 'Most Popular';
  position: absolute; top: 0; right: 0;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-bottom-left-radius: var(--radius);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pricing-name { font-size: 1.1rem; font-weight: 500; margin-bottom: .25rem; }
.pricing-category { font-size: .75rem; color: var(--mid-gray); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: .25rem;
}
.pricing-price sup { font-size: 1.4rem; vertical-align: super; color: var(--gold); }
.pricing-duration { font-size: .8rem; color: var(--mid-gray); margin-bottom: 1.5rem; }
.pricing-divider { height: 1px; background: var(--light-gray); margin: 1.25rem 0; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.pricing-features li {
  font-size: .9rem;
  color: var(--dark-gray);
  padding-left: 1.4rem;
  position: relative;
}
.pricing-features li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--gold);
  font-weight: 300;
}
.pricing-card .btn { width: 100%; justify-content: center; margin-top: 1.75rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark-gray);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,90,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error {
  padding: .9rem 1.1rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  color: #b91c1c;
  font-size: .88rem;
  display: none;
}
.form-success {
  padding: .9rem 1.1rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  color: #15803d;
  font-size: .88rem;
  display: none;
}
.form-note { font-size: .78rem; color: var(--mid-gray); }

/* ── Blog ────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream);
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: .75rem; color: var(--mid-gray); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75rem; }
.blog-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.blog-card h3 a { transition: color var(--transition); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { font-size: .9rem; color: var(--dark-gray); flex: 1; }
.blog-card-link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition);
}
.blog-card-link:hover { gap: .6rem; }

/* ── About ───────────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-image-accent {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  width: 50%; height: 50%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: -1;
}

/* ── Client Portal ───────────────────────────────────────────── */
.portal-login-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.portal-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.portal-login-card .logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ink);
}
.portal-login-card .logo span { color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: .9rem; max-width: 28ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a {
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap; gap: 1rem;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp .8s both; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.bg-cream     { background: var(--cream); }
.bg-ink       { background: var(--ink); color: var(--white); }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sc-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 480px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: fixed; inset: var(--nav-h) 0 0; background: var(--white); padding: 2rem; gap: 1rem; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .gallery-grid.masonry { columns: 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid.masonry { columns: 1; }
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    position: static;
    order: -1; /* sidebar goes above form on mobile */
  }
}

/* ── Mobile global fixes ──────────────────────────────────── */
@media (max-width: 600px) {
  /* Hero */
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Pricing - stack cards fully */
  .pricing-grid { grid-template-columns: 1fr !important; }

  /* Gallery tabs - scroll horizontally */
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
  .gallery-tabs::-webkit-scrollbar { height: 3px; }
  .gallery-tabs::-webkit-scrollbar-thumb { background: var(--light-gray); }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }

  /* About split already handled at 900px */

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr !important; }

  /* Section padding */
  section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
}
