/* The Flow · Ski & Snowboard School
   Follows the_flow_updated_full_website.html (navy, italic brand, blue accent),
   with real photos instead of embedded mockup crops. */

:root {
  --bg: #061521;
  --card: #0d263c;
  --blue: #087aff;
  --muted: #adc0d1;
  --line: rgba(167, 205, 240, 0.2);
  --white: #f8fbff;
  --error: #ff8a8a;
  --max: 1230px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: #147aff; color: white; }
:focus-visible { outline: 2px solid #5ab4ff; outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 76px), var(--max)); margin: auto; }

/* Header */
.navwrap { position: absolute; z-index: 10; top: 0; left: 0; right: 0; }
.nav { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; background: #0677f5; border-radius: 10px; transform: skew(-12deg); }
.brand-mark svg { width: 31px; height: 31px; transform: skew(12deg); }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type strong { font-size: 31px; font-style: italic; letter-spacing: -1.4px; }
.brand-type small { font-size: 10px; letter-spacing: 1.1px; margin-top: 7px; }
.navlinks { display: flex; align-items: center; gap: 32px; font-weight: 600; font-size: 14px; }
.navlinks a:hover, .footer a:hover { color: #5ab4ff; }
.menu-toggle { display: none; border: 1px solid var(--line); background: rgba(5, 17, 30, 0.8); color: white; border-radius: 7px; padding: 8px 12px; font-size: 23px; min-width: 44px; min-height: 44px; }

/* Buttons */
.button { border: 1px solid transparent; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: 18px; color: white; font-size: 15px; font-weight: 700; padding: 17px 26px; border-radius: 6px; transition: transform 0.2s, background 0.2s; white-space: nowrap; }
.button:hover { transform: translateY(-2px); background: #006ce5; }
.button.outline { background: rgba(3, 14, 24, 0.15); border-color: #d0e5ff; }
.button.outline:hover { background: rgba(255, 255, 255, 0.12); }
.navcta { font-size: 14px; padding: 15px 22px; transform: skew(-11deg); }
.navcta:hover { transform: skew(-11deg) translateY(-2px); }
.navcta span { display: inline-block; transform: skew(11deg); }

/* Hero */
.hero { min-height: 745px; position: relative; isolation: isolate; overflow: hidden; background: #061927; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #051422 0%, #061927 27%, rgba(6, 23, 37, 0.76) 47%, rgba(5, 20, 31, 0.1) 77%),
    linear-gradient(0deg, #061521 0%, transparent 42%, rgba(3, 12, 22, 0.4) 100%),
    url("/assets/img/hero.jpg") no-repeat right center / auto 100%;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 68% 52%, transparent 5%, rgba(0, 0, 0, 0.18) 85%); pointer-events: none; }
.hero-content { padding-top: 184px; position: relative; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 5px; text-transform: uppercase; }
.eyebrow--small { font-size: 10px; letter-spacing: 2.5px; color: #6bb7ff; }
.rule { width: 74px; height: 5px; border-radius: 3px; background: var(--blue); margin: 19px 0 30px; }
.hero h1 { font-weight: 850; font-size: clamp(48px, 5.9vw, 89px); line-height: 1.07; letter-spacing: -0.05em; max-width: 760px; margin: 0 0 24px; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero-lead { font-size: clamp(17px, 1.65vw, 22px); line-height: 1.48; max-width: 620px; margin: 0; color: #eff5fc; }
.hero-buttons { display: flex; gap: 16px; margin-top: 36px; }
.hero-benefits { position: absolute; left: 50%; transform: translateX(-50%); bottom: 36px; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: flex; align-items: center; gap: 19px; padding: 0 27px; border-right: 1px solid rgba(255, 255, 255, 0.34); font-size: 15px; line-height: 1.45; }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { border: 0; }
.benefit svg { width: 44px; min-width: 44px; fill: none; stroke: white; stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; }

/* Sections */
.section { padding: 88px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 55px; margin-bottom: 34px; }
.section-heading h2, .about h2, .faq h2, .contact h2 { text-wrap: balance; font-size: clamp(31px, 4.2vw, 53px); line-height: 1.14; letter-spacing: -1.8px; margin: 0; }
.section-heading .rule { margin: 15px 0 13px; }
.section-summary { border-left: 3px solid var(--blue); max-width: 380px; padding-left: 24px; color: #e0eaf4; font-size: 16px; line-height: 1.5; margin: 0; }

/* Courses */
.courses { background: #061623; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.course-card { min-width: 0; background: linear-gradient(#102b42, #0c2236); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(126, 176, 215, 0.07); }
.course-img { height: 185px; background-size: cover; background-position: center; position: relative; }
.course-img::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(3, 14, 25, 0.35)); }
.course-img--private { background-image: url("/assets/img/c-private.jpg"); background-position: 60% 20%; }
.course-img--group { background-image: url("/assets/img/c-group.jpg"); }
.course-img--kids { background-image: url("/assets/img/c-kids.jpg"); background-position: center 30%; }
.course-img--camp { background-image: url("/assets/img/c-camp.jpg"); }
.pill { position: absolute; bottom: -12px; left: 14px; z-index: 1; border: 1px solid rgba(190, 227, 252, 0.32); border-radius: 20px; padding: 5px 12px; background: #081d2d; display: flex; align-items: center; gap: 7px; font-size: 12px; }
.pill i { height: 8px; width: 8px; border-radius: 50%; background: #0a89ff; }
.pill--green i { background: #10c86d; }
.course-content { padding: 28px 19px 21px; display: flex; flex-direction: column; flex: 1; }
.course-content h3 { font-size: 21px; margin: 0 0 11px; letter-spacing: -0.6px; }
.course-content > p { font-size: 14px; line-height: 1.48; color: #c3d1df; margin: 0 0 18px; flex: 1; }
.course-features { display: grid; gap: 9px; font-size: 13px; color: #d7e5f0; margin-bottom: 19px; }
.course-price { border-top: 1px solid var(--line); padding-top: 15px; display: flex; align-items: baseline; gap: 5px; min-height: 55px; }
.course-price strong { font-size: 23px; }
.course-price span { color: var(--muted); font-size: 12px; }
.course-link { font-size: 14px; color: #329bff; font-weight: 750; display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; padding: 6px 0; }
.course-link:hover { color: #90caff; }
.group-rates { list-style: none; padding: 0; margin: 0 0 19px; display: grid; gap: 7px; font-size: 13px; color: #d7e5f0; }
.group-rates li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.group-rates li:last-child { border: 0; padding-bottom: 0; }
.group-rates strong { color: var(--white); }
.course-card--featured { border-color: rgba(8, 122, 255, 0.7); background: linear-gradient(#123a5e, #0c2236); box-shadow: 0 0 0 1px rgba(8, 122, 255, 0.25), 0 14px 34px rgba(8, 122, 255, 0.14); }
.course-content .course-why { flex: none; margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid var(--blue); background: rgba(8, 122, 255, 0.12); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.4; color: #e3eefa; }
.lift-note { display: flex; gap: 12px; align-items: center; margin: 18px 0 0; color: #dcecff; font-size: 14px; }
.lift-note strong { color: #77bfff; }

/* About */
.about { position: relative; overflow: hidden; background: #071a29; }
.about-layout { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); min-height: 520px; }
.about-photo { position: relative; background-image: linear-gradient(90deg, transparent 70%, #071a29 99%), url("/assets/img/portrait.jpg"); background-size: cover; background-position: 50% 30%; min-height: 520px; }
.about-photo::after { content: ""; position: absolute; right: 2%; top: -20%; height: 140%; width: 11px; background: #067cff; transform: rotate(17deg); }
.about-content { padding: 75px 6vw 70px 5vw; max-width: 780px; }
.about-content .rule { margin: 15px 0; }
.about h2 { font-size: clamp(34px, 3.7vw, 49px); }
.blue { color: #1688ff; }
.about-subtitle { font-weight: 750; font-size: 20px; margin: 7px 0 21px; }
.about-desc { color: #e2edf7; font-size: 15px; line-height: 1.7; max-width: 630px; }
.quote { display: flex; gap: 14px; font-size: clamp(20px, 2.5vw, 30px); line-height: 1.32; font-style: italic; margin: 20px 0; }
.quote b { font-size: 60px; color: var(--blue); line-height: 0.9; }
.credential-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.credential { font-size: 12px; border: 1px solid #29506e; border-radius: 100px; padding: 9px 13px; color: #d8e8f6; }

/* Gallery */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 15px; }
.gallery-tile { min-height: 285px; border-radius: 12px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 22px; position: relative; overflow: hidden; }
.gallery-tile--1 { background-image: url("/assets/img/g/viraj.jpg"); background-position: 30% center; }
.gallery-tile--2 { background-image: url("/assets/img/g/grupa.jpg"); background-position: center 60%; }
.gallery-tile--3 { background-image: url("/assets/img/g/creste.jpg"); }

/* FAQ */
.faq { background: #081d2d; }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
.faq h2 { margin: 0 0 18px; }
.faq-intro { color: var(--muted); line-height: 1.65; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: #4eaeff; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #bbcede; line-height: 1.7; font-size: 14px; margin: 13px 20px 0 0; }

/* Contact */
.contact { padding: 90px 0; background: radial-gradient(circle at 15% 85%, #0d3756, #061624 65%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: 75px; align-items: start; }
.contact h2 { margin: 20px 0; }
.contact-list { margin: 28px 0 0; display: grid; gap: 16px; max-width: 480px; }
.contact-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.contact-list dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.contact-list dd { margin: 0; line-height: 1.6; color: #e6f0f9; }
.contact-list a { color: #5ab4ff; font-weight: 700; font-size: 18px; }
.contact-note { margin-top: 30px; border-left: 3px solid var(--blue); padding-left: 15px; color: #a9c3d6; font-size: 13px; line-height: 1.7; }

.form-card { background: #102a40; border: 1px solid var(--line); border-radius: 14px; padding: 30px; scroll-margin-top: 20px; }
.form-card h3 { margin: 0 0 8px; font-size: 26px; }
.form-card > p { color: #bbcede; margin: 0 0 22px; font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: #dbe8f3; font-weight: 700; }
.field input, .field select, .field textarea { background: #071b2b; color: white; border: 1px solid #36556c; border-radius: 6px; padding: 12px 13px; outline: none; width: 100%; min-width: 0; min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #1689ff; box-shadow: 0 0 0 2px #087aff44; }
.field input::placeholder, .field textarea::placeholder { color: #819bb0; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.form-error { margin: 16px 0 0; color: var(--error); font-size: 14px; font-weight: 600; }
.form-card .button { margin-top: 18px; max-width: 100%; white-space: normal; }
.form-note { font-size: 12px; color: #bed6e8; line-height: 1.5; margin: 15px 0 0; }
.form-status { font-size: 13px; color: #89c5ff; margin: 14px 0 0; }

/* Footer */
.footer { background: #04101b; padding: 30px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand-mark { height: 37px; width: 37px; }
.footer .brand-mark svg { width: 23px; }
.footer .brand-type strong { font-size: 22px; }
.footer .brand-type small { font-size: 8px; }
.footer small { font-size: 12px; color: #92abbf; }
.footer nav { display: flex; gap: 19px; font-size: 12px; }

@media (max-width: 1100px) {
  .navlinks { gap: 16px; }
  .brand-type strong { font-size: 26px; }
  .navcta { padding: 14px 12px; }
  .hero h1 { max-width: 650px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-benefits { bottom: 27px; }
  .benefit { font-size: 13px; padding: 0 14px; gap: 10px; }
  .benefit svg { width: 32px; min-width: 32px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .nav { height: 80px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-type strong { font-size: 24px; }
  .brand-type small { font-size: 8px; }
  .menu-toggle { display: block; margin-left: auto; }
  .navcta { display: none; }
  .navlinks { position: absolute; top: 72px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #0b273d; border: 1px solid #315674; border-radius: 10px; padding: 8px 15px; box-shadow: 0 20px 30px #0008; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 13px; border-bottom: 1px solid #2c4d64; }
  .navlinks a:last-child { border: 0; }
  .hero { min-height: 780px; }
  .hero::before {
    background:
      linear-gradient(0deg, #061521 2%, rgba(5, 20, 33, 0.8) 30%, rgba(6, 20, 33, 0.15) 67%, rgba(5, 16, 28, 0.65) 100%),
      linear-gradient(90deg, #071725 0%, transparent 75%),
      url("/assets/img/hero.jpg") no-repeat 62% 70px / auto 52%;
  }
  .hero-content { padding-top: 330px; }
  .eyebrow { font-size: 10px; letter-spacing: 3.5px; }
  .hero h1 { font-size: clamp(45px, 10vw, 65px); letter-spacing: -2.6px; line-height: 1.05; }
  .hero-lead { font-size: 16px; max-width: 490px; }
  .hero-buttons { gap: 10px; flex-wrap: wrap; margin-top: 25px; }
  .hero-buttons .button { font-size: 13px; padding: 14px 16px; }
  .hero-benefits { position: relative; bottom: auto; left: auto; transform: none; grid-template-columns: repeat(2, 1fr); margin-top: 38px; padding-bottom: 24px; row-gap: 18px; }
  .benefit { padding: 0 6px; border: 0; font-size: 12px; }
  .benefit:first-child { padding-left: 6px; }
  .benefit svg { width: 31px; min-width: 31px; }
  .section { padding: 63px 0; }
  .section-heading { display: block; }
  .section-heading h2, .about h2, .faq h2, .contact h2 { letter-spacing: -1px; }
  .section-summary { margin-top: 20px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .course-card { display: grid; grid-template-columns: 34% minmax(0, 1fr); }
  .course-card .course-img { height: auto; min-height: 100%; }
  .course-card .pill { display: none; }
  .course-card .course-content > p:not(.course-why) { display: none; }
  .course-content { padding: 16px 14px 12px; }
  .course-content h3 { font-size: 18px; margin-bottom: 9px; }
  .course-features { gap: 5px; margin-bottom: 10px; }
  .group-rates { gap: 4px; margin-bottom: 10px; }
  .group-rates li { padding-bottom: 4px; }
  .course-price { padding-top: 9px; min-height: 0; }
  .course-price strong { font-size: 19px; }
  .course-link { font-size: 13px; margin-top: 6px; padding: 10px 0 4px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { min-height: 380px; background-image: url("/assets/img/portrait.jpg"); background-position: center 25%; }
  .about-photo::after { display: none; }
  .about-content { padding: 40px 24px 55px; }
  .gallery-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery-tile { min-height: 215px; }
  .faq-grid { gap: 5px; }
  .contact-grid { gap: 35px; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-wrap: wrap; }
  .footer nav { width: 100%; }
}

@media (max-width: 440px) {
  .hero { min-height: 790px; }
  .hero-content { padding-top: 305px; }
  .hero::before {
    background:
      linear-gradient(0deg, #061521 0%, rgba(5, 20, 33, 0.85) 40%, rgba(5, 20, 33, 0.06) 72%, rgba(5, 16, 28, 0.6) 100%),
      url("/assets/img/hero.jpg") no-repeat 65% 70px / auto 46%;
  }
  .hero-benefits { margin-top: 35px; }
  .benefit { gap: 8px; }
  .benefit svg { width: 25px; min-width: 25px; }
  .fields { grid-template-columns: 1fr; }
  .form-card { padding: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
