/* ═══════════════════════════════════════
   THE SOPHIA STUDIOS — Shared Styles
   thesophiastudios.com
═══════════════════════════════════════ */

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

:root {
  --cream:       #F8F4ED;
  --cream-dark:  #EFE9DF;
  --cream-mid:   #F2ECE3;
  --teal:        #5B8C8C;
  --teal-dark:   #3f6b6b;
  --teal-light:  #7AABAB;
  --terra:       #C17A5D;
  --terra-light: #D4957A;
  --charcoal:    #2C2522;
  --charcoal-lt: #4a3f3b;
  --charcoal-xs: #6b5e58;
  --white:       #FFFFFF;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --radius:      4px;
  --radius-lg:   10px;
  --shadow-sm:   0 2px 12px rgba(44,37,34,0.07);
  --shadow-md:   0 8px 32px rgba(44,37,34,0.10);
  --shadow-lg:   0 20px 60px rgba(44,37,34,0.14);
  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h:       76px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
p { line-height: 1.75; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 16px;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 60px; }
.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 72px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; border-radius: var(--radius); border: none;
  cursor: pointer; white-space: nowrap; padding: 15px 30px;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: var(--teal); box-shadow: 0 8px 28px rgba(91,140,140,0.28); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal { background: var(--teal); color: var(--cream); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 8px 28px rgba(91,140,140,0.3); }
.btn-ghost { background: transparent; color: var(--charcoal-lt); padding: 15px 4px; border-bottom: 1px solid transparent; border-radius: 0; }
.btn-ghost:hover { color: var(--terra); border-bottom-color: var(--terra); transform: none; }
.btn-cream { background: var(--cream); color: var(--charcoal); }
.btn-cream:hover { background: var(--cream-dark); box-shadow: var(--shadow-md); }
.btn-cream-outline { background: transparent; color: var(--cream); border: 1.5px solid rgba(248,244,237,0.4); }
.btn-cream-outline:hover { border-color: var(--cream); background: rgba(248,244,237,0.08); transform: translateY(-2px); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(248,244,237,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(44,37,34,0.07);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 30px rgba(44,37,34,0.09); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 60px; }
.nav-logo { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--charcoal); letter-spacing: 0.01em; }
.nav-logo em { font-style: normal; color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.77rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-lt); transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--teal); transition: width var(--transition); }
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--charcoal); }
.nav-cta { background: var(--charcoal) !important; color: var(--cream) !important; padding: 11px 22px; border-radius: var(--radius); font-size: 0.77rem !important; font-weight: 500 !important; letter-spacing: 0.08em !important; transition: background var(--transition) !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal) !important; transform: none !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--cream); border-bottom: 1px solid rgba(44,37,34,0.1); padding: 32px 24px; z-index: 199; flex-direction: column; gap: 0; box-shadow: var(--shadow-lg); }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.05rem; font-weight: 500; color: var(--charcoal); padding: 18px 0; border-bottom: 1px solid rgba(44,37,34,0.07); }
.nav-mobile a:last-child { border-bottom: none; }

/* PAGE HEADER */
.page-header { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 80px; background: var(--charcoal); color: var(--cream); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(91,140,140,0.15) 0%, transparent 65%); }
.page-header .container { position: relative; }
.page-header .eyebrow { color: var(--terra); }
.page-header h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); color: var(--cream); margin-bottom: 20px; }
.page-header p { font-size: 1rem; color: rgba(248,244,237,0.6); max-width: 500px; }

/* DIVIDERS */
.divider { height: 1px; background: linear-gradient(to right, transparent, rgba(44,37,34,0.12), transparent); }
.divider-dark { height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* FOOTER */
.footer { background: var(--charcoal); color: var(--cream); padding: 88px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.8fr; gap: 64px; margin-bottom: 72px; }
.footer-brand-logo { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: 18px; }
.footer-brand-logo em { font-style: normal; color: var(--teal); }
.footer-brand p { font-size: 0.87rem; color: rgba(248,244,237,0.5); line-height: 1.8; margin-bottom: 6px; }
.footer-brand .sub { font-size: 0.72rem; color: rgba(248,244,237,0.28); margin-bottom: 28px; letter-spacing: 0.05em; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: rgba(248,244,237,0.55); transition: border-color var(--transition), background var(--transition), color var(--transition); }
.social-btn:hover { border-color: var(--teal); background: var(--teal); color: var(--cream); }
.footer-col h5 { font-family: var(--sans); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(248,244,237,0.32); margin-bottom: 22px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 13px; }
.footer-col a { font-size: 0.87rem; color: rgba(248,244,237,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--cream); }
.footer-newsletter h5 { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); margin-bottom: 10px; }
.footer-newsletter p { font-size: 0.84rem; color: rgba(248,244,237,0.48); margin-bottom: 20px; line-height: 1.65; }
.nl-form { display: flex; border: 1px solid rgba(255,255,255,0.11); border-radius: var(--radius); overflow: hidden; }
.nl-input { flex: 1; background: rgba(255,255,255,0.05); border: none; padding: 13px 16px; font-family: var(--sans); font-size: 0.84rem; color: var(--cream); outline: none; }
.nl-input::placeholder { color: rgba(248,244,237,0.28); }
.nl-btn { background: var(--teal); color: var(--cream); border: none; padding: 13px 18px; font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background var(--transition); white-space: nowrap; }
.nl-btn:hover { background: var(--teal-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom a { font-size: 0.75rem; color: rgba(248,244,237,0.28); }
.footer-bottom a:hover { color: rgba(248,244,237,0.6); }
.footer-bottom-links { display: flex; gap: 22px; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .nav-inner { padding: 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section-pad { padding: 80px 0; }
  .section-pad-sm { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding: 64px 0 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
