/* ==========================================================================
   Our KASBI — stylesheet
   Palette: maroon #7A1F2B · gold #D4AF37
   Type:    Bricolage Grotesque (headings) · Manrope (body)
   ========================================================================== */

:root {
  --maroon:       #7A1F2B;
  --maroon-deep:  #4E101A;
  --maroon-wash:  #F4E7E8;
  --gold:         #D4AF37;
  --gold-deep:    #A8862A;
  --gold-pale:    #F6EBC9;
  --ivory:        #F7F2E8;
  --paper:        #FFFDF8;
  --ink:          #241417;
  --ink-soft:     #5F4F52;
  --line:         #E3D7C3;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Manrope", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
  --shadow: 0 18px 50px -24px rgba(78, 16, 26, .45);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }
p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: 66ch; }
.mt-lg { margin-top: 28px; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--maroon); color: #fff; padding: 10px 14px; border-radius: 4px; z-index: 100;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  line-height: 1.2;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--maroon-deep); border-color: var(--gold); }
.btn--gold:hover { background: #E2C051; color: var(--maroon-deep); }
.btn--maroon { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn--maroon:hover { background: var(--maroon-deep); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: #fff; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__logo { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--maroon); }
.brand__sub  { font-size: .72rem; color: var(--ink-soft); max-width: 34ch; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--maroon); }
.nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--gold); }
.nav__cta { margin-left: 12px; }
.nav__cta .btn { padding: 10px 18px; font-size: .95rem; }

.navtoggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.navtoggle__bar {
  width: 20px; height: 2px; background: currentColor; position: relative; display: block;
}
.navtoggle__bar::before, .navtoggle__bar::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.navtoggle__bar::before { top: -6px; } .navtoggle__bar::after { top: 6px; }

@media (max-width: 860px) {
  .brand__sub { display: none; }
  .navtoggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
         background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 18px; gap: 0; }
  .nav a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .nav__cta { margin: 14px 0 0; }
  .nav__cta .btn { display: block; text-align: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--maroon);
  color: #fff;
  min-height: min(82vh, 760px);
  display: grid; align-items: center;
}
.hero__photo {
  position: absolute; inset: 0 0 0 38%;
  background: url("../img/hero.jpg") center / cover no-repeat;
}
.hero__photo::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--maroon) 0%, rgba(122,31,43,.85) 22%, rgba(122,31,43,.25) 60%, rgba(78,16,26,.45) 100%),
    linear-gradient(180deg, rgba(78,16,26,0) 55%, rgba(78,16,26,.7) 100%);
}
.hero__inner { position: relative; padding: clamp(72px, 10vw, 128px) 0 clamp(120px, 14vw, 170px); }
.hero__kicker {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid var(--gold);
}
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .45em; }
.hero p  { max-width: 52ch; font-size: 1.15rem; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 760px) {
  .hero__photo { inset: 0; }
  .hero__photo::before {
    background: linear-gradient(180deg, rgba(122,31,43,.92) 0%, rgba(122,31,43,.8) 55%, rgba(78,16,26,.95) 100%);
  }
}

/* --------------------------------------------------------------------------
   Sijil — the registration panel (the site's signature element)
   -------------------------------------------------------------------------- */
.sijil-band { position: relative; margin-top: clamp(-90px, -9vw, -70px); padding-bottom: 8px; }
.sijil {
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 8px;
}
.sijil__inner {
  border: 1px solid var(--gold);
  padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.sijil__seal { display: flex; align-items: center; gap: 22px; }
.sijil__seal img { width: clamp(92px, 12vw, 140px); flex: none; }
.sijil__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; color: var(--maroon); margin: 0 0 8px; }
.sijil__seal p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.sijil__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.sijil__facts div { border-left: 2px solid var(--gold); padding-left: 14px; }
.sijil__facts dt { font-size: .82rem; color: var(--ink-soft); margin-bottom: 2px; }
.sijil__facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.sijil__facts dd.big { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--maroon); white-space: nowrap; }

@media (max-width: 860px) {
  .sijil__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sijil__facts { grid-template-columns: 1fr; }
  .sijil__seal { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tint { background: var(--maroon-wash); }
.section--maroon { background: var(--maroon); color: #fff; }
.section--maroon h2, .section--maroon h3 { color: #fff; }
.section--maroon p { color: rgba(255,255,255,.88); }
.section--maroon a:not(.btn) { color: var(--gold-pale); }

.section__head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
.section__head h2 { margin-bottom: .35em; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section--maroon .section__head p { color: rgba(255,255,255,.85); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--maroon-wash); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}

/* Services list */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.services li { background: var(--paper); padding: clamp(26px, 3vw, 38px); }
.services svg { width: 34px; height: 34px; color: var(--maroon); margin-bottom: 18px; }
.services h3 { margin-bottom: .4em; }
.services p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* Detail rows (servis page) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px 48px;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.row__label { font-family: var(--font-display); font-weight: 600; color: var(--maroon); font-size: 1.15rem; line-height: 1.25; }
.row__body p:last-child { margin-bottom: 0; }
.row__body ul { margin: .6em 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.row__body li { margin-bottom: .35em; }
@media (max-width: 680px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* Page header (inner pages) */
.pagehead { background: var(--maroon); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); }
.pagehead h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.pagehead p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 56ch; margin: 0; }
.pagehead__kicker { display: block; color: var(--gold); font-family: var(--font-display); font-weight: 600; margin-bottom: 14px; }

/* Blockquote / statement */
.statement {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 26px; margin: 40px 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35;
  color: var(--maroon-deep);
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__block { margin-bottom: 28px; }
.contact__block h3 { font-size: 1.05rem; margin-bottom: .3em; }
.contact__block address { font-style: normal; }
.contact__block a { word-break: break-word; }

.map { border: 1px solid var(--gold); padding: 6px; background: var(--paper); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Form */
.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); }
.form h2 { font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(212,175,55,.35); }
.field textarea { min-height: 150px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { font-size: .88rem; color: var(--ink-soft); margin: 14px 0 0; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 500; }
.alert--ok  { background: #E8F3E4; color: #1F4D1B; border: 1px solid #BFDDB6; }
.alert--err { background: var(--maroon-wash); color: var(--maroon-deep); border: 1px solid #E5C2C7; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--maroon-deep); color: rgba(255,255,255,.82); padding: clamp(48px, 6vw, 72px) 0 0; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 40px; padding-bottom: 40px; }
.footer__union { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.05rem; margin: 18px 0 8px; max-width: 32ch; line-height: 1.3; }
.footer__reg { font-size: .9rem; margin: 0; }
.footer__h { font-family: var(--font-display); font-size: 1rem; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.footer__addr { font-style: normal; margin-bottom: 10px; }
.footer__link { display: block; color: #fff; }
.footer__nav { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: 8px; }
.footer__nav a { color: #fff; text-decoration: none; }
.footer__nav a:hover { color: var(--gold); }
.footer__base {
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 18px 0 22px; font-size: .88rem;
}
.footer__base p { margin: 0; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
