@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

:root{
  --bg: #eaf6f9;
  --paper: rgba(255,255,255,0.95);
  --ink: #031421; /* darker text for readability */
  --muted: #445a5f; /* slightly darker muted */
  --line: rgba(7,33,52,.08);
  --accent: #2b60bf; /* uniform deep royal blue */
  --accent-rgb: 43,96,191;
  --accent2: #d4af37; /* gold */
  --accent2-rgb: 212,175,55;
  --accent3: #b22222; /* red */
  --accent3-rgb: 178,34,34;
  --shadow: 0 18px 40px rgba(7,33,52,.10);
  --radius: 18px;
  --max: 1200px;
  --hero-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80');
}

/* Services page: larger sunset background and subtle dark overlay so cards sit on top */
body.services{
  --hero-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2400&q=80');
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.04)), var(--hero-image);
  background-size: cover;
  background-position: center;
  /* Solid fallback color while the image loads to avoid a black flash */
  background-color: #083047;
}

/* About page: sailboat on water background */
body.about{
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.04)), url('13fbb9ef-3aa9-4721-8598-43f8832492e5.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(6,54,77,.06), transparent 40%),
    radial-gradient(700px 380px at 92% 4%, rgba(111,199,194,.06), transparent 40%),
    linear-gradient(180deg, #fff 0%, var(--bg) 28%, #f3fbfd 100%);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; gap:14px;
  padding:16px 0;
}

.brand{
  display:flex; flex-direction:column; gap:2px;
  text-decoration:none;
  margin-right:auto;
}

.brand strong{
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing:.6px;
  font-size:1.06rem;
  color:var(--accent);
}

.brand span{
  font-size:.85rem;
  color:var(--muted);
}

.nav a.link{
  text-decoration:none;
  color:var(--ink);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
}

.hero{
  padding:64px 0 56px;
  border-bottom: 1px solid var(--line);
  /* subtler, less intrusive overlay on the hero image to restore natural photo look */
  background-image:
    linear-gradient(180deg, rgba(var(--accent-rgb),0.42), rgba(0,0,0,0.14)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 8px 22px rgba(0,0,0,.45);
}

/* Services-specific: hide header subtitle and remove any accidental hero panels/overlays */
body.services .brand span{ display:none !important; }
.hero .card, .hero .panel, .hero .overlay, .hero .container{ background: transparent !important; box-shadow: none !important; border: none !important; }

/* Aggressive cleanup for Services hero: remove any pseudo-elements, backdrop blurs, or accidental panels */
body.services .hero *{ background: transparent !important; box-shadow: none !important; border: none !important; color: inherit !important; }
body.services .hero::before, body.services .hero::after{ display:none !important; }
body.services .hero{ backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important; }

/* Make the big qualifications card more glass-like and prevent it from appearing as a solid white block */
body.services .big-card{ background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)) !important; border: 1px solid rgba(var(--accent-rgb),.04) !important; box-shadow: 0 8px 28px rgba(var(--accent-rgb),.06) !important; }

/* Ensure no other top-level containers create a white panel over the hero */
body.services .container{ background: transparent !important; }

/* Ensure hero headings contrast on image backgrounds */
.hero h1{ color: #fff !important; }

/* When a page wants a lighter hero, add .hero--light */
.hero.hero--light{ background-image: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(234,246,249,0.4)); color:var(--ink); text-shadow:none }

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:.92rem;
}

.kicker .dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--accent2);
  box-shadow: 0 0 0 5px rgba(201,160,107,.12);
}

h1{
  margin:18px 0 10px;
  font-size: clamp(2.1rem, 2.8vw, 3.2rem);
  line-height:1.05;
  letter-spacing:-.6px;
  font-family: 'Playfair Display', Georgia, serif;
  color:var(--accent);
}

