/* LoopNestHome — styles.css */

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

:root {
  --cream: #F8F4EE;
  --parchment: #EDE6DA;
  --brown-deep: #2A1F1A;
  --brown-mid: #5C3D2E;
  --terracotta: #A0522D;
  --terracotta-light: #C8784A;
  --sage: #6B8C6B;
  --sage-light: #9DB89D;
  --muted: #8A7060;
  --border: #D8CDBF;
  --white: #FFFFFF;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(42, 31, 26, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 31, 26, 0.12);
  --shadow-lg: 0 8px 32px rgba(42, 31, 26, 0.14);

  --max-w: 1100px;
  --section-pad: 80px 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--brown-deep);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Typography ─────────────────────────────────────── */

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

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: normal; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: normal; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: normal; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Utility ─────────────────────────────────────────── */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--terracotta);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(160, 82, 45, 0.3);
}

.btn-primary:hover {
  background-color: var(--terracotta-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

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

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

/* ── Cookie Banner ───────────────────────────────────── */

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

#cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

#cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1 1 280px;
}

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

#cookie-accept {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

#cookie-accept:hover {
  background: var(--terracotta-light);
}

/* ── Header ──────────────────────────────────────────── */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem !important;
  font-weight: 500;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--terracotta-light) !important;
  color: var(--white) !important;
}

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

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-deep);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: 0;
  background: var(--cream);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 580px;
  align-items: stretch;
}

.hero-content {
  padding: 60px 50px 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 18px;
  font-weight: 500;
}

.hero-title {
  margin-bottom: 20px;
  color: var(--brown-deep);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 420px;
}

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

.hero-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-image-col {
  position: relative;
  overflow: hidden;
}

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

/* ── For Whom Section ─────────────────────────────────── */

.for-whom {
  padding: var(--section-pad);
  background: var(--parchment);
}

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

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  max-width: 580px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

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

.whom-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.whom-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.whom-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.whom-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--brown-deep);
}

.whom-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Program Section ──────────────────────────────────── */

.program {
  padding: var(--section-pad);
  background: var(--cream);
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.program-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.program-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.program-image:hover img {
  transform: scale(1.02);
}

.program-content .section-label { margin-bottom: 10px; }
.program-content .section-title { margin-bottom: 14px; }
.program-content .section-desc { margin-bottom: 32px; }

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.module-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.module-item:first-child {
  border-top: 1px solid var(--border);
}

.module-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--terracotta);
  min-width: 32px;
  line-height: 1;
  padding-top: 2px;
}

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

.module-text p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Format Section ───────────────────────────────────── */

.format {
  padding: var(--section-pad);
  background: var(--brown-deep);
  color: var(--cream);
}

.format .section-label {
  color: var(--sage-light);
}

.format .section-title {
  color: var(--cream);
  margin-bottom: 14px;
}

.format .section-desc {
  color: rgba(248,244,238,0.7);
  margin-bottom: 48px;
}

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

.format-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background 0.2s;
}

.format-card:hover {
  background: rgba(255,255,255,0.1);
}

.format-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(160, 82, 45, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

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

.format-card p {
  font-size: 0.875rem;
  color: rgba(248,244,238,0.65);
  line-height: 1.6;
  margin: 0;
}

/* ── Result Section ───────────────────────────────────── */

.result {
  padding: var(--section-pad);
  background: var(--parchment);
}

.result-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.result-content .section-label { margin-bottom: 10px; }
.result-content .section-title { margin-bottom: 14px; }
.result-content .section-desc { margin-bottom: 28px; }

.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.result-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--brown-mid);
  line-height: 1.55;
}

.result-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.result-check::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.result-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.result-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.result-image:hover img {
  transform: scale(1.02);
}

/* ── Instructor Section ───────────────────────────────── */

.instructor {
  padding: var(--section-pad);
  background: var(--cream);
}

.instructor-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 52px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
}

.instructor-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--parchment);
  border: 4px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
  overflow: hidden;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-content .section-label {
  margin-bottom: 8px;
}

.instructor-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--brown-deep);
  margin-bottom: 6px;
  font-weight: normal;
}

.instructor-role {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.instructor-content p {
  color: var(--brown-mid);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ── FAQ Section ──────────────────────────────────────── */

.faq {
  padding: var(--section-pad);
  background: var(--parchment);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq .section-title {
  margin-bottom: 40px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

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

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

.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item.open .faq-arrow {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 22px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

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

/* ── Lead Form Section ────────────────────────────────── */

.lead-form-section {
  padding: var(--section-pad);
  background: var(--cream);
}

.form-wrap {
  max-width: 580px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 48px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-wrap .section-title {
  text-align: center;
  margin-bottom: 10px;
}

.form-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

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

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

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown-mid);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.975rem;
  color: var(--brown-deep);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.1);
}

.field input::placeholder {
  color: rgba(138, 112, 96, 0.5);
}

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

.field.has-error input, .field.has-error select {
  border-color: #c0392b;
}

.field.has-error .field-error {
  display: block;
}

.form-consent {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 16px;
  text-align: center;
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.form-success-msg {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.form-success-msg h3 {
  color: var(--sage);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.form-success-msg p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  background: var(--brown-deep);
  color: rgba(248,244,238,0.65);
  padding: 48px 20px 32px;
}

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

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

.footer-brand .logo {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(248,244,238,0.55);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cream);
}

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

.footer-legal p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0 0 4px;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Legal Pages ──────────────────────────────────────── */

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

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 36px;
  display: block;
}

.legal-inner h2 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--brown-deep);
}

.legal-inner p {
  color: var(--brown-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-inner ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--brown-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-inner ul li {
  margin-bottom: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--terracotta);
  font-size: 0.9rem;
  margin-bottom: 36px;
  transition: gap 0.2s;
}

.back-link:hover {
  gap: 12px;
}

/* ── Success Page ─────────────────────────────────────── */

.success-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.success-box {
  max-width: 540px;
  text-align: center;
  padding: 56px 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #E8F5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}

.success-box h1 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.success-box p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
  :root {
    --section-pad: 60px 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 50px 20px 36px;
    order: 1;
  }

  .hero-image-col {
    order: 2;
    height: 320px;
  }

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

  .result-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .result-image img {
    height: 300px;
  }

  .instructor-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .instructor-photo {
    width: 140px;
    height: 140px;
  }

  .form-wrap {
    padding: 36px 28px 32px;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

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

  .burger-btn {
    display: flex;
  }

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

  .format-cards {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .form-wrap {
    padding: 28px 20px;
    border-radius: var(--radius);
  }
}

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

  .format-cards {
    grid-template-columns: 1fr;
  }

  .success-box {
    padding: 40px 24px;
  }
}
