/* =============================================================
   FencingforU — main stylesheet
   Plain CSS, mobile-first. No frameworks, no build step.
   Palette: navy primary, amber accent, steel neutrals.
   ============================================================= */

:root {
  --navy:        #284863;   /* primary brand (from FFU icon SVG) */
  --navy-deep:   #1B2A38;   /* footer / overlays */
  --amber:       #E8A33D;   /* accent / CTAs */
  --amber-dark:  #cf8c26;   /* accent hover */
  --ink:         #22282E;   /* body text */
  --muted:       #5b6672;   /* secondary text */
  --line:        #dfe3e8;   /* borders */
  --bg:          #ffffff;
  --bg-soft:     #f5f6f8;   /* section backgrounds */
  --white:       #ffffff;

  --maxw: 1160px;
  --radius: 4px;            /* minimal radius echoes palisade geometry */
  --shadow: 0 6px 22px rgba(27, 42, 56, 0.10);
  --shadow-lg: 0 14px 40px rgba(27, 42, 56, 0.18);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --tap: 44px;             /* min touch target */
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: .8rem;
  font-weight: 700; color: var(--amber-dark); margin: 0 0 .6rem;
}
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--navy-deep); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--tap); padding: 13px 26px;
  font-size: 1rem; font-weight: 700; line-height: 1;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .05s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--navy-deep); }
.btn--primary:hover { background: var(--amber-dark); color: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 60px; width: auto; display: block; }
@media (max-width: 480px) { .brand__logo { height: 50px; } }
.footer-brand .brand__logo { height: 66px; }

/* Legacy CSS wordmark (kept as fallback; superseded by .brand__logo image) */
.brand__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--amber); color: var(--navy-deep);
  font-weight: 800; font-size: 1.15rem; border-radius: 3px;
  font-family: Georgia, "Times New Roman", serif;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.25rem; color: var(--white); letter-spacing: .2px; }
.brand__name b { color: var(--amber); font-weight: 800; }
.brand__tag { font-size: .62rem; text-transform: uppercase; letter-spacing: 2.5px; color: #b9c6d4; margin-top: 3px; }

/* Nav */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: var(--tap); height: var(--tap); padding: 10px;
  background: transparent; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--white); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--white); font-weight: 600; padding: 10px 14px; border-radius: var(--radius);
  display: inline-flex; align-items: center; min-height: var(--tap);
}
.main-nav a:hover { background: rgba(255,255,255,.10); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--amber); }
.main-nav .btn { margin-left: 6px; padding: 10px 18px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 18px;
    box-shadow: 0 12px 20px rgba(0,0,0,.25);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .btn { margin: 10px 0 0; width: 100%; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } .main-nav { display: flex !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-deep); }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(27,42,56,.80) 0%, rgba(40,72,99,.55) 50%, rgba(40,72,99,.20) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(64px, 12vw, 130px) 0; max-width: 42rem; }
.hero h1 { color: var(--white); }
.hero__sub { font-size: 1.2rem; color: #e7edf3; margin-bottom: 1.8rem; }
.hero .eyebrow { color: var(--amber); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.badge svg { width: 16px; height: 16px; fill: var(--amber); }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4rem; }
.card__body p { color: var(--muted); font-size: .98rem; }
.card__link {
  margin-top: auto; font-weight: 700; color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__link::after { content: "\2192"; transition: transform .15s ease; }
.card:hover .card__link::after { transform: translateX(4px); }

/* ---------- Trust / features ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  flex: none; width: 46px; height: 46px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(40,72,99,.09);
}
.feature__icon svg { width: 24px; height: 24px; fill: var(--navy); }
.feature h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- CTA band (full-bleed photo) ---------- */
.band { position: relative; color: var(--white); text-align: center; }
.band__bg { position: absolute; inset: 0; overflow: hidden; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(27,42,56,.80); }
.band__inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 96px) 0; }
.band h2 { color: var(--white); }
.band p { color: #dbe3ea; max-width: 52ch; margin-inline: auto; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery button {
  padding: 0; border: 0; background: var(--bg-soft); cursor: pointer;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(15,23,31,.92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 16px; right: 20px; width: 48px; height: 48px;
  background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 1.8rem;
  border-radius: 50%; cursor: pointer; line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }

/* ---------- Services detail ---------- */
.svc { padding: clamp(40px,7vw,72px) 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.svc--reverse .svc__text { order: 2; }
@media (max-width: 820px) { .svc__grid { grid-template-columns: 1fr; } .svc--reverse .svc__text { order: 0; } }
.svc__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc__photos img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }
.svc__photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.tag {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(40,72,99,.09); color: var(--navy); padding: 5px 11px; border-radius: 999px;
}
.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .55rem; color: var(--ink); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  color: var(--amber-dark); font-weight: 800; background: rgba(232,163,61,.15);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px,5vw,54px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { flex: none; width: 40px; height: 40px; border-radius: 8px; background: rgba(40,72,99,.09); display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; fill: var(--navy); }
.info-list b { display: block; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.info-list a { font-weight: 600; }

.map-embed { border: 0; width: 100%; height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 8px; }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 34px); }
.form-note {
  background: #fff6e6; border: 1px solid #f0d49a; color: #7a5a12;
  padding: 12px 14px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 20px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.field .req { color: #b3341f; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); min-height: var(--tap);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(40,72,99,.15); }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1c7a3d; }
.form-status.err { color: #b3341f; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c6d1dc; padding: 56px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #c6d1dc; }
.site-footer a:hover { color: var(--amber); }
.footer-brand .brand__name { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: .7rem; display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--amber); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .85rem; color: #8ea0b2; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@media (max-width: 600px) { .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; } }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; }
.reduced-hidden { }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