.lede{
  max-width: 70ch;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight:400;
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 22px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(7,33,52,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,249,250,.9));
  text-decoration:none;
  font-weight:600;
}
.btn.primary{
  background: linear-gradient(180deg, var(--accent), #07304a);
  border-color: rgba(var(--accent2-rgb),.18);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(var(--accent-rgb),.18), 0 2px 0 rgba(var(--accent2-rgb),.06) inset;
}
.btn.primary:hover{filter:brightness(1.04)}

.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(var(--accent-rgb),0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card p:last-child{ margin-bottom: 0; }
.card p{ color: var(--ink); font-weight:400; }
.card:hover{ transform: translateY(-6px); box-shadow: 0 26px 60px rgba(var(--accent-rgb),.10); }
.card strong{color: var(--ink)}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(var(--accent2-rgb),.14);
  background: linear-gradient(180deg, rgba(var(--accent2-rgb),.06), rgba(255,255,255,.02));
  color: var(--accent);
  font-size:.95rem;
  font-weight:600;
}

.page-title h1{margin-top:0}
hr.sep{
  border:none;
  border-top:1px solid var(--line);
  margin: 18px 0 0;
}

.doc h2{
  margin: 26px 0 10px;
  font-size: 1.4rem;
}

.doc .price{
  color: var(--ink);
  font-weight: 700;
}

.doc p{
  margin: 12px 0;
  color: var(--ink);
  font-weight:400;
}

.doc .raw{ white-space: pre-wrap; }

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 820px){ .contact-grid{grid-template-columns: 1fr} }

.contact-item{
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  transition: box-shadow .2s ease;
}

.contact-item:hover{ box-shadow: 0 8px 20px rgba(var(--accent-rgb),.08); transform: none; }

.contact-item a{ text-decoration: none !important; }

.contact-item small{ display:block; color: var(--muted); margin-bottom: 6px; }

/* Bigger, bottom-of-page qualifications block (Services page) */
.big-card{
  padding: 28px;
  box-sizing: border-box;
  width: calc(100% + 44px);
  margin-left: -22px;
  margin-right: -22px;
  display:flex;
  gap:18px;
  align-items:flex-end;
  justify-content:space-between;
  position: relative;
}
.big-card h2{ font-size: clamp(1.6rem, 2.1vw, 2.1rem); margin-bottom: 8px; }
.big-card[data-size="large"]{ min-height: 0; }
.big-card[data-size="medium"]{ min-height: 0; }
.big-card[data-size="small"]{ min-height: 0; }
.big-card{ transition: padding .18s ease; margin-top: 0; }

/* Style direct child buttons inside the qualifications block */
.big-card > a.btn{
  flex: 1 1 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 18px 22px;
  border-radius: 999px;
  font-size: 1.02rem;
  text-decoration: none;
}

/* Ensure the big-card doesn't create extra empty vertical space: keep contents tight */
.big-card{ padding-top: 18px; padding-bottom: 18px; }

@media (max-width: 720px){
  .big-card{ flex-direction: column; align-items: stretch; }
  .big-card > a.btn{ width:100%; }
  .big-card > a.btn + a.btn{ margin-top:12px; }
}

/* Stronger, high-specificity rules to ensure ovular buttons display correctly */
.big-card > a.btn{
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 26px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb),.12) !important;
  transition: transform .16s ease, box-shadow .16s ease !important;
}

.big-card > a.btn.primary,
.big-card > a.btn:not(.primary){
  /* both buttons use the uniform deep-royal-blue */
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb),0.88)) !important;
  color: var(--paper) !important;
  border: 1px solid rgba(var(--accent2-rgb),.08) !important;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb),.12) !important;
}

.big-card > a.btn:active{ transform: translateY(1px) !important; }

/* Ensure links inside big-card lose underline from any other rules */
.big-card a{ text-decoration: none !important; }

/* Home page styling */
/* Home page background: try local image first, then remote as a fallback.
   Browsers will use the first image that successfully loads. */
body.home {
  /* Use the provided local image first (filename kept as-is), then fall back to remote image */
  background-image: linear-gradient(135deg, rgba(248, 250, 251, 0.85), rgba(240, 243, 248, 0.85)), url('chatgpt image dec 18, 2025, 08_33_19 pm.png'), url('https://images.unsplash.com/photo-1517581291840-3e260eca07d7?auto=format&fit=crop&w=1600&q=80');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

/* Smooth page transition: fade body out on navigation for a less 'glitchy' feel. */
html, body { transition: opacity 260ms ease; }
body.page-fade-out { opacity: 0; }

.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, rgba(43, 96, 191, 0.06) 0%, transparent 50%), linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(43, 96, 191, 0.02) 100%);
  border-bottom: 1px solid rgba(43, 96, 191, 0.1);
}

