/* =============================================
   Accessora Sew — Main Stylesheet
   ============================================= */

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --brown-deep: #2D2117;
  --brown-warm: #8B5E3C;
  --terracotta: #C4785A;
  --terracotta-light: #D9957A;
  --sand: #E8DDD0;
  --sand-light: #F5F0EA;
  --text-main: #2D2117;
  --text-muted: #7A6358;
  --text-light: #A8927F;

  --font-heading: 'Georgia', 'Cambria', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1120px;
  --section-padding: 80px 24px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--text-main);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 400; }

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

/* =============================================
   Layout Utilities
   ============================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section--alt {
  background-color: var(--sand-light);
}

.section--dark {
  background-color: var(--brown-warm);
  color: var(--cream);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--cream);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.0625rem;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background-color: var(--terracotta);
  color: #fff;
}

.btn--primary:hover {
  background-color: #b66a4d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 120, 90, 0.35);
}

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

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

.btn--white {
  background-color: #fff;
  color: var(--brown-warm);
}

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

/* =============================================
   Navigation / Header
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(45, 33, 23, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--brown-deep);
  letter-spacing: 0.02em;
  font-weight: 400;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown-deep);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 8px 24px 20px;
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--sand);
  display: block;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .btn {
  margin-top: 12px;
  text-align: center;
  width: 100%;
}

.mobile-menu.open {
  display: flex;
}

/* =============================================
   Hero
   ============================================= */

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  max-width: 540px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background-color: var(--terracotta);
}

.hero h1 {
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 460px;
}

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

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--sand);
}

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

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,120,90,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* =============================================
   Program / What You Learn
   ============================================= */

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.program-item {
  background-color: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.program-item:hover {
  box-shadow: 0 8px 32px rgba(45, 33, 23, 0.08);
  transform: translateY(-2px);
}

.program-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 400;
}

.program-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
  color: var(--brown-deep);
}

.program-item p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =============================================
   For Whom
   ============================================= */

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

.for-whom-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--sand);
}

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

.for-whom-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.for-whom-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.for-whom-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--terracotta);
  margin-top: 7px;
}

.for-whom-item h3 {
  font-size: 1rem;
  color: var(--brown-deep);
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
}

.for-whom-item p {
  font-size: 0.9375rem;
}

/* =============================================
   Learning Format
   ============================================= */

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

.format-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.format-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.7);
}

.format-icon svg {
  width: 100%;
  height: 100%;
}

.format-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
  color: #fff;
}

.format-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

/* =============================================
   Outcome / Showcase
   ============================================= */

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

.showcase-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--sand);
}

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

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.showcase-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.showcase-list-item::before {
  content: '—';
  color: var(--terracotta);
  flex-shrink: 0;
  font-weight: 600;
}

/* =============================================
   Lead Form Section
   ============================================= */

.form-section {
  background-color: var(--cream-dark);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

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

.form-content h2 {
  margin-bottom: 16px;
}

.form-content p {
  font-size: 1rem;
  margin-bottom: 0;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-group input {
  padding: 13px 16px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  background-color: #fff;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 120, 90, 0.12);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-group input.error {
  border-color: #c0392b;
}

.form-error-msg {
  font-size: 0.8rem;
  color: #c0392b;
  display: none;
}

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

.form-submit-wrap {
  margin-top: 8px;
}

.form-submit-wrap .btn {
  width: 100%;
  text-align: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
}

.form-note a {
  color: var(--terracotta);
  text-decoration: underline;
}

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

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--sand);
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown-deep);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--terracotta);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--terracotta);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 24px;
}

.faq-answer-inner p {
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* =============================================
   Footer
   ============================================= */

.site-footer {
  background-color: var(--brown-deep);
  color: rgba(255,255,255,0.65);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.footer-brand .nav-logo {
  color: rgba(255,255,255,0.9);
  display: block;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  max-width: 220px;
  line-height: 1.6;
}

.footer-links-group h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: rgba(255,255,255,0.95);
}

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

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

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
}

/* =============================================
   Cookie Banner
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background-color: var(--brown-deep);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  z-index: 1000;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  padding: 10px 20px;
  background-color: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.cookie-accept:hover {
  background-color: #b66a4d;
}

/* =============================================
   Success Page
   ============================================= */

.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: #fff;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.success-page > p {
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 40px;
}

/* =============================================
   Legal Pages
   ============================================= */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 48px;
  display: block;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page ul li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 60px 24px 40px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-image-wrap {
    order: 0;
    aspect-ratio: 16/9;
  }

  .for-whom-layout,
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .format-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 56px 20px;
  }

  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

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