:root {
  --navy:#111C29;     /* solid background everywhere */
  --gold:#C59562;     /* your logo gold */
  --muted:#9FB0D0;
}

* { box-sizing:border-box }
html,body { margin:0; min-height:100%; height:auto }

.cta { cursor: pointer; }

/* Hide certain nav links on small screens (use class="nav-hide-sm" on links) */
@media (max-width: 900px) {
  .nav-hide-sm { display: none; }
}

body {
  background:var(--navy);
  color:#EAF0FF;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;
}

/* Links */
a { color:#ffffffd9; text-decoration:none }
a:hover { text-decoration:underline }

/* Header / Nav */
.site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:var(--navy);
  border-bottom:1px solid transparent;        /* thin line hidden initially */
  transition:border-color 200ms ease;
}
.site-header.show-brand {                     /* line shows on reveal */
  border-bottom-color:#223047;
}

.nav {
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:24px;
  padding:14px 20px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-weight:700;
}

/* Header brand: hidden until .show-brand */
.brand-crest,
.brand-wordmark {
  display:inline-block;
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  pointer-events:none;
}
.site-header.show-brand .brand-crest,
.site-header.show-brand .brand-wordmark {
  opacity:1;
  transform:none;
  visibility:visible;
  transition:opacity 220ms ease, transform 220ms ease, visibility 0s;
  pointer-events:auto;
}

/* Keep nav items on one line */
.nav a { white-space: nowrap; }

.spacer { flex:1 }

/* CTA: keep on one line; adjust size on small screens */
.cta {
  background:var(--gold);
  color:#111;
  padding:10px 16px;
  border-radius:999px;
  font-weight:800;
  border:0;
  white-space: nowrap;       /* never wrap */
}
.cta:hover {
  filter:saturate(1.05);
  transform:translateY(-1px);
}
@media (max-width: 900px) {
  .cta { padding:9px 14px; font-size:14px; }
}
@media (max-width: 420px) {
  .cta { padding:8px 12px; font-size:13px; }
  .spacer { flex:0 1 8px; }  /* let spacer shrink so CTA fits */
}

/* Brand wordmark scaling on small screens */
.brand-wordmark { height:15px; width:auto; }
@media (max-width: 900px) { .brand-wordmark { height:13px; } }
@media (max-width: 600px) { .brand-wordmark { height:12px; } }
@media (max-width: 420px) { .brand-wordmark { height:10px; } }

/* Hero */
.hero {
  background:var(--navy);
  padding:64px 20px 56px;
}
.hero-inner { max-width:960px; margin:0 auto; text-align:center; }
.logo-hero { margin:0 auto 18px; }
.logo-hero img { display:block; margin:0 auto; }

h1 {
  margin:10px 0 10px;
  font-size:clamp(28px,4.6vw,56px);
  line-height:1.08;
  color:#fff;
  font-weight:800;
  text-wrap:balance;
}
.hero p {
  color:#C9D3E6;
  max-width:760px;
  margin:0 auto;
  font-size:clamp(16px,1.4vw,18px);
}

/* Shared SVG sizing */
.brand-crest { height:60px; width:auto; }

/* Hero sizing */
.brand-circle { width:300px; height:auto; display:block; margin-inline:auto; }