.home-hero .hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Make the home hero heading black for readability */
.home-hero .hero-text h1{ color: var(--ink) !important; text-shadow: none !important; }

.home-hero .tagline {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.home-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(43, 96, 191, 0.12);
  border-left: 4px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(43, 96, 191, 0.16);
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.cta-buttons {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  align-items: stretch !important;
}

.cta-buttons a.btn {
  flex: 1 !important;
  max-width: 280px !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 24px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(43, 96, 191, 0.12) !important;
}

.cta-buttons a.btn.primary {
  background: linear-gradient(180deg, var(--accent), #07304a) !important;
  color: var(--paper) !important;
  border: 1px solid rgba(var(--accent2-rgb), 0.16) !important;
}

.cta-buttons a.btn:not(.primary) {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,252,.96)) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.06) !important;
}

.cta-buttons a.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(43, 96, 191, 0.2) !important;
}

.cta-buttons a.btn:active {
  transform: translateY(0px) !important;
}

@media (max-width: 820px) {
  .home-hero .hero-text h1 {
    font-size: 40px;
  }
  
  .home-hero .lede {
    font-size: 16px;
  }

  .home-features {
    gap: 24px;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .cta-buttons {
    flex-wrap: wrap !important;
  }

  .cta-buttons a.btn {
    max-width: none !important;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 50vh;
    padding: 32px 18px;
  }

  .home-hero .hero-text h1 {
    font-size: 32px;
  }

  .home-hero .lede {
    font-size: 15px;
  }

  .home-features {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-card {
    padding: 20px 16px;
  }
}

/* decorative gold yacht watermark in the big-card (subtle) */
.big-card::after{
  content: '';
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 420px;
  height: 120px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160'><g fill='%23d4af37' fill-opacity='0.14'><path d='M2 110c60-20 120-40 240-36 80 3 160 36 356 36v14H2z'/><path d='M60 96c40-8 100-10 156-6 40 3 92 10 164 10 80 0 144-10 176-16 0 0-12-14-28-22-18-9-64-26-132-24-64 2-120 20-176 22C120 62 86 60 46 66 22 70 4 80 4 80s10 18 56 16' /></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .18;
  pointer-events:none;
}

/* Decorative footer wave */
footer{
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.02), rgba(255,255,255,.9));
  position:relative;
  overflow:visible;
}
footer::before{
  content: '';
  position:absolute;
  left:0; right:0; top:-28px;
  height:48px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'><path fill='%23042f42' fill-opacity='0.06' d='M0,40 C240,120 480,0 720,40 C960,80 1200,20 1440,40 L1440,120 L0,120 Z'></path></svg>") no-repeat center/cover;
  pointer-events:none;
}

/* Remove the thin white/top border and decorative pseudo-element on Services page */
body.services footer{ border-top: 0 !important; background: transparent !important; }
body.services footer::before{ display:none !important; }

/* Also remove the thin white/top border and decorative pseudo-element on Home and About pages */
body.home footer,
body.about footer{ border-top: 0 !important; background: transparent !important; }
body.home footer::before,
body.about footer::before{ display: none !important; }

/* Remove the hero bottom border on Services so the transition is seamless */
body.services .hero{ border-bottom: none !important; background-image: none !important; padding: 32px 0 28px !important; }

/* Services-specific: make footer links muted and inline on wider screens */
/* Force footer to stay on a single line (allow horizontal scroll on very small viewports). Keep link color muted and remove underlines. */
body.services footer{ background: transparent !important; }
body.services footer{ z-index: 20; }
body.services .big-card{ z-index: 1; }
body.services .footer-inner{ flex-wrap: nowrap !important; gap: 18px !important; align-items: center !important; overflow-x: auto !important; justify-content: flex-start !important; }
body.services .footer-inner > div{ display:inline-flex; align-items:center; gap:12px; white-space:nowrap; }
body.services .footer-inner .links{ margin-left: 12px; }
body.services .footer-inner a{ color: var(--accent) !important; text-decoration: none !important; }
body.services .footer-inner a:hover{ color: var(--accent) !important; text-decoration: underline !important; }

