/* ========================
   HandGlowClay — styles.css
   ======================== */

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

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

:root {
  --clay: #C4623A;
  --clay-dark: #A04E2C;
  --clay-light: #E8B89A;
  --cream: #F8F0E8;
  --cream-dark: #EFE2D4;
  --warm-brown: #5C3520;
  --mid-brown: #8B5E3C;
  --sand: #D4B896;
  --text: #2C1A0E;
  --text-muted: #7A5A45;
  --white: #FFFFFF;
  --border: rgba(92, 53, 32, 0.15);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ========================
   TYPOGRAPHY
   ======================== */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--warm-brown);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75rem;
}

/* ========================
   LAYOUT
   ======================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

/* ========================
   HEADER & NAV
   ======================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--warm-brown);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--clay);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--clay);
}

.btn-nav {
  background: var(--clay);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 40px;
  transition: background var(--transition), transform var(--transition) !important;
}

.btn-nav:hover {
  background: var(--clay-dark) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-brown);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(44, 26, 14, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* ========================
   BUTTONS
   ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196, 98, 58, 0.3);
}

.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 98, 58, 0.4);
}

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

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

.btn-lg {
  padding: 18px 42px;
  font-size: 1.05rem;
}

/* ========================
   HERO
   ======================== */

.hero {
  padding: 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  background-color: var(--cream-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: var(--white);
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay-light);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 400;
  font-style: italic;
}

.hero h1 em {
  font-style: normal;
  color: var(--clay-light);
}

.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
}

/* ========================
   RESULTS / GALLERY
   ======================== */

.results-section {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header p {
  margin-top: 12px;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item.wide {
  aspect-ratio: 16/9;
  grid-column: span 2;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}

/* ========================
   HOW IT WORKS
   ======================== */

.how-section {
  background: var(--cream);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.steps-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}

.steps-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.step-text h4 {
  margin-bottom: 4px;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--warm-brown);
}

.step-text p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========================
   FOR WHOM
   ======================== */

.audience-section {
  background: var(--warm-brown);
  color: var(--white);
}

.audience-section h2 {
  color: var(--white);
}

.audience-section .section-label {
  color: var(--clay-light);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.audience-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.audience-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.audience-card h3 {
  color: var(--cream);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.audience-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================
   BENEFITS
   ======================== */

.benefits-section {
  background: var(--cream-dark);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.benefit-item {
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
}

.benefit-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.benefit-item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--warm-brown);
  margin-bottom: 8px;
}

.benefit-item p {
  font-size: 0.9rem;
}

.benefit-marker {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-item:nth-child(odd) {
    border-right: none;
  }

  .benefit-item {
    padding: 28px 24px;
  }
}

/* ========================
   LEAD FORM
   ======================== */

.form-section {
  background: var(--clay);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.form-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
}

.form-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.form-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.form-section .section-label {
  color: rgba(255,255,255,0.7);
}

.form-section > .container > .form-inner > p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
}

.lead-form {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: left;
  box-shadow: 0 20px 60px rgba(44, 26, 14, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm-brown);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clay);
  background: var(--white);
}

.form-group .error-msg {
  font-size: 0.78rem;
  color: #d9534f;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #d9534f;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-agree {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-agree a {
  color: var(--clay);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--clay);
  color: var(--white);
  border: none;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(196, 98, 58, 0.3);
}

.form-submit:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 24px 20px;
  }
}

/* ========================
   FAQ
   ======================== */

.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--warm-brown);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clay);
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========================
   FOOTER
   ======================== */

.site-footer {
  background: var(--warm-brown);
  color: rgba(255,255,255,0.7);
  padding: 52px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .logo {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--clay-light);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

.footer-legal strong {
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ========================
   COOKIE BANNER
   ======================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--warm-brown);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  max-width: 720px;
}

.cookie-text a {
  color: var(--clay-light);
  text-decoration: underline;
}

.cookie-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  background: var(--clay);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.cookie-btn:hover {
  background: var(--clay-dark);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================
   SUCCESS PAGE
   ======================== */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--cream);
}

.success-card {
  max-width: 520px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.success-card p {
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ========================
   LEGAL PAGES
   ======================== */

.legal-page {
  padding: 60px 0 80px;
}

.legal-page .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.legal-page .page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--warm-brown);
  margin: 36px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 20px;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ========================
   INNER PAGE HEADER
   ======================== */

.inner-hero {
  background: var(--cream-dark);
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--border);
}

/* ========================
   UTILITIES
   ======================== */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
