/* ===== VARIABLES ===== */
:root {
  --dark: #1a1714;
  --dark-soft: #272320;
  --cream: #f7f3ed;
  --white: #ffffff;
  --ink: #1a1714;
  --ink-light: #6b6259;
  --amber: #d4943a;
  --amber-hover: #dfa044;
  --amber-dark: #b87d2f;
  --line-light: rgba(26, 23, 20, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 148, 58, 0.2);
  color: var(--ink);
}

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

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

button,
input,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(212, 148, 58, 0.4);
  outline-offset: 3px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  background: var(--cream);
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 20px 0 0;
  color: var(--ink);
}

.hero-tagline {
  max-width: 460px;
  margin: 26px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-light);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: var(--dark);
  box-shadow: 0 10px 28px rgba(212, 148, 58, 0.25);
}

.btn-amber:hover {
  background: var(--amber-hover);
  box-shadow: 0 16px 36px rgba(212, 148, 58, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--ink);
}

.btn-outline:hover {
  background: rgba(26, 23, 20, 0.04);
  border-color: rgba(26, 23, 20, 0.25);
  color: var(--ink);
}

/* ===== PORTRAIT ===== */
.hero-portrait {
  display: flex;
  justify-content: center;
}

.arch {
  margin: 0;
  width: min(100%, 400px);
  aspect-ratio: 0.82;
  overflow: hidden;
  border-radius: 280px 280px 24px 24px;
  box-shadow:
    0 0 0 1px rgba(212, 148, 58, 0.15),
    0 20px 60px rgba(26, 23, 20, 0.15),
    0 8px 24px rgba(26, 23, 20, 0.1);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.7s ease;
}

.arch:hover img {
  transform: scale(1.04);
}

/* ===== AMBER STRIP ===== */
.strip {
  background: var(--amber);
  overflow: hidden;
  position: relative;
  height: 54px;
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: marquee 22s linear infinite;
}

.strip-track span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}

.strip-track .sep {
  opacity: 0.35;
  font-weight: 400;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== SECTIONS ===== */
.section {
  scroll-margin-top: 20px;
}

.label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 14px 0 0;
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--white);
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.about-body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink-light);
}

.about-body a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.about-body a:hover {
  text-decoration-color: var(--ink);
}

.pullquote {
  position: relative;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--amber);
}

.pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

/* ===== TOPICS ===== */
.topics-section {
  background: var(--cream);
  padding: 100px 0;
}

.topic-list {
  margin-top: 40px;
}

.topic-row {
  display: grid;
  grid-template-columns: 64px 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 24px;
  margin: 0 -24px;
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 12px;
  transition: background 0.3s ease;
}

.topic-row:first-child {
  border-top: 1px solid rgba(26, 23, 20, 0.08);
}

.topic-row:hover {
  background: rgba(212, 148, 58, 0.05);
}

.topic-row .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--amber);
  transition: transform 0.25s;
}

.topic-row:hover .num {
  transform: scale(1.1);
}

.topic-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.topic-row p {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== COURSES ===== */
.courses-section {
  background: var(--white);
  padding: 100px 0;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 520px;
}

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

.course-card {
  padding: 28px 24px;
  border-left: 3px solid var(--amber);
  background: var(--cream);
  border-radius: 0 14px 14px 0;
  transition: transform 0.25s, box-shadow 0.25s;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 23, 20, 0.07);
}

.course-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.course-card p {
  margin: 10px 0 0;
  color: var(--ink-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-section > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 23, 20, 0.82),
    rgba(26, 23, 20, 0.5) 60%,
    rgba(26, 23, 20, 0.65)
  );
}

.cta-overlay {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px;
  width: 100%;
}

.cta-overlay h2 {
  color: #fff;
  max-width: 560px;
}

.cta-overlay p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  line-height: 1.6;
}

.cta-overlay .btn-amber {
  margin-top: 28px;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--cream);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-info p:last-child {
  color: var(--ink-light);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(26, 23, 20, 0.12);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(107, 98, 89, 0.5);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(212, 148, 58, 0.1);
}

.bot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 36px 0;
}

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

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.footer a {
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  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;
}

/* Hero reveals on page load (above fold) */
.hero .reveal {
  animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .reveal.delay-1 {
  animation-delay: 0.15s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .arch {
    width: min(100%, 360px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .topic-row {
    grid-template-columns: 48px 1fr;
    gap: 12px 20px;
  }

  .topic-row p {
    grid-column: 2;
  }

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

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 760px) {
  .container {
    padding: 0 20px;
  }

  /* Hero: don't force full viewport height on mobile */
  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-inner {
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero-name {
    font-size: clamp(3rem, 14vw, 5.5rem);
  }

  .hero-tagline {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
  }

  /* Smaller portrait on mobile */
  .arch {
    width: min(100%, 260px);
  }

  .about-section,
  .topics-section,
  .courses-section,
  .contact-section {
    padding: 72px 0;
  }

  .topic-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 16px;
    margin: 0 -16px;
  }

  .topic-row .num {
    font-size: 1.2rem;
  }

  .course-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section {
    min-height: 340px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .strip-track {
    animation: none;
  }
}
