@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#faf7ed;
  --paper:#fffdf7;
  --ink:#123f3a;
  --muted:#65746f;
  --green:#398963;
  --line:#e8e3d7;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Manrope,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
.container{width:min(1160px,calc(100% - 48px));margin:auto}

/* HEADER */
.header{height:84px;background:rgba(250,247,237,.96);border-bottom:1px solid rgba(224,219,208,.75);position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}
.header-inner{height:100%;display:flex;align-items:center}
.brand{display:flex;align-items:center}
.logo{width:135px;height:54px;object-fit:contain}
.nav{display:flex;gap:42px;margin-left:auto;margin-right:38px;height:100%;align-items:center;font-weight:700;font-size:16px}
.nav a{height:100%;display:flex;align-items:center;position:relative}
.nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:14px;height:3px;border-radius:3px;background:#39755e}
.header-write{display:inline-flex;background:var(--green);color:white;padding:12px 19px;border-radius:999px;font-size:13px;font-weight:800}
.burger{display:none;border:0;background:transparent;padding:0;margin-left:auto;width:38px}
.burger span{display:block;width:31px;height:3px;border-radius:5px;background:#39755e;margin:5px 0}

/* HERO */
.hero{position:relative;min-height:770px;overflow:hidden}
.hero-photo,.hero-fade{position:absolute;inset:0}
.hero-photo{
  background:url("assets/hero.jpg") center right/cover no-repeat;
}
.hero-fade{
  background:linear-gradient(90deg,
    rgba(250,247,237,1) 0%,
    rgba(250,247,237,.97) 24%,
    rgba(250,247,237,.77) 43%,
    rgba(250,247,237,.28) 65%,
    rgba(250,247,237,0) 83%);
}
.hero-inner{position:relative;min-height:770px;display:flex;align-items:flex-start}
.hero-copy{position:relative;width:700px;padding-top:82px;z-index:2}
.eyebrow{font-size:14px;letter-spacing:.075em;line-height:1.45;color:#65756f}
.hero h1{font-size:clamp(52px,5.8vw,82px);line-height:.99;letter-spacing:-.065em;margin:22px 0 22px;font-weight:800}
.hero-text{font-size:19px;line-height:1.55;color:#65746f;margin:0 0 25px}
.handnote{position:absolute;right:-380px;top:20px;font-family:Caveat,cursive;color:#9a9483;font-size:31px;line-height:.95;transform:rotate(-7deg);text-align:center}
.handnote span{font-size:37px}
.hero-features{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;max-width:650px;margin:25px 0 27px}
.hero-feature{display:flex;align-items:flex-start;gap:10px}
.hero-feature svg{width:42px;height:42px;flex:0 0 42px;fill:none;stroke-width:2}
.hero-feature span{font-size:13px;line-height:1.25;font-weight:600;color:#344741;padding-top:3px}
.heart{stroke:#e5aa39}.play{stroke:#5799c4}.play path{fill:#5799c4;stroke:none}.star{stroke:#e3a933}
.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--green);color:#fff;padding:17px 34px;border-radius:999px;font-size:18px;font-weight:800;box-shadow:0 10px 22px rgba(57,137,99,.14)}
.primary-btn span{font-size:24px;line-height:0}

/* COURSES */
.courses-section{padding:62px 0 82px}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}
.kicker{font-size:12px;letter-spacing:.14em;font-weight:800;color:#68766f}
.section-head h2{font-size:46px;letter-spacing:-.055em;line-height:1.02;margin:12px 0 0}
.course-note{font-family:Caveat,cursive;font-size:31px;line-height:1;transform:rotate(-4deg);text-align:center;color:#2e544d;padding-top:7px}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.course-card{background:var(--paper);border:1px solid var(--line);border-radius:24px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 8px 25px rgba(30,60,45,.035)}
.course-image{height:190px;position:relative;overflow:hidden}
.course-image img{width:100%;height:100%;object-fit:cover;display:block}
.course-badge{position:absolute;right:14px;top:14px;background:rgba(255,253,247,.96);border-radius:999px;padding:9px 14px;font-size:12px;font-weight:800}
.course-body{padding:20px;display:flex;flex-direction:column;flex:1}
.course-body h3{font-size:21px;line-height:1.15;letter-spacing:-.025em;margin:0 0 7px}
.course-sub{font-size:12px;color:#72817b;margin:0}
.course-body ul{list-style:none;padding:0;margin:15px 0 18px;line-height:1.75;font-size:12px;color:#60716c;flex:1}
.course-body li:before{content:"✓";color:#6a8a3a;font-weight:900;margin-right:8px}
.price-row{margin-top:auto;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.price-row strong{font-size:23px}
.buy-btn{background:var(--green);color:#fff;border-radius:999px;padding:11px 18px;font-size:12px;font-weight:800}
.coming-soon{background:#e2f0dc;border:1px solid #c8e3c1;color:#2f7652;border-radius:999px;padding:10px 18px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}

/* LOWER SECTIONS */
.why-section{padding:0 0 70px}
.why{background:#edf5e8;border-radius:34px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;min-height:290px}
.why-copy{padding:46px}
.why h2{font-size:40px;line-height:1.03;letter-spacing:-.05em;margin:13px 0 14px}
.why p{font-size:15px;line-height:1.6;color:#61716b;max-width:470px}
.why-art{min-height:290px}
.why-art img{width:100%;height:100%;object-fit:cover;display:block}
.contacts{padding:0 0 76px}
.contact-box{background:#eef5e9;border-radius:30px;padding:34px 38px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.contact-box h2{font-size:32px;line-height:1.05;margin:12px 0 9px;letter-spacing:-.04em}
.contact-box p{margin:0;color:#687973;font-size:14px}
.contact-links{display:flex;gap:9px;flex-wrap:wrap}
.contact-links a{padding:12px 17px;background:var(--green);color:white;border-radius:999px;font-size:12px;font-weight:800}
footer{border-top:1px solid var(--line);padding:29px 0;color:#75817c;font-size:12px}
.footer-inner{display:flex;justify-content:space-between;gap:20px}

/* MOBILE — responsive reconstruction of the supplied design */
@media (max-width: 800px){
  .container{width:calc(100% - 28px);max-width:680px}
  .header{height:68px}
  .header-inner{gap:10px}
  .logo{width:126px;height:48px}
  .nav{gap:clamp(14px,5.5vw,24px);margin-left:auto;margin-right:2px;font-size:clamp(12px,3.2vw,13px);white-space:nowrap}
  .nav a{height:68px}
  .nav a.active:after{bottom:10px;height:2px}
  .header-write{display:none}
  .burger{display:block;flex:0 0 34px;width:34px}
  .burger span{width:30px;height:3px}

  /* The hero is content-driven, so no phone can crop the title, features or CTA. */
  .hero{min-height:0;height:auto;overflow:hidden;padding-bottom:355px}
  .hero-photo{inset:auto 0 0 0;height:430px;background-position:center bottom;background-size:cover;background-repeat:no-repeat;background-color:var(--bg)}
  .hero-fade{inset:0;background:linear-gradient(180deg,
      rgba(250,247,237,1) 0%,
      rgba(250,247,237,1) 40%,
      rgba(250,247,237,.97) 47%,
      rgba(250,247,237,.68) 55%,
      rgba(250,247,237,0) 72%)}
  .hero-inner{min-height:0;display:block}
  .hero-copy{width:100%;padding-top:43px}
  .eyebrow{font-size:clamp(10px,2.8vw,11px);line-height:1.4;letter-spacing:.075em}
  .hero h1{font-size:clamp(34px,9.7vw,43px);line-height:1.02;letter-spacing:-.058em;margin:22px 0 17px;max-width:100%;text-wrap:balance}
  .hero-text{font-size:clamp(14px,3.8vw,16px);line-height:1.5;max-width:100%;margin:0 0 20px}
  .desktop-only{display:none}
  .handnote{right:0;top:44px;font-size:clamp(20px,6vw,25px);line-height:.95;max-width:118px}
  .handnote span{font-size:clamp(27px,7vw,31px)}

  .hero-features{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(7px,2.5vw,13px);max-width:none;margin:18px 0 23px}
  .hero-feature{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;min-width:0}
  .hero-feature svg{width:clamp(34px,10vw,41px);height:clamp(34px,10vw,41px);flex:0 0 auto}
  .hero-feature span{font-size:clamp(10px,2.8vw,12px);line-height:1.22;padding:0;white-space:normal}
  .primary-btn{display:flex;width:min(72%,300px);margin:0 auto;padding:14px 17px;font-size:clamp(15px,4.2vw,18px);line-height:1.1}
  .primary-btn span{font-size:22px}

  .courses-section{padding:42px 0 62px}
  .section-head{margin-bottom:23px;position:relative;padding-right:95px}
  .section-head h2{font-size:clamp(28px,8vw,34px);line-height:1.04;letter-spacing:-.05em;margin-top:11px;max-width:none}
  .course-note{font-size:clamp(20px,6.2vw,27px);line-height:.98;position:absolute;right:0;top:2px;max-width:105px}
  .course-grid{display:grid;grid-template-columns:1fr;gap:18px;overflow:visible;padding:0}
  .course-card{min-width:0;width:100%}
  .course-image{height:clamp(170px,48vw,220px)}
  .course-body{padding:18px}

  .why{grid-template-columns:1fr;border-radius:26px}
  .why-copy{padding:28px 22px}
  .why h2{font-size:clamp(28px,8vw,34px)}
  .why-art{height:190px;min-height:190px}
  .contact-box{display:block;padding:28px 22px}
  .contact-links{margin-top:20px}
  .footer-inner{display:block}
  .footer-inner span{display:block;margin-bottom:6px}
}

/* Small phones: keep every navigation item readable without horizontal overflow. */
@media (max-width: 390px){
  .container{width:calc(100% - 22px)}
  .logo{width:112px}
  .nav{gap:12px;font-size:11.5px}
  .burger{flex-basis:30px;width:30px}
  .burger span{width:27px}
  .hero-copy{padding-top:37px}
  .hero h1{font-size:clamp(31px,9.4vw,37px);margin-top:19px}
  .handnote{font-size:19px;max-width:100px;top:40px}
  .hero-text{font-size:14px}
  .hero-features{gap:5px}
  .hero-feature span{font-size:9.5px}
  .primary-btn{width:min(78%,280px);font-size:15px}
}

/* Very narrow screens: switch to hamburger so nothing is squeezed or clipped. */
@media (max-width: 355px){
  .nav{display:none}
  .burger{margin-left:auto}
  .hero h1{font-size:32px}
  .hero{padding-bottom:330px}
  .hero-photo{height:390px}
  .hero-feature span{font-size:9px}
}

/* Touch devices should never create accidental horizontal scrolling. */
html,body{max-width:100%;overflow-x:hidden}

/* FUNCTIONAL MOBILE MENU */
.mobile-menu{
  display:none;
}
@media(max-width:800px){
  .mobile-menu{
    position:fixed;
    top:68px;
    left:14px;
    right:14px;
    z-index:100;
    background:rgba(255,253,247,.98);
    border:1px solid #e6e0d4;
    border-radius:18px;
    box-shadow:0 16px 40px rgba(28,55,45,.14);
    padding:10px;
  }
  .mobile-menu.open{display:block}
  .mobile-menu a{
    display:block;
    padding:15px 16px;
    border-radius:12px;
    font-size:15px;
    font-weight:700;
  }
  .mobile-menu a:hover,
  .mobile-menu a:active{background:#edf5e9}
  body.menu-open{overflow:hidden}
  .burger{cursor:pointer;position:relative;z-index:102}
  .burger span{transition:transform .2s ease,opacity .2s ease}
  .burger.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .burger.open span:nth-child(2){opacity:0}
  .burger.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
}