/* Apply Services footer layout globally to all pages */
footer{ z-index: 20; }
.footer-inner{ flex-wrap: nowrap !important; gap: 18px !important; align-items: center !important; overflow-x: auto !important; justify-content: flex-start !important; }
.footer-inner > div:first-child{ display:inline-flex; align-items:center; gap:12px; white-space:nowrap; }
.footer-inner > div:last-child{ display:inline-flex; align-items:center; gap:12px; white-space:nowrap; }

/* Style about page buttons like Services qualifications buttons */
#qualifications .cta-row,
.section .cta-row{ display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
#qualifications .cta-row a.btn,
.section .cta-row a.btn{ flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; padding: 18px 26px !important; border-radius: 999px !important; font-size: 1.02rem; text-decoration: none !important; box-shadow: 0 10px 24px rgba(var(--accent-rgb),.12) !important; transition: transform .16s ease, box-shadow .16s ease !important; }
#qualifications .cta-row a.btn:hover,
.section .cta-row a.btn:hover{ transform: translateY(-6px) scale(1.02) !important; box-shadow: 0 18px 40px rgba(var(--accent-rgb),.16) !important; }

@media (max-width: 720px){
  #qualifications .cta-row,
  .section .cta-row{ flex-direction: column; align-items: stretch; }
  #qualifications .cta-row a.btn,
  .section .cta-row a.btn{ width: 100%; }
}

/* Prevent the whole big-card from lifting (it inherits .card:hover). Only lift individual buttons on hover. */
.card.big-card:hover{ transform: none !important; box-shadow: 0 8px 28px rgba(var(--accent-rgb),.06) !important; }

/* Lift only the hovered button inside big-card */
.big-card > a.btn:hover{
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 18px 40px rgba(var(--accent-rgb),.16) !important;
}

/* Reverted: keep footer container transparent on Services page */
body.services .container.foot{ background: transparent !important; }

/* subtle accent for links in footer */
.footer-inner a{ color:var(--accent) !important; }
.footer-inner a:hover{ color:var(--accent) !important; text-decoration:underline !important; }

@media (max-width: 820px){
  .contact-grid{grid-template-columns: 1fr}
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: .92rem;
}

/* Google Form embed placeholder */
.form-embed{ margin-top: 14px; }
.google-form-embed{
  width:100%;
  height:520px;
  border: 1px solid rgba(var(--accent-rgb),.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb),.06);
}

/* Make all iframes responsive and fill their container */
iframe{ width: 100% !important; height: auto !important; min-height: 2342px; }

/* small responsive tweak */
@media (max-width: 820px){ .google-form-embed{ height:420px } }

/* Typography: keep everything sans */
h1, h2, h3, h4, h5, h6 { font-family: inherit; }

}

/* When a page wants a lighter hero, add .hero--light */
.hero.hero--light{ background-image: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(234,246,249,0.4)); color:var(--ink); text-shadow:none }
}

.lede{
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.05rem;
}
h1{
  margin:18px 0 10px;
  font-size: clamp(2.1rem, 2.8vw, 3.2rem);
  line-height:1.05;
  letter-spacing:-.6px;
  font-family: 'Playfair Display', Georgia, serif;
  color:var(--accent);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 22px;
}

/* Contact page: keep Text button on the left and Email on the right */
.cta-row.cta-contact{ justify-content: space-between; }
.cta-row.cta-contact a.btn{ flex: 1 1 45%; max-width: 48%; }
}

.btn.primary{
  background: var(--accent);
  border-color: rgba(11,74,90,.40);
  color: #fff;
  box-shadow: 0 10px 20px rgba(11,74,90,.20);
}

.btn.primary:hover{filter:brightness(1.03)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb),.06);
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb),0.88));
  color: var(--paper);
  text-decoration:none;
  font-weight:600;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb),.10);
}
.btn:hover{ filter:brightness(1.03); }
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,251,252,0.92));
  border: 1px solid rgba(var(--accent-rgb),0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 26px 60px rgba(var(--accent-rgb),.10); }
