/* =========================================
   PROJECT ARBROATH — Main Stylesheet
   ========================================= */

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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-blue: #001060;
  --secondary-blue: #1a3a52;
  --accent-blue: #2c5f7f;
  --light-blue: #e8f1f7;
  --gold: #d4a574;
  --orange: #d87e3c;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text-dark: #1a1a1a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Georgia', serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

/* ---- HEADER & NAV ---- */
.site-header {
  background: var(--primary-blue);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-item { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary-blue);
  min-width: 220px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.dropdown a:hover { background: var(--primary-blue); }

.cta-nav {
  background: var(--gold);
  color: var(--primary-blue) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
}

/* ---- BUTTONS ---- */
.btn {
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--gold); color: var(--primary-blue); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--gold); color: var(--primary-blue); transform: translateY(-2px); }
.btn-blue { background: var(--accent-blue); color: var(--white); }
.btn-blue:hover { background: var(--secondary-blue); transform: translateY(-2px); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: 5rem 2rem;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 400;
}

.hero h1 strong {
  font-weight: 700;
  display: block;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  opacity: 0.92;
}

.election-callout {
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
  padding: 2rem;
  border-radius: 8px;
  border: 3px solid var(--gold);
}

.election-callout h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.election-callout p { margin-bottom: 1.5rem; line-height: 1.6; }

/* ---- SECTIONS ---- */
.section { padding: 4.5rem 2rem; }
.section--white { background: var(--white); }
.section--offwhite { background: var(--off-white); }
.section--dark { background: var(--primary-blue); color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 2.5rem; }

.section-header h2,
.section h2,
.content-body h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section--dark h2 { color: var(--gold); }

.section-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: center;
}

.section-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

/* ---- ICON CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.icon-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 4px solid var(--gold);
}

.icon-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.icon-card h3 {
  font-family: var(--font-display);
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* ---- TWO COL ---- */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--light-blue);
}

.feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 1.1rem;
}

.sidebar-callout {
  background: var(--light-blue);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--orange);
}

.sidebar-callout h3 {
  font-family: var(--font-display);
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* ---- BOOKLET ROW ---- */
.booklet-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}

.booklet-image img {
  max-width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border-radius: 4px;
}

.booklet-content h2 { margin-bottom: 1rem; }
.booklet-content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }

blockquote {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secondary-blue);
}

/* ---- PAGE HEADER ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.page-header p { font-size: 1.1rem; opacity: 0.85; }

/* ---- SUBMENU ---- */
.submenu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--light-blue);
  border-bottom: 2px solid var(--accent-blue);
  flex-wrap: wrap;
}

.submenu a {
  padding: 0.6rem 1.25rem;
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid var(--accent-blue);
  font-size: 0.9rem;
}

.submenu a:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.submenu a.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* ---- CONTENT BODY (for markdown pages) ---- */
.content-section {
  padding: 4rem 2rem;
  background: var(--white);
}

.content-body {
  max-width: 860px;
  margin: 0 auto;
}

.content-body h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.9rem;
}

.content-body h2:first-child { margin-top: 0; }

.content-body p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.content-body ul, .content-body ol {
  margin: 1.25rem 0 1.5rem 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-body li { margin-bottom: 0.5rem; }

.content-body strong { color: var(--primary-blue); }

/* ---- BOOKLET PURCHASE CARDS ---- */
.purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.purchase-card {
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--accent-blue);
  background: var(--light-blue);
}

.purchase-card.featured {
  background: var(--gold);
  border-color: var(--orange);
  border-width: 3px;
}

.purchase-card .label {
  display: inline-block;
  background: var(--accent-blue);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.purchase-card.featured .label {
  background: var(--primary-blue);
}

.purchase-card .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin: 0.75rem 0;
}

.purchase-card .desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-blue);
}

.purchase-card.featured .desc { color: var(--primary-blue); }

.bulk-callout {
  background: var(--primary-blue);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 3rem 0;
}

.bulk-callout h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.bulk-callout a { color: var(--gold); }

/* ---- ORDER GRID ---- */
.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.order-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid var(--gold);
  text-align: center;
}

.order-card--featured {
  border-left: none;
  border: 3px solid var(--primary-blue);
  background: var(--light-blue);
}

.order-card h3 {
  font-family: var(--font-display);
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.order-price {
  font-size: 1.8rem;
  color: var(--orange);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.order-card .btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* ---- DONATE FORM ---- */
.donate-wrapper {
  max-width: 580px;
  margin: 3rem auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.donate-wrapper h3 {
  font-family: var(--font-display);
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.form-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.preset-btn {
  padding: 0.75rem;
  border: 2px solid var(--accent-blue);
  border-radius: 4px;
  background: var(--white);
  color: var(--primary-blue);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.preset-btn:hover, .preset-btn.active {
  background: var(--accent-blue);
  color: var(--white);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  border: 2px solid var(--accent-blue);
  border-radius: 4px;
  font-family: var(--font-body);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

textarea.form-input { min-height: 100px; resize: vertical; }

.form-note {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: #666;
}

/* ---- VIDEO PLACEHOLDER ---- */
.video-placeholder {
  background: var(--primary-blue);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  color: var(--white);
  margin: 2rem 0;
}

.video-inner {
  background: var(--secondary-blue);
  padding: 4rem 2rem;
  border-radius: 8px;
  border: 2px dashed var(--gold);
}

.video-inner h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ---- CALCULATOR PAGE ---- */
.calculator-launch {
  text-align: center;
  padding: 3rem;
  background: var(--light-blue);
  border-radius: 12px;
}

.calculator-launch h3 {
  font-family: var(--font-display);
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 3.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.site-footer p { opacity: 0.85; line-height: 1.7; }

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--white); text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.site-footer a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .booklet-row { grid-template-columns: 1fr; }
  .booklet-image { text-align: center; }
  .booklet-image img { max-width: 280px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    padding: 1rem 2rem 2rem;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 0;
    display: none;
  }
  .nav-item:hover .dropdown { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .page-header h1 { font-size: 2rem; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
}
