/* ==========================================================================
   Tails Insurance Guide — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --navy:        #1b3a5c;
  --navy-light:  #244d7a;
  --coral:       #e8622a;
  --coral-light: #f07a45;
  --amber:       #f5a623;
  --cream:       #fdf8f3;
  --white:       #ffffff;
  --gray-100:    #f4f4f5;
  --gray-200:    #e4e4e7;
  --gray-400:    #a1a1aa;
  --gray-600:    #52525b;
  --gray-800:    #27272a;
  --text:        #1e1e2e;
  --text-light:  #4a4a6a;

  --font-sans:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.12);

  --max-width:   1100px;
  --content-width: 720px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--coral); }

ul, ol { padding-left: 1.5rem; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.content-width {
  max-width: var(--content-width);
  margin-inline: auto;
}

.section { padding-block: 3.5rem; }
.section--alt { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding-block: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}

.site-logo__tagline {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
}

.site-nav { display: flex; gap: 1.5rem; list-style: none; padding: 0; }

.site-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}

.site-nav a:hover { color: var(--amber); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2a5f8f 100%);
  color: var(--white);
  padding-block: 4.5rem 4rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: .75rem;
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  line-height: 1;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--coral);
  color: var(--white);
}
.btn--primary:hover { background: var(--coral-light); color: var(--white); }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--secondary:hover { border-color: var(--white); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
}
.btn--outline:hover { background: var(--coral); color: var(--white); }

.btn--coral {
  background: var(--coral);
  color: var(--white);
}
.btn--coral:hover { background: var(--coral-light); color: var(--white); }

/* --------------------------------------------------------------------------
   Intro / Trust Strip
   -------------------------------------------------------------------------- */
.intro { padding-block: 2.5rem; background: var(--cream); }
.intro p { font-size: 1.05rem; color: var(--text-light); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-block: 1.75rem;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--gray-600);
  font-weight: 500;
}

.trust-item__icon {
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   Top Picks Cards
   -------------------------------------------------------------------------- */
.section-header { margin-bottom: 2rem; }
.section-header h2 { margin-bottom: .4rem; }
.section-header p { color: var(--text-light); font-size: 1rem; }

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pick-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .2s, transform .2s;
}

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

.pick-card__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--navy);
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.pick-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.pick-card__best-for {
  font-size: .85rem;
  color: var(--text-light);
  font-style: italic;
}

.pick-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.pick-card__highlights li {
  font-size: .9rem;
  color: var(--text-light);
  padding-left: 1.1rem;
  position: relative;
}

.pick-card__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.pick-card__rating {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

.pick-card__cta {
  margin-top: auto;
}

.pick-card__cta .btn { width: 100%; text-align: center; }

/* --------------------------------------------------------------------------
   Why Trust Us
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.trust-block {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.trust-block__icon {
  font-size: 2rem;
  line-height: 1;
}

.trust-block h3 {
  font-size: 1rem;
  font-weight: 700;
}

.trust-block p {
  font-size: .9rem;
  color: var(--text-light);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  margin-block: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 620px;
}

thead {
  background: var(--navy);
  color: var(--white);
}

thead th {
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--gray-200); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--gray-100); }

tbody td {
  padding: .85rem 1rem;
  vertical-align: middle;
  color: var(--text);
}

tbody td:first-child { font-weight: 600; color: var(--navy); }

.rating-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
}

.rating-badge--top { background: var(--coral); }

.table-cta {
  display: inline-block;
  padding: .45rem 1rem;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .82rem;
  transition: background .15s;
  white-space: nowrap;
}

.table-cta:hover { background: var(--coral-light); color: var(--white); }

/* --------------------------------------------------------------------------
   Evaluation Criteria
   -------------------------------------------------------------------------- */
.criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.criteria-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.criteria-list li strong {
  display: block;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: .25rem;
}

.criteria-list li span {
  font-size: .85rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Cost Tables
   -------------------------------------------------------------------------- */
.cost-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-block: 1.5rem;
}

.cost-table-block h3 {
  margin-bottom: .75rem;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Factors List
   -------------------------------------------------------------------------- */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.factor-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.factor-card h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
}

.factor-card p {
  font-size: .88rem;
  color: var(--text-light);
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding-block: 3.5rem;
}

.cta-banner h2 { color: var(--white); margin-bottom: .6rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Internal Link Block
   -------------------------------------------------------------------------- */
.link-block {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--gray-200);
}

.link-block p { margin: 0; font-size: .95rem; color: var(--text-light); }

.internal-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Privacy / Legal Pages
   -------------------------------------------------------------------------- */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 3rem;
}

.legal-content h1 { margin-bottom: .4rem; }
.legal-content .updated { font-size: .85rem; color: var(--gray-400); margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .5rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--text-light); }
.legal-content ul { margin-bottom: 1rem; }
.legal-content a { color: var(--coral); }

/* --------------------------------------------------------------------------
   Disclosure
   -------------------------------------------------------------------------- */
.disclosure {
  background: var(--gray-100);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .85rem 1rem;
  font-size: .82rem;
  color: var(--gray-600);
  margin-block: 1.5rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.65);
  padding-block: 2.5rem;
  font-size: .85rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand { max-width: 340px; }
.footer-brand .site-logo__name { font-size: 1rem; }
.footer-brand p { margin-top: .5rem; font-size: .82rem; line-height: 1.6; }

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: .82rem;
  color: var(--gray-400);
  padding-block: .75rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span { margin-inline: .4rem; color: var(--gray-400); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .site-nav { gap: 1rem; }
  .hero { padding-block: 3rem 2.5rem; }
  .section { padding-block: 2.5rem; }
  .cta-banner { padding-block: 2.5rem; }
  .link-block { flex-direction: column; align-items: flex-start; }
  .picks-grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .trust-strip { gap: 1rem; }
}
