/* CF Accounting — site styles */
:root {
  --red: #d7172e;
  --red-dark: #b01226;
  --grey: #6d6e71;
  --ink: #2b2c30;
  --muted: #5d5f64;
  --line: #e7e3df;
  --sand: #faf7f3;
  --gold: #e9a23b;
  --navy: #1e2a3a;
  --radius: 14px;
  --serif: "Libre Baskerville", "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 92vw); margin: 0 auto; }
.narrow { width: min(780px, 92vw); margin: 0 auto; }
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--grey); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--grey); }
.brand svg { width: 46px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; color: var(--grey); white-space: nowrap; }
.brand-sub { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; color: #8a8b8e; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); font-size: .95rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--sand); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .lang { margin-left: 8px; border: 1px solid var(--line); font-size: .85rem; }
.nav .cta { background: var(--red); color: #fff; margin-left: 6px; }
.nav .cta:hover, .nav .cta[aria-current="page"] { background: var(--red-dark); color: #fff; }
.menu-toggle, .menu-btn { display: none; }
@media (max-width: 1000px) {
  .menu-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 4vw 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav a { padding: 12px; }
  .nav .lang, .nav .cta { margin: 6px 0 0; text-align: center; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* Hero */
.hero { position: relative; color: #fff; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("img/hero-sailing.jpg") center 62% / cover no-repeat; transform: scaleX(-1); }
.hero-bg::after { transform: scaleX(-1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,34,.78) 0%, rgba(20,24,34,.45) 55%, rgba(20,24,34,.1) 100%); }
.hero .wrap { position: relative; padding: 90px 0; }
.hero h1 { color: #fff; max-width: 15em; }
.hero p { font-size: 1.15rem; max-width: 34em; color: rgba(255,255,255,.9); }
.hero .eyebrow { color: var(--gold); }
@media (max-width: 700px) { .hero-bg { background-image: url("img/hero-sailing-960.jpg"); } .hero { min-height: 70vh; } }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }

/* Sections */
section { padding: 88px 0; }
.alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; } .tile { padding: 18px 14px; } .tile h3 { font-size: .92rem; } .brand-sub { display: none; } .brand svg { width: 38px; height: 33px; } section { padding: 64px 0; } }

.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.tile svg { width: 34px; height: 34px; color: var(--red); margin-bottom: 14px; }
.tile h3 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; margin: 0; }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .body { padding: 26px 26px 30px; }
.card .num { font-family: var(--serif); color: var(--red); font-size: .95rem; display: block; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.promise div { padding: 30px 28px 6px 0; }
.promise div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.promise strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--red); line-height: 1.1; margin-bottom: 10px; }
.promise p { color: var(--muted); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } .promise div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.band { position: relative; color: #fff; text-align: center; padding: 96px 0; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: url("img/hero-sailing-960.jpg") center 70% / cover; transform: scaleX(-1); }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(22,26,36,.66); }
.band .wrap { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.88); max-width: 36em; margin: 0 auto; }
.band .btns { justify-content: center; }

/* Page header */
.page-head { position: relative; padding: 84px 0 64px; color: #fff; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: url("img/hero-sailing-960.jpg") center 58% / cover; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,34,.85), rgba(20,24,34,.55)); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin: 0; }
.page-head .eyebrow { color: var(--gold); }
.page-head p { color: rgba(255,255,255,.88); margin: 14px 0 0; max-width: 38em; font-size: 1.08rem; }

.content { padding: 72px 0 88px; }
.content ul.check { list-style: none; padding: 0; margin: 0 0 1.4em; }
.content ul.check li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); }
.content ul.check li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.lead { font-size: 1.2rem; color: var(--muted); }

.approach-row { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.approach-row:last-child { border-bottom: 0; }
.approach-row img { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .approach-row { grid-template-columns: 1fr; gap: 20px; } }

/* Resources */
.resources h3 { font-size: 1.55rem; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.resources h3:first-of-type { border-top: 0; padding-top: 0; }
.resources ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.resources li { background: var(--sand); border-radius: 12px; padding: 18px 22px; color: var(--muted); font-size: .97rem; }
.resources li a { font-weight: 600; font-size: 1.02rem; display: inline-block; margin-bottom: 4px; }
.resources li a::after { content: " ↗"; font-size: .85em; }
.notice { margin-top: 48px; padding: 24px 26px; border-left: 3px solid var(--red); background: #fff7f7; border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--muted); }
.notice h3 { margin-top: 0; border: 0; padding: 0; font-size: 1.1rem; }

/* Form */
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } .form { padding: 22px; } }
.form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.form label span { color: var(--muted); font-weight: 400; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid #d9d4ce; border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid rgba(215,23,46,.25); border-color: var(--red); }
.form textarea { min-height: 160px; resize: vertical; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.form .hp { display: none; }
.form small { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 56px 0 34px; font-size: .92rem; }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.6); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

.creds { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: grid; gap: 0; }
.creds div { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.creds div:last-child { border-bottom: 0; }
.creds svg { width: 30px; height: 30px; color: var(--red); flex: none; }
.creds strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; display: block; }
.creds span { color: var(--muted); font-size: .92rem; }