/* Sections */
.section { padding:56px 20px; }
.container { max-width:1100px; margin:0 auto; }
.section h2 {
  margin:0 0 8px;
  font-size:clamp(22px,3.4vw,36px);
  line-height:1.15;
  color:#fff;
}
.eyebrow {
  color:#9FB0D0;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:12px;
  margin-bottom:8px;
}
.lede { color:#C9D3E6; margin:0 0 24px; max-width:750px; font-size:17px; }

/* Cards grid */
.grid { display:grid; gap:16px; }
.grid.cols-3 { grid-template-columns:repeat(1, minmax(0,1fr)); }
@media (min-width:700px) {
  .grid.cols-3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
}

/* === Card with top image (flush, clipped) === */
.card {
  background:rgba(255,255,255,0.03);
  border:1px solid #223047;
  border-radius:16px;
  padding:0;               /* no internal padding so image is flush */
  overflow:hidden;         /* clip image to rounded corners */
}
.card-img {
  display:block;
  width:100%;
  height:160px;            /* adjust to taste */
  object-fit:cover;        /* crop nicely */
  object-position:center;
}
@media (min-width:700px){ .card-img{ height:180px; } }
@media (min-width:1024px){ .card-img{ height:200px; } }

/* padded content area below the image */
.card-body { padding:18px; }

.card h3 { margin:0 0 8px; font-size:18px; color:#fff; }
.card p { margin:0 0 12px; color:#C9D3E6; }
.ul-clean { list-style:none; padding:0; margin:0 }
.ul-clean li { margin:8px 0; color:#C9D3E6 }
.badge {
  display:inline-block;
  border:1px solid #223047;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color:#EAF0FF;
}

/* Emphasized enrol card */
.enrol-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid #223047;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.enrol-card .eyebrow { margin-top: 4px; }
.enrol-card h2 { margin-top: 6px; }
.enrol-card .form { margin-top: 12px; }

/* Enrol form */
.form { display:grid; gap:12px; max-width:560px; }
.input, .select, .textarea {
  width:100%;
  background:#0f1724;
  color:#EAF0FF;
  border:1px solid #223047;
  border-radius:12px;
  padding:12px 14px;
  font:inherit;
}
.textarea { min-height:110px; resize:vertical; }
.actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

/* ======================= Footer ======================= */
footer { background:var(--navy); color:#9FB0D0; border-top:1px solid #223047; }

.footer-inner{
  /* first column auto width, others share remaining space */
  max-width:1100px;
  margin:0 auto;
  padding:28px 20px;
  display:grid;
  gap:24px;
  grid-template-columns:1fr;              /* mobile */
}
@media (min-width:840px){
  .footer-inner{
    grid-template-columns:auto 1fr 1fr 1fr;   /* first col fits its content */
    align-items:start;
  }
}

/* brand column centered */
.footer-inner > div:first-child{
  justify-self:center;
  text-align:center;
}
.footer-brand{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  margin-bottom:24px;     /* space between logo and socials */
}
.footer-brand .crest{ height:150px; width:auto; }

.footer-block h4{
  margin:0 0 10px;
  color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.06em;
}
.footer-block p, .footer-block li, .footer-block a{ color:#9FB0D0; font-size:14px }
.footer-list{ list-style:none; padding:0; margin:0 }
.footer-list li{ margin:6px 0 }
.footer-bottom{ border-top:1px solid #223047; padding:14px 20px; text-align:center; font-size:13px; color:#7f93b6; }

/* Socials (centered, white icons, no circles) */
.socials{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:10px;
}
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:none;
  padding:0;
  opacity:.6;
  transition:opacity .2s ease;
}
.icon-btn:hover{ opacity:.9; }
.icon-img,.icon{
  width:30px;
  height:30px;
  display:block;
  fill:#fff;
  color:#fff;
}

/* WhatsApp link styling */
.whatsapp-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#9FB0D0;
  font-size:14px;
  text-decoration:none;
  opacity:1;
  margin-top:10px;
}
.whatsapp-link:hover{
  opacity:.5;
  text-decoration:underline;
}


/* Keep CTA on one line, prevent odd Safari wraps */
.cta{
  display:inline-flex;
  align-items:center;
  line-height:1;
  white-space:nowrap;      /* never wrap */
}

/* Tighten header progressively on narrow widths */
@media (max-width: 700px){
  .nav{ gap:14px; padding:12px 16px; }
  .brand-wordmark{ height:12px; }      /* smaller wordmark */
  .cta{ padding:9px 14px; font-size:14px; }
}

/* Very small screens: hide wordmark, shrink crest & CTA a touch */
@media (max-width: 380px){
  .brand-wordmark{ display:none; }     /* free up space entirely */
  .brand-crest{ height:44px; }
  .nav{ gap:10px; padding:10px 12px; }
  .cta{ padding:8px 12px; font-size:13px; }
}

/* Ultra-narrow (old iPhones etc.) */
@media (max-width: 320px){
  .brand-crest{ height:40px; }
  .cta{ padding:7px 10px; font-size:12px; }
  .spacer{ flex:0 1 6px; }             /* let spacer shrink more */
}

/* Ensure right padding so CTA never touches the edge (incl. iPhone safe area) */
.nav {
  padding-right: calc(20px + env(safe-area-inset-right, 0px));
}

/* Narrow screens: tighten overall but keep a solid right gutter */
@media (max-width: 700px) {
  .nav {
    gap: 14px;
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
    padding-left: 16px;  /* keep left tidy */
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .nav {
    gap: 10px;
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-left: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .cta { margin-right: 2px; } /* tiny safety margin */
}

/* Ultra-narrow fallback */
@media (max-width: 320px) {
  .nav { padding-right: calc(14px + env(safe-area-inset-right, 0px)); }
}


/* --- Enrol card: switch to white panel --- */
.enrol-card{
  background:#fff;                 /* white card */
  color:#111C29;                   /* dark text inside */
  border:1px solid rgba(17,28,41,.15);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.enrol-card .eyebrow{ color:#6B7C95; }
.enrol-card h2{ color:#111C29; }
.enrol-card .lede{ color:#3a4a63; }

/* --- Flatten native <select> (Safari/macOS bevel etc.) --- */
.select{
  -webkit-appearance: none;
  appearance: none;
  background-color:#0f1724;        /* keep your dark input theme */
  color:#EAF0FF;
  border:1px solid #223047;
  border-radius:12px;
  padding:12px 42px 12px 14px;     /* room for custom chevron */
  box-shadow:none;                 /* remove inner highlights */
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='%239FB0D0' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px 16px;
}
/* hide old IE arrow if ever encountered */
.select::-ms-expand{ display:none; }

/* Focus outline for accessibility */
.select:focus{
  outline:2px solid var(--gold);
  outline-offset:2px;
}


/* Lighter text fields inside the white Enrol card */
.enrol-card .input,
.enrol-card .select,
.enrol-card .textarea {
  background: #f5f7fb;                 /* light field bg */
  color: #111C29;                      /* dark text */
  border: 1px solid #d1dbe8;           /* light border */
  caret-color: #111C29;
}

/* Placeholders */
.enrol-card .input::placeholder,
.enrol-card .textarea::placeholder {
  color: #7f93b6;
  opacity: 1;
}

/* Focus state */
.enrol-card .input:focus,
.enrol-card .select:focus,
.enrol-card .textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: #c3cfdf;
}

/* Flatten + recolor the select chevron for light bg */
.enrol-card .select {
  -webkit-appearance: none;
  appearance: none;
  padding: 12px 42px 12px 14px;        /* room for chevron */
  background-color: #f5f7fb;
  box-shadow: none;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='%23556987' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
.enrol-card .select::-ms-expand { display: none; } /* old IE */

/* Bigger Send Enquiry button (scoped to enrol card only) */
.enrol-card .cta{
  font-size: 16px;            /* up from ~14–16 */
  padding: 12px 24px;         /* chunkier */
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

@media (max-width: 520px){
  .enrol-card .cta{
    font-size: 17px;
    padding: 14px 22px;
    width: 100%;              /* optional: makes it prominent on mobile */
    justify-content: center;
    text-align: center;
  }
  .enrol-card .actions{ gap: 10px; }
}

/* Make enrol-card intro text the same width as the inputs */
.enrol-card { --enrol-field-width: 560px; }        /* keep in one place */
.enrol-card .lede { 
  max-width: var(--enrol-field-width);
  margin-left: 0;                                   /* align with fields */
}
