/* ACS Senshu Dojo — senshu-dojo.ro
   Hand-written, dependency-free. Palette taken from the old site's CSS variables:
   --brand rgb(209,42,16), --complementary rgb(26,30,41) (matches the club logo). */

/* ---------- Fonts (self-hosted, see assets/fonts) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --brand: #d12a10;
  --brand-dark: #a82008;
  --navy: #1a1e29;
  --navy-2: #232a3d;
  --ink: #232733;
  --ink-soft: #4d5361;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --line: #e4e6eb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(26, 30, 41, .09);
  --container: 1120px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* iOS overscroll bounce reveals the canvas behind the page. Paint it navy so the
     bottom bounce blends with the footer; the white slab sits entirely ABOVE the
     page so the top bounce stays white behind the white header. */
  background-color: var(--navy);
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-size: 100% 150vh;
  background-position: 0 -150vh;
}
body {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--navy); overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 800; font-size: 1rem; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(209, 42, 16, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy); font-weight: 800; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand .brand-name { font-size: 1.05rem; letter-spacing: .02em; line-height: 1.15; }
.brand .brand-sub { display: block; font-size: .64rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .09em; text-transform: uppercase; }

.nav-toggle-input { position: absolute; opacity: 0; }
.nav-toggle {
  margin-left: auto; display: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }

.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; }
.site-nav a { display: block; padding: .5rem .6rem; color: var(--ink); font-weight: 600; font-size: .9rem; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover { color: var(--brand); text-decoration: none; background: var(--paper-2); }
.site-nav li.active > a { color: var(--brand); }
.site-nav .nav-cta a { background: var(--brand); color: #fff; border-radius: 999px; padding: .5rem .9rem; font-weight: 800; }
.site-nav .nav-cta a:hover { background: var(--brand-dark); }

.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: .4rem; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  list-style: none; padding: .4rem; margin-top: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h));
    overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line);
    padding: .75rem 1rem 1.25rem; display: none; box-shadow: var(--shadow);
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .has-sub > a::after { display: none; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; padding: 0 0 0 1rem; margin: 0;
  }
  .site-nav .nav-cta { margin-top: .75rem; }
  .site-nav .nav-cta a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #33251f 130%);
  color: #fff; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding: 4.5rem 0;
}
.hero-kicker { color: #ff8a70; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: .04em; }
.hero h1 .accent { color: var(--brand); -webkit-text-stroke: 1px rgba(255,255,255,.15); }
.hero .hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #d6d9e2; margin: 1.1rem 0 1.8rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--radius); background: var(--brand); opacity: .85;
}
.hero-media img { position: relative; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; padding: 3rem 0 3.5rem; text-align: center; }
  .hero .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { max-width: 480px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin: 0 auto 2.4rem; text-align: center; }
.section-head .eyebrow { color: var(--brand); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; display: block; margin-bottom: .5rem; }

/* Steps (Prima intalnire / Antrenament / Efect) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow); position: relative;
}
.card .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  background: rgba(209, 42, 16, .1); color: var(--brand); font-weight: 800; font-size: 1.15rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Training types */
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.training-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.training-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.training-card .training-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.training-card h3 { font-size: 1.15rem; }
.training-card .training-link { margin-top: auto; font-weight: 800; }
.training-card .training-link::after { content: " →"; }
@media (max-width: 860px) { .training-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-grid a { border-radius: var(--radius); overflow: hidden; display: block; box-shadow: var(--shadow); }
.gallery-grid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Why (DE CE ACEST PROIECT?) */
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: why; }
.why-item {
  background: var(--navy); color: #e8eaf1; border-radius: var(--radius);
  padding: 1.8rem 1.5rem; position: relative; overflow: hidden;
}
.why-item .why-no { font-size: 2.4rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: .8rem; }
.why-item p { font-weight: 600; font-size: 1.05rem; }
@media (max-width: 860px) { .why-list { grid-template-columns: 1fr; } }

/* CTA band (signup / trial) */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #8f1b06 100%); color: #fff; }
.cta-inner { padding: 3.6rem 0; text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: .5rem; }
.cta-inner p { font-size: 1.15rem; margin-bottom: 1.6rem; opacity: .95; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.contact-actions .btn { background: #fff; color: var(--brand); }
.contact-actions .btn:hover { background: var(--navy); color: #fff; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 3.2rem 0; }
.page-hero h1 { color: #fff; }
.page-hero .page-hero-sub { color: #c9cdd9; margin-top: .6rem; max-width: 60ch; }

/* ---------- Prose / article layouts ---------- */
.prose { max-width: 70ch; }
.prose p + p { margin-top: 1rem; }
.prose h2 { margin: 2rem 0 .8rem; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.6rem; align-items: start; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split .media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media { position: static; max-width: 520px; } }

/* Fact chips (75 min / sala de antrenament) */
.facts { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.fact {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.1rem; font-weight: 800; color: var(--navy); box-shadow: var(--shadow);
}
.fact svg { width: 18px; height: 18px; fill: var(--brand); flex: none; }

/* ---------- Groups table ---------- */
.groups-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.groups-table { width: 100%; border-collapse: collapse; background: #fff; }
.groups-table caption { caption-side: top; text-align: left; padding: 1.1rem 1.3rem .4rem; font-weight: 800; font-size: 1.2rem; color: var(--navy); background: #fff; }
.groups-table th, .groups-table td { padding: .9rem 1.3rem; text-align: left; border-top: 1px solid var(--line); }
.groups-table thead th { background: var(--navy); color: #fff; border: none; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.groups-table .group-name th { background: rgba(209, 42, 16, .07); color: var(--brand); font-size: 1rem; letter-spacing: .02em; text-transform: none; }
.groups-table td.level { font-weight: 800; color: var(--navy); white-space: nowrap; }
.groups-note { margin-top: 1rem; color: var(--ink-soft); font-style: italic; }

/* ---------- News ---------- */
.news-item {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem 2.2rem; max-width: 760px;
}
.news-item h2 { margin-bottom: 1rem; }
.news-item p + p { margin-top: .8rem; }
.hashtag { display: inline-block; margin-top: 1.2rem; color: var(--brand); font-weight: 800; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem 1.5rem; text-align: center;
}
.contact-card .contact-icon {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(209, 42, 16, .1);
}
.contact-card .contact-icon svg { width: 26px; height: 26px; fill: var(--brand); }
.contact-card h3 { margin-bottom: .35rem; }
.contact-card .contact-value { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form placeholder (v1 — handler pending) */
.form-placeholder {
  margin-top: 2.6rem; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--ink-soft); background: var(--paper-2);
}

/* ---------- Instructor ---------- */
.instructor-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem;
}
.instructor-card img { border-radius: var(--radius); }
.instructor-card h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.instructor-card ul { list-style: none; padding: 0; }
.instructor-card li { padding-left: 1.4rem; position: relative; margin-bottom: .4rem; color: var(--ink-soft); }
.instructor-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
@media (max-width: 700px) { .instructor-card { grid-template-columns: 1fr; } .instructor-card img { max-width: 220px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9bec9; font-size: .95rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem;
  padding: 3.4rem 0 2.4rem;
}
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #d6d9e2; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand img { width: 54px; height: 54px; background: #fff; border-radius: 12px; padding: 3px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
}
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 19px; height: 19px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.video-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; }
.video-link svg { width: 20px; height: 20px; fill: var(--brand); }

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