/* Accessable Risk — shared styles for the hub, licensees and about pages.
 * Same navy/teal design system as the real-estate page; one place to change it.
 */
:root {
  --navy:   #2E3D50;
  --navy2:  #1E2A3A;
  --ink:    #44546A;
  --teal:   #2B8C8C;
  --teal-dark: #1F6E6E;
  --teal-light: #E8F4F4;
  --teal-muted: #3DA8A8;
  --panel:  #F7F9FB;
  --panel2: #EEF1F5;
  --text:   #2F3742;
  --muted:  #5A6675;
  --light:  #D6DCE4;
  --white:  #FFFFFF;
  --red:    #C0392B;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', 'Calibri', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(44,60,80,.08);
  --shadow-lg: 0 12px 48px rgba(44,60,80,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body { font-family: var(--ff-body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }

h1,h2,h3,h4 { font-family: var(--ff-display); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--ff-body); }
p  { font-size: 1rem; color: var(--muted); }
a  { color: var(--teal-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-label {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { color: var(--navy); margin-bottom: 14px; }

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; transition: all .3s ease;
}
nav.scrolled, nav.nav-open {
  background: rgba(30,42,58,.97); backdrop-filter: blur(12px);
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { background: rgba(255,255,255,0.92); padding: 6px 14px; border-radius: 8px; font-family: var(--ff-display); font-size: 1.1rem; color: var(--navy); font-weight: 700; text-decoration: none; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.72);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]:not(.nav-cta) { box-shadow: 0 2px 0 var(--teal); }
.nav-cta {
  background: var(--teal); color: #fff !important; padding: 9px 22px;
  border-radius: 6px; font-weight: 600 !important; font-size: .85rem !important;
  transition: filter .2s, transform .2s !important;
}
.nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin: -10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-family: var(--ff-body);
  font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: all .22s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,140,140,.3); }
.btn-outline { background: transparent; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.25); }
.btn-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,42,58,.25); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--light); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ── HERO (shared) ─────────────────────────────────────── */
.hero { background: var(--navy2); position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 65% 45%, rgba(43,140,140,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(43,140,140,.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(43,140,140,.12); border: 1px solid rgba(43,140,140,.25);
  border-radius: 100px; padding: 8px 18px; margin-bottom: 28px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.hero-badge span { font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.8); letter-spacing: .5px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--teal-muted); }
.hero-sub { font-size: 1.08rem; color: rgba(255,255,255,.66); line-height: 1.75; max-width: 600px; margin-bottom: 38px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── CHECK LIST ────────────────────────────────────────── */
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); }
.checks li::before {
  content: ''; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(43,140,140,.12); border: 1.5px solid var(--teal);
  flex-shrink: 0; margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='7' viewBox='0 0 8 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3 5.5L7 1' stroke='%232B8C8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ── FREE GUIDE ────────────────────────────────────────── */
#guide { background: var(--white); }
.guide-card { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.guide-left { padding: 52px 48px; }
.guide-left h2 { color: var(--navy); margin-bottom: 14px; }
.guide-left > p { margin-bottom: 24px; line-height: 1.7; }
.guide-left .checks { margin-bottom: 32px; }
.guide-form { display: flex; flex-direction: column; gap: 12px; }
.guide-form input {
  padding: 13px 16px; border: 1.5px solid var(--light); border-radius: 8px;
  font-family: var(--ff-body); font-size: .95rem; color: var(--text);
  background: var(--white); transition: border-color .2s; outline: none;
}
.guide-form input:focus { border-color: var(--teal); }
.guide-form button {
  padding: 13px; background: var(--navy); color: #fff; border: none;
  border-radius: 8px; font-family: var(--ff-body); font-size: .95rem;
  font-weight: 600; cursor: pointer; transition: all .22s;
}
.guide-form button:hover { background: var(--navy2); transform: translateY(-1px); }
.guide-right { background: var(--navy2); display: flex; align-items: center; justify-content: center; padding: 52px 40px; position: relative; overflow: hidden; }
.guide-right::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 70%, rgba(43,140,140,.2), transparent 60%); }
.guide-mock { position: relative; z-index: 1; width: 100%; max-width: 300px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 28px; }
.guide-mock-title { font-family: var(--ff-display); font-size: 1.05rem; color: #fff; margin-bottom: 18px; line-height: 1.3; }
.guide-mock-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); margin-bottom: 9px; }
.guide-mock-line.short { width: 65%; }
.guide-mock-line.medium { width: 82%; }
.guide-mock-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(43,140,140,.18); border: 1px solid rgba(43,140,140,.3); border-radius: 4px; padding: 5px 10px; margin-top: 14px; }
.guide-mock-chip span { font-size: .72rem; font-weight: 600; color: var(--teal-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ── CONTACT FORM ──────────────────────────────────────── */
#contact { background: var(--navy2); padding: 80px 0; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-detail-item { display: flex; flex-direction: column; gap: 2px; }
.contact-detail-label { font-size: .72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact-detail-item a { color: var(--teal-muted); text-decoration: none; font-size: .92rem; }
.contact-detail-item span:not(.contact-detail-label) { color: rgba(255,255,255,.62); font-size: .92rem; }
.contact-right { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.65); letter-spacing: .3px; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 12px 14px; border: 1.5px solid rgba(255,255,255,.14); border-radius: 8px;
  font-family: var(--ff-body); font-size: .92rem; color: #fff;
  background: rgba(255,255,255,.06); transition: border-color .2s; outline: none;
  -webkit-appearance: none; appearance: none; width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form select { color: rgba(255,255,255,.4); cursor: pointer; }
.contact-form select.selected { color: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--teal); background: rgba(255,255,255,.08); }
.contact-form select option { background: var(--navy2); color: #fff; }

/* ── FEEDBACK / STATES ─────────────────────────────────── */
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal-muted); outline-offset: 3px;
}
.form-note { font-size: .75rem; line-height: 1.55; margin-top: 10px; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.contact-right .form-note { color: rgba(255,255,255,.65); text-align: center; }
.guide-left .form-note { color: var(--ink); }
.form-error { padding: 12px 14px; border-radius: 8px; font-size: .85rem; line-height: 1.55; background: rgba(192,57,43,.14); border: 1px solid rgba(192,57,43,.5); color: #fff; }
.guide-form .form-error { background: rgba(192,57,43,.08); color: #7a1f16; }
.form-error a { color: inherit; font-weight: 600; }
.form-success:focus { outline: none; }
.success-tick { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px; background: rgba(43,140,140,.18); border: 1.5px solid var(--teal); color: var(--teal-muted); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.form-success h3 { font-family: var(--ff-display); color: #fff; font-size: 1.3rem; line-height: 1.3; margin-bottom: 10px; }
.form-success p { color: rgba(255,255,255,.75); font-size: .92rem; line-height: 1.7; }
.form-success p strong { color: #fff; font-weight: 600; }
.next-label { font-size: .72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 22px 0 10px; }
.next-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.next-steps a { display: block; padding: 13px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; transition: border-color .2s, background .2s; }
.next-steps a:hover { border-color: var(--teal); background: rgba(43,140,140,.12); }
.next-steps a span { display: block; font-size: .78rem; font-weight: 400; color: rgba(255,255,255,.6); margin-top: 2px; }
.booking-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.booking-block p { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: 12px; }

/* ── FOOTER ────────────────────────────────────────────── */
footer { background: var(--navy); padding: 32px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: var(--ff-display); font-size: 1rem; color: rgba(255,255,255,.7); font-weight: 600; }
.footer-logo span { color: var(--teal); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-right { text-align: right; font-size: .78rem; color: rgba(255,255,255,.5); }

/* ── REVEAL ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .guide-card, .contact-card { grid-template-columns: 1fr; }
  .guide-right { display: none; }
  .guide-left { padding: 40px 28px; }
  .footer-right { text-align: left; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #1E2A3A; padding: 8px 24px 22px; box-shadow: 0 18px 30px rgba(0,0,0,.28);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-open .nav-links a { font-size: 1rem; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: none !important; }
  .nav-open .nav-links .nav-cta { margin-top: 16px; text-align: center; justify-content: center; border: 0; padding: 13px 22px; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-right { padding: 24px 20px; }
}
