/* ============================================
   PASSPORTREADY — STYLES.CSS
   Clean, trustworthy, government-adjacent aesthetic
   Font: Fraunces (display) + DM Sans (body)
   Color: Deep navy + warm amber accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --navy:      #0f2340;
  --navy-mid:  #1a3557;
  --navy-soft: #e8eef6;
  --amber:     #d4860a;
  --amber-lt:  #f5a623;
  --amber-bg:  #fef8ee;
  --green:     #1a7a4a;
  --green-bg:  #edf7f2;
  --red:       #b91c1c;
  --red-bg:    #fef2f2;
  --text:      #1c2b3a;
  --text-mid:  #4a5e72;
  --text-light:#7a90a4;
  --border:    #d4dce6;
  --bg:        #f7f9fc;
  --white:     #ffffff;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(15,35,64,0.08);
  --shadow-md: 0 4px 24px rgba(15,35,64,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

h1,h2,h3,h4,h5 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; border-bottom: 2px solid var(--amber); padding-bottom: 0.5rem; margin-bottom: 1.5rem; display: inline-block; }
h4 { font-size: 1.05rem; font-weight: 600; }

a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--amber); }

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
}

.logo img { width: 36px; height: 36px; border-radius: 6px; }

.logo-text { color: var(--white); }
.logo-text strong { color: var(--amber-lt); }

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,134,10,0.2);
  color: var(--amber-lt);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(212,134,10,0.4);
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero-subtext {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  width: 100%;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-lt); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,134,10,0.35); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); color: var(--white); }

/* ---- QUICK FACTS ---- */
.quick-facts {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  gap: 4px;
}
.fact:last-child { border-right: none; }

.fact-icon { font-size: 1.4rem; }
.fact-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.fact-value { font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* ---- COUNTY SECTIONS ---- */
.county-section { padding: 72px 0; }
.alt-bg { background: var(--white); }

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-mid); max-width: 640px; font-size: 0.97rem; }

.county-block {
  margin-bottom: 56px;
}
.county-block:last-child { margin-bottom: 0; }

/* ---- OFFICE GRID ---- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.ohio-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---- OFFICE CARD ---- */
.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.office-card:hover { box-shadow: var(--shadow-md); }

.office-card.featured {
  border-color: var(--amber);
  border-width: 2px;
  background: linear-gradient(to bottom, var(--amber-bg), var(--white));
}

.office-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.office-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.office-type.library { background: #e8f0fe; color: #1a4fa8; }
.office-type.usps    { background: #e8f4e8; color: #1a5c2e; }
.office-type.city    { background: #f0e8fe; color: #6b21a8; }
.office-type.govt    { background: #fef0e8; color: #9a3412; }

.badge-photo {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 4px;
}

.badge-walkin {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 4px;
}

.no-photo {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: #f1f5f9;
  color: var(--text-light);
  border-radius: 4px;
}

.office-card h4 {
  font-size: 1rem;
  line-height: 1.3;
}

.office-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  font-size: 0.88rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.detail-label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.8rem;
  padding-top: 1px;
}

.detail-value { color: var(--text); }
.detail-value a { color: var(--navy-mid); font-weight: 600; }
.detail-value a:hover { color: var(--amber); }
.detail-value em { font-size: 0.82rem; color: var(--text-light); }

.office-note {
  font-size: 0.83rem;
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  padding: 10px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-mid);
  line-height: 1.5;
}

.office-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: auto;
}
.office-link:hover { color: var(--navy); }

/* ---- OHIO DISTINCTION BOX ---- */
.ohio-distinction-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.ohio-distinction-box h4 {
  color: var(--amber-lt);
  margin-bottom: 10px;
  font-size: 1rem;
}

.ohio-distinction-box p {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---- OHIO FEES TABLE ---- */
.ohio-fees-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
  box-shadow: var(--shadow);
}

.ohio-fees-box h4 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fees-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
}

.fees-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: var(--bg); }

.table-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* ---- FEES SECTION ---- */
.fees-section {
  background: var(--navy);
  padding: 72px 0;
}

.fees-section .section-header h2 { color: var(--white); }
.fees-section .section-tag { color: var(--amber-lt); }
.fees-section .section-header p { color: rgba(255,255,255,0.7); }

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.fee-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--white);
}

.fee-card h4 {
  color: var(--amber-lt);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.fee-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
}
.fee-line:last-of-type { border-bottom: none; }
.fee-line span { color: rgba(255,255,255,0.7); }
.fee-line strong { color: var(--white); font-weight: 700; font-size: 1rem; }

.fee-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-style: italic;
}

.payment-rules-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,134,10,0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.payment-rules-box h4 {
  color: var(--amber-lt);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.payment-rules-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-rules-box li {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.payment-rules-box li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* ---- CHECKLIST ---- */
.checklist-section { padding: 72px 0; background: var(--white); }

.checklist-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.checklist-col h4 {
  color: var(--navy);
  margin-bottom: 16px;
  margin-top: 24px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.checklist-col h4:first-child { margin-top: 0; }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  font-size: 0.9rem;
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- CALCULATOR ---- */
.calculator-section { padding: 72px 0; }

.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 680px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.calc-field input,
.calc-field select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--navy-mid);
}

.calc-result {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}
.calc-result.hidden { display: none; }

.result-ok, .result-warning, .result-urgent, .calc-error {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
}

.result-ok { background: var(--green-bg); border-left: 4px solid var(--green); }
.result-ok h4 { color: var(--green); margin-bottom: 8px; }

.result-warning { background: var(--amber-bg); border-left: 4px solid var(--amber); }
.result-warning h4 { color: var(--amber); margin-bottom: 8px; }

.result-urgent { background: var(--red-bg); border-left: 4px solid var(--red); }
.result-urgent h4 { color: var(--red); margin-bottom: 8px; }

.calc-error { background: var(--red-bg); color: var(--red); border-left: 4px solid var(--red); }

/* ---- TIPS ---- */
.tips-section { padding: 72px 0; background: var(--white); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tip-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-icon { font-size: 1.6rem; }
.tip-card h4 { font-size: 0.95rem; }
.tip-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; }

/* ---- COUNTY LINKS ---- */
.county-links-section { padding: 64px 0; background: var(--navy-soft); }

.county-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.county-link-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  position: relative;
}

.county-link-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.county-state {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.county-link-card h4 { font-size: 1rem; color: var(--navy); }
.county-link-card p { font-size: 0.82rem; color: var(--text-mid); }

.arrow {
  font-size: 1.1rem;
  color: var(--amber);
  margin-top: auto;
  font-weight: 700;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  padding: 56px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .logo-text strong { color: var(--amber-lt); }

.footer-brand p {
  font-size: 0.83rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-lt);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: none; }
  .checklist-columns { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: none; }
  .office-grid { grid-template-columns: 1fr; }
  .fees-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .county-links-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .detail-row { grid-template-columns: 90px 1fr; }
  .calc-card { padding: 20px; }
}
