/* ==========================================================
   oakville.alihosny.ca — Campaign theme (teal + cream)
   ========================================================== */

:root {
  --teal-deep:    #0F4C5C;
  --teal-mid:     #1B6E80;
  --teal-soft:    #E0EEF2;
  --cream:        #F8F4EB;
  --cream-warm:   #F2EBDB;
  --ink:          #14262C;
  --ink-soft:     #4A5A60;
  --ink-mute:     #7A8489;
  --gold:         #C99B3A;
  --border:       rgba(20, 38, 44, 0.10);
  --shadow:       0 1px 3px rgba(20, 38, 44, 0.06);

  --font-serif:   'Source Serif 4', Georgia, serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --t-fast:       150ms;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --nav-height: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-mid); text-decoration: none; }
a:hover { color: var(--teal-deep); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* === NAV === */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 235, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-wrap.scrolled {
  background: rgba(248, 244, 235, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--nav-height);
}
.nav-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: flex; align-items: baseline; gap: 10px;
}
.nav-brand span.subtle { font-weight: 400; color: var(--teal-mid); font-size: 16px; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-deep); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}
.nav-links .btn-nav {
  background: var(--teal-deep); color: var(--cream);
  padding: 9px 18px; border-radius: 4px;
}
.nav-links .btn-nav:hover { background: var(--teal-mid); color: var(--cream); }

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-mid);
}
.hero-lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; }
.hero-photo {
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-warm);
  aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  font-size: 15px; font-weight: 600;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn-primary { background: var(--teal-deep); color: var(--cream); }
.btn-primary:hover { background: var(--teal-mid); color: var(--cream); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal-deep); }
.btn-ghost:hover { background: var(--teal-deep); color: var(--cream); }

/* === SECTIONS === */
section { padding: 80px 0; }
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0 0 20px;
  max-width: 720px;
}
.section-title em { font-style: italic; color: var(--teal-mid); font-weight: 400; }
.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 680px;
}

/* === PLATFORM POINTS === */
.platform-band {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 100px 0;
}
.platform-band .section-eyebrow { color: var(--gold); }
.platform-band .section-title { color: var(--cream); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}
.platform-point {
  border-top: 2px solid var(--gold);
  padding-top: 24px;
}
.platform-point-num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
}
.platform-point h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--cream);
}
.platform-point p {
  color: rgba(248, 244, 235, 0.85);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* === CTA BAND === */
.cta-band {
  background: var(--cream-warm);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.cta-band p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
footer {
  background: var(--ink);
  color: rgba(248, 244, 235, 0.75);
  padding: 60px 0 30px;
  font-size: 14px;
}
footer a { color: var(--cream); }
footer a:hover { color: var(--gold); }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}
.foot-col h4 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-bottom {
  border-top: 1px solid rgba(248, 244, 235, 0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: rgba(248, 244, 235, 0.55);
}

/* === GENERIC CONTENT === */
.page-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin: 0;
}
.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); }

/* === FORMS === */
.form-card {
  max-width: 580px;
  background: white;
  border-radius: 6px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--t-fast);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(27, 110, 128, 0.10);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 22px; }

/* === NOTICES === */
.notice {
  padding: 14px 18px;
  border-radius: 4px;
  border-left: 3px solid;
  margin-bottom: 24px;
  font-size: 15px;
}
.notice-success { background: #E8F5E9; border-color: #2E7D32; color: #1B5E20; }
.notice-error   { background: #FFEBEE; border-color: #C62828; color: #B71C1C; }
.notice-info    { background: var(--teal-soft); border-color: var(--teal-mid); color: var(--teal-deep); }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 50px 0 70px; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .hero-photo { aspect-ratio: 4/3; max-width: 480px; }
  .platform-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero h1 { font-size: 36px; }
  .section-title { font-size: 32px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn-nav) { display: none; }
  .container { padding: 0 20px; }
}

/* Back to top */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--teal-deep); color: var(--cream);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--t-fast) var(--ease);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-mid); }
