/* ============================================================
   CODY BLACK FOR SHERIFF — CAMPAIGN WEBSITE STYLES
   Color Palette: Deep Navy, Rich Red, Warm Gold, Off-White
   ============================================================ */

:root {
  --navy:      #0d1f3c;
  --navy-dark: #08152a;
  --red:       #b81c1c;
  --red-dark:  #8f1414;
  --gold:      #c9a227;
  --gold-light:#e8bf4e;
  --white:     #ffffff;
  --off-white: #f5f2ed;
  --gray-light:#e8e4de;
  --gray:      #a09a91;
  --text:      #1a1a1a;
  --text-muted:#5a5550;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Open Sans', Arial, sans-serif;
  --radius:       8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.18);
  --transition:   0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title.center { text-align: center; }

.section-intro {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,28,28,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.full-width { width: 100%; text-align: center; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 18px 0;
}

#navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }

.btn-nav {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--red-dark) !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  background:
    url('images/Hero Image.png') center center / cover no-repeat;
  background-color: var(--navy-dark);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,21,42,0.85) 0%,
    rgba(8,21,42,0.35) 50%,
    rgba(8,21,42,0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 24px 60px;
  margin-left: calc((100vw - 1140px) / 2);
  padding-left: 24px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  color: var(--white);
  line-height: 1.0;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,162,39,0.18);
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 40px;
  margin-bottom: 36px;
}

.star { font-size: 0.75rem; }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  position: absolute;
  right: calc((100vw - 1140px) / 2 + 60px);
  bottom: 80px;
  z-index: 2;
}

.badge-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 30px rgba(201,162,39,0.4);
  border: 4px solid rgba(255,255,255,0.3);
}

.badge-years {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1;
}

.badge-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-dark);
  line-height: 1.3;
  margin-top: 4px;
}

/* ===== ABOUT ===== */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-img-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: var(--gray-light);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
}
.img-placeholder::after {
  content: 'Photo Coming Soon';
  font-size: 0.85rem;
  color: var(--gray);
}

.about-badge-wrap {
  position: absolute;
  bottom: -20px;
  right: -20px;
}

.about-badge {
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.about-text p strong { color: var(--text); }

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 2px solid var(--gray-light);
}

.stat { text-align: center; flex: 1; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ===== PLATFORM ===== */
.platform { background: var(--white); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.platform-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 36px 28px;
  border-top: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.platform-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-quote {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.5;
}

/* ===== EXPERIENCE ===== */
.experience { background: var(--navy); }

.experience .section-eyebrow { color: var(--gold-light); }
.experience .section-title { color: var(--white); }
.experience .section-intro { color: rgba(255,255,255,0.65); }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.exp-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 30px 24px;
  transition: background var(--transition), border-color var(--transition);
}

.exp-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,162,39,0.4);
}

.exp-icon { font-size: 1.8rem; margin-bottom: 14px; }

.exp-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.exp-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.exp-card p strong { color: rgba(255,255,255,0.85); }
.exp-card p em { font-style: italic; }

/* ===== QUOTE BANNER ===== */
.quote-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 70px 0;
}

.quote-banner blockquote {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--white);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.quote-banner cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 20px;
}

/* ===== CONTACT ===== */
.contact { background: var(--white); }

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-list {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list a {
  color: var(--navy);
  font-weight: 600;
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--red); }

.disclaimer {
  font-size: 0.78rem !important;
  color: var(--gray) !important;
  margin-top: 30px !important;
  font-style: italic;
}

.contact-form-wrap {
  background: var(--off-white);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,31,60,0.1);
}

.form-group textarea { resize: vertical; }

.form-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.form-msg.success { color: #2e7d32; }
.form-msg.error   { color: var(--red); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  padding: 48px 0 32px;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer .nav-name  { font-size: 1.5rem; }
.footer .nav-title { font-size: 0.72rem; }

.footer-tagline {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-disclaimer {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  margin-top: 8px;
}

/* ===== ENDORSEMENTS ===== */
.endorsements { background: var(--off-white); }

.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.endorsement-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  position: relative;
}

.endorsement-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
  opacity: 0.35;
}

.endorsement-preview {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 14px;
}

.endorsement-full {
  margin-bottom: 16px;
}

.endorsement-full p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.endorsement-full p:last-child { margin-bottom: 0; }

.endorsement-toggle {
  background: none;
  border: none;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.endorsement-toggle:hover { color: var(--red-dark); }

.toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}
.toggle-arrow.open { transform: rotate(180deg); }

.endorsement-author {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.author-title {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* ===== SCROLL REVEAL ===== -->
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-content { margin-left: 0; padding: 120px 24px 80px; }
  .hero-badge { right: 30px; }
}

@media (max-width: 900px) {
  .platform-grid,
  .exp-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-image-wrap { max-width: 380px; margin: 0 auto; }

  .hero-badge { display: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section { padding: 65px 0; }

  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--navy-dark);
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.3rem; }
  .hamburger { display: flex; z-index: 1001; }

  .platform-grid,
  .exp-grid,
  .gallery-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 28px 20px; }

  .about-stats { flex-wrap: wrap; }
  .stat { min-width: 80px; }

  .hero-btns { flex-direction: column; gap: 12px; }
  .btn { text-align: center; }
}