.card strong{color: var(--ink)}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(251,250,247,.8);
  color: var(--muted);
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(201,160,107,.14);
  background: linear-gradient(180deg, rgba(201,160,107,.06), rgba(255,255,255,.02));
  color: var(--accent);
  font-size:.95rem;
  font-weight:600;
}
.page-title h1{margin-top:0}
hr.sep{
  border:none;
  border-top:1px solid var(--line);
  margin: 18px 0 0;
}

.doc h2{
  margin: 26px 0 10px;
  font-size: 1.4rem;
.footer-inner{
  padding: 28px 0 40px;
  color: var(--muted);
  font-size:.92rem;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  position:relative;
}
}

.doc .raw{
  white-space: pre-wrap;
}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.big-card{ padding: 28px; background: linear-gradient(180deg, rgba(6,54,77,.02), rgba(255,255,255,.02)); }
.big-card h2{ font-size: clamp(1.6rem, 2.1vw, 2.1rem); margin-bottom: 8px; }
.big-card[data-size="large"]{ height: 360px; }
.big-card[data-size="medium"]{ height: 280px; }
.big-card[data-size="small"]{ height: 200px; }
.big-card{ transition: height .28s ease, padding .2s ease; }
.actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

/* Decorative footer wave */
footer{
  margin-top: 60px;
  border-top: none !important;
  background: transparent !important;
  position:relative;
  overflow:visible;
}
footer::before{
  content: '';
  position:absolute;
  left:0; right:0; top:-28px;
  height:48px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'><path fill='%23042f42' fill-opacity='0.06' d='M0,40 C240,120 480,0 720,40 C960,80 1200,20 1440,40 L1440,120 L0,120 Z'></path></svg>") no-repeat center/cover;
  pointer-events:none;
}

/* subtle accent for links in footer */
.footer-inner a{ color:var(--accent) !important; }
.footer-inner a:hover{ color:var(--accent) !important; text-decoration:underline !important; }
@media (max-width: 820px){
  .contact-grid{grid-template-columns: 1fr}
}

.contact-item{
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}

.contact-item small{
  display:block;
  color: var(--muted);
  margin-bottom: 6px;
}

footer{
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.55);
}

.footer-inner{
  padding: 22px 0;
  color: var(--muted);
  font-size:.92rem;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.footer-inner a{color: var(--accent) !important; text-decoration:none !important}
.footer-inner a:hover{color: var(--accent) !important; text-decoration:underline !important}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: .92rem;
}

/* Typography: keep everything sans */
h1, h2, h3, h4, h5, h6 { font-family: inherit; }

/* Bigger, bottom-of-page qualifications block (Services page) */
.big-card{
  padding: 28px;
  box-sizing: border-box;
  width: calc(100% + 44px);
  margin-left: -22px;
  margin-right: -22px;
  display:flex;
  gap:18px;
  align-items:flex-end;
  justify-content:space-between;
}
.big-card h2{ font-size: clamp(1.6rem, 2.1vw, 2.1rem); margin-bottom: 8px; }
.big-card[data-size="large"]{ height: 360px; }
.big-card[data-size="medium"]{ height: 280px; }
.big-card[data-size="small"]{ height: 200px; }
.big-card{ transition: height .28s ease, padding .2s ease; }
.actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

/* Style direct child buttons inside the qualifications block */
.big-card > a.btn{
  flex: 1 1 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 18px 22px;
  border-radius: 999px;
  font-size: 1.02rem;
  text-decoration: none;
}

@media (max-width: 720px){
  .big-card{ flex-direction: column; align-items: stretch; }
  .big-card > a.btn{ width:100%; }
  .big-card > a.btn + a.btn{ margin-top:12px; }
}

/* Stronger, high-specificity rules to ensure ovular buttons display correctly */
.big-card > a.btn{
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 26px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb),.12) !important;
  transition: transform .16s ease, box-shadow .16s ease !important;
}

.big-card > a.btn.primary{
  background: linear-gradient(180deg, var(--accent), #07304a) !important;
  color: var(--paper) !important;
  border: 1px solid rgba(var(--accent2-rgb),.16) !important;
}

.big-card > a.btn:not(.primary){
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,252,.96)) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(var(--accent-rgb),.06) !important;
}

.big-card > a.btn:active{ transform: translateY(1px) !important; }

/* Ensure links inside big-card lose underline from any other rules */
.big-card a{ text-decoration: none !important; }
