@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

/* ================================
   THAMES — Maidenhead palette
   Cool blues, river greys, soft sky
   ================================ */
:root {
  --thames-deep: #0F3B5C;       /* deep river blue */
  --thames-mid: #1E5F8E;        /* mid Thames blue */
  --thames-bright: #2E8BC0;     /* bright water */
  --thames-pale: #B1D4E0;       /* pale sky-water */
  --thames-mist: #E8F1F5;       /* river mist */
  --slate: #2C3E50;             /* slate stone */
  --reed: #5A8A6B;              /* reed accent */
  --cream: #FBFAF6;             /* page background */
  --ink: #1A2530;               /* body text */
  --grey: #6B7785;              /* muted text */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--thames-mid); text-decoration: none; border-bottom: 1px solid rgba(46,139,192,0.3); transition: all .15s ease; }
a:hover { color: var(--thames-deep); border-bottom-color: var(--thames-deep); }

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  color: var(--thames-deep);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: 2em; letter-spacing: -0.01em; }
h2 { font-size: 1.55em; margin-top: 1.4em; }
h3 { font-size: 1.2em; color: var(--thames-mid); }
p { margin: 0 0 1.1em; }

/* ================================
   TOP BAR
   ================================ */
#top {
  background: var(--thames-deep);
  color: #fff;
  padding: 9px 0;
  font-size: 14px;
}
#top .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.appt-button a {
  color: #fff;
  background: var(--thames-bright);
  padding: 7px 16px;
  border-radius: 4px;
  border-bottom: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.appt-button a:hover { background: var(--reed); color: #fff; }

/* ================================
   HEADER
   ================================ */
header {
  background: #fff;
  padding: 26px 0;
  border-bottom: 1px solid rgba(15,59,92,0.08);
}
header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--thames-deep);
}
header h1 a { color: inherit; border-bottom: none; }
header .wave-accent {
  font-size: 18px;
  color: var(--thames-bright);
  letter-spacing: 4px;
  margin-left: 4px;
}
header .tagline {
  margin-left: auto;
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--slate);
  font-size: 15px;
}

/* ================================
   NAV
   ================================ */
nav#main {
  background: var(--thames-mid);
}
nav#main .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
nav#main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
nav#main li { display: inline-block; }
nav#main li a {
  display: block;
  color: #fff;
  padding: 14px 18px;
  border-bottom: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .15s ease;
}
nav#main li a:hover,
nav#main li.current a {
  background: var(--thames-deep);
  color: var(--thames-pale);
}

div#mobmenu { display: none; }

/* ================================
   HERO
   ================================ */
#slider {
  height: 420px;
  background-image: linear-gradient(135deg, rgba(15,59,92,0.55) 0%, rgba(46,139,192,0.25) 60%, transparent 100%), url('images/maidenhead-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  position: relative;
}
.hero-overlay {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-text {
  max-width: 540px;
  color: #fff;
}
.hero-text h2 {
  font-size: 42px;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.3);
  line-height: 1.15;
}
.hero-text p {
  font-size: 17px;
  margin: 0 0 22px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  line-height: 1.5;
}
.hero-text .cta {
  display: inline-block;
  background: var(--thames-bright);
  color: #fff;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: none;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(15,59,92,0.4);
  transition: all .2s ease;
}
.hero-text .cta:hover {
  background: var(--reed);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,59,92,0.5);
}

/* ================================
   CONTENT
   ================================ */
#content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 60px;
}

article {
  background: #fff;
  padding: 40px 44px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15,59,92,0.06), 0 0 0 1px rgba(15,59,92,0.04);
}

ul, ol { padding-left: 22px; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

/* ================================
   FEATURE STRIP
   ================================ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 30px 0;
  padding: 30px;
  background: var(--thames-mist);
  border-left: 4px solid var(--thames-bright);
  border-radius: 4px;
}
.feature-strip .item h3 {
  margin: 0 0 8px;
  font-size: 1.05em;
  color: var(--thames-deep);
}
.feature-strip .item p {
  margin: 0;
  font-size: 0.95em;
  color: var(--slate);
}

/* ================================
   CARD GRID
   ================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 28px 0;
}
.card {
  background: #fff;
  border: 1px solid rgba(15,59,92,0.1);
  border-top: 3px solid var(--thames-bright);
  border-radius: 4px;
  padding: 24px;
  transition: all .2s ease;
}
.card:hover {
  border-top-color: var(--thames-deep);
  box-shadow: 0 8px 22px rgba(15,59,92,0.1);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.15em;
}
.card p { margin: 0 0 12px; font-size: 0.96em; color: var(--slate); }
.card a.more {
  font-size: 0.9em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--thames-mid);
  border-bottom: none;
}
.card a.more:hover { color: var(--reed); }

/* ================================
   CTA BANNER
   ================================ */
.cta-banner {
  margin: 40px 0;
  padding: 36px 32px;
  background: linear-gradient(120deg, var(--thames-deep) 0%, var(--thames-mid) 100%);
  color: #fff;
  border-radius: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(255,255,255,0.03) 12px, rgba(255,255,255,0.03) 24px);
  pointer-events: none;
}
.cta-banner h3 {
  color: #fff;
  font-size: 1.4em;
  margin: 0 0 10px;
  position: relative;
}
.cta-banner p {
  margin: 0 0 18px;
  opacity: 0.92;
  position: relative;
}
.cta-banner a.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--thames-deep);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  letter-spacing: 0.03em;
  position: relative;
  transition: all .2s ease;
}
.cta-banner a.cta-btn:hover {
  background: var(--thames-pale);
  transform: translateY(-1px);
}

/* ================================
   QUOTE / RESEARCH BLOCK
   ================================ */
.research-block {
  background: var(--thames-mist);
  border-left: 4px solid var(--reed);
  padding: 22px 26px;
  margin: 26px 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.96em;
}
.research-block strong { color: var(--thames-deep); }

/* ================================
   FOOTER
   ================================ */
footer#site-footer {
  background: var(--thames-deep);
  color: var(--thames-pale);
  padding: 44px 0 20px;
  margin-top: 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 1.05em;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.footer-grid p, .footer-grid li {
  font-size: 14px;
  color: var(--thames-pale);
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #fff; border-bottom: 1px dotted rgba(255,255,255,0.4); }
.footer-grid a:hover { color: var(--thames-pale); border-bottom-color: var(--thames-pale); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 13px;
  text-align: center;
  color: rgba(177,212,224,0.7);
}

/* ================================
   RESPONSIVE — TABLET
   ================================ */
@media (max-width: 1024px) {
  .feature-strip { grid-template-columns: 1fr 1fr; }
}

/* ================================
   RESPONSIVE — MOBILE
   ================================ */
@media (max-width: 830px) {
  body { font-size: 16px; }
  header .inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  header .tagline { margin-left: 0; }

  div#slider { height: 320px; }
  .hero-text h2 { font-size: 30px; }
  .hero-text p { font-size: 15px; }

  div#mobmenu { display: block !important; padding: 12px 16px; }
  div#mobmenu a, div#mobmenu a:visited { color: var(--thames-pale); text-decoration: none; font-size: 15px; display: flex; align-items: center; gap: 8px; border-bottom: none; }

  nav#main ul { display: none !important; flex-direction: column; }
  nav#main ul.open { display: flex !important; }
  nav#main li { display: block !important; }
  nav#main li a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
  nav#main li:last-child a { border-bottom: none !important; }

  #content-wrap { padding: 30px 16px 50px; }
  article { padding: 28px 22px; }
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.3em; }

  .feature-strip { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-banner { padding: 28px 22px; }
}
