/* ============================================================
   Jordan Tatoute Insurance — styles.css
   Mobile-first (iPhone), clean, professional
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #2d3748;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Reserve space for sticky mobile CTA bar (64px bar + safe area) */
  padding-bottom: 72px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }


/* ── Design tokens ── */
:root {
  --navy:      #1a2e4a;
  --navy-dark: #122038;
  --charcoal:  #2d3748;
  --gray:      #4a5568;
  --gray-lt:   #718096;
  --light-bg:  #f7f8fa;
  --border:    #e2e8f0;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 2px 14px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 22px rgba(0, 0, 0, 0.12);
}


/* ── Typography ── */
h1, h2, h3 {
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
}

/* Mobile-first sizing — grows slightly on wider screens */
h1 { font-size: clamp(1.75rem, 7vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 4.5vw, 1.9rem); margin-bottom: 0.35rem; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }

p { color: var(--gray); font-size: 0.97rem; }

/* Small all-caps section label */
.section-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.45;
  margin-bottom: 6px;
}


/* ── Layout ── */
.container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Tighter on mobile, more room on desktop */
section {
  padding: 48px 0;
}

/* Prevent sticky nav from covering anchor targets */
section[id], header[id] {
  scroll-margin-top: 64px;
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
  border: none;
  text-align: center;
  min-height: 52px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-md); }

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


/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

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

.nav-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }

.nav-links .btn {
  padding: 9px 18px;
  font-size: 0.88rem;
  min-height: auto;
}

/* Hamburger */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Larger touch target */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 22px 20px;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  display: block;
  padding: 15px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}

.nav-drawer a:last-child { border-bottom: none; }

.nav-drawer .btn {
  margin-top: 14px;
  text-align: center;
  border-bottom: none;
  width: 100%;
}


/* ============================================================
   HERO — Compact, trustworthy, centered on mobile
   ============================================================ */
#home {
  padding: 36px 0 44px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Headshot circle — smaller on mobile to save vertical space */
.headshot-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow-md);
  background: var(--light-bg);
  flex-shrink: 0;
}

.headshot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shown when no headshot file is present */
.headshot-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--light-bg);
  color: var(--navy);
  opacity: 0.3;
}

.hero-content {
  max-width: 480px;
  width: 100%;
}

.hero-title {
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 0.97rem;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* CTA buttons — stacked full-width on mobile for large tap targets */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-ctas .btn {
  width: 100%;
  font-size: 1rem;
}

/* Credential badge — license displayed as an official credential */
.credential {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(26, 46, 74, 0.18);
  border-radius: 7px;
  padding: 9px 16px;
  background: rgba(26, 46, 74, 0.03);
}

.credential-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.credential-license {
  font-size: 0.72rem;
  color: var(--gray-lt);
  font-weight: 500;
  letter-spacing: 0.01em;
}


/* ============================================================
   SERVICES — Stacked single-column on mobile
   ============================================================ */
#services {
  background: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px 20px 20px;
  border: 1px solid var(--border);
  /* Left accent stripe instead of graphic icon box */
  border-left: 3px solid var(--navy);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.91rem;
  line-height: 1.58;
  color: var(--gray);
}


/* ============================================================
   ABOUT
   ============================================================ */
#about .about-body {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 620px;
  color: var(--gray);
}


/* ============================================================
   LICENSE / CREDENTIALS
   ============================================================ */
#license {
  background: var(--white);
}

/* Card container — structured like a document/record block */
.license-card {
  margin-top: 24px;
  max-width: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.license-intro {
  padding: 20px 20px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray);
}

/* License detail rows */
.license-details {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.license-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.license-item:last-child {
  border-bottom: none;
}

.license-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.45;
}

.license-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--charcoal);
}

.license-note {
  padding: 14px 20px 18px;
  font-size: 0.78rem;
  color: var(--gray-lt);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  background: var(--light-bg);
}

/* Two-column layout on wider screens */
@media (min-width: 480px) {
  .license-item {
    flex-direction: row;
    align-items: baseline;
    gap: 0;
  }

  .license-label {
    flex: 0 0 160px;
    padding-right: 12px;
    /* Vertically aligned with value */
    margin-top: 2px;
  }

  .license-value {
    flex: 1;
  }
}


/* ============================================================
   WHY IT MATTERS — Full navy accent block
   ============================================================ */
#why {
  background: var(--navy);
}

#why .section-tag { color: rgba(255, 255, 255, 0.4); }
#why h2           { color: var(--white); }

#why .why-body {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
}


/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--light-bg);
}

.contact-intro {
  margin: 8px 0 22px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 560px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group .optional {
  font-weight: 400;
  opacity: 0.5;
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.18s;
  outline: none;
  /* Minimum 52px for comfortable mobile touch */
  min-height: 52px;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}

/* Slightly shorter textarea on mobile — reduces page length */
.form-group textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
  font-size: 1rem;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  line-height: 1.5;
}
.form-status.success { color: #276749; display: block; }
.form-status.error   { color: #c53030; display: block; }


/* ============================================================
   BOOK A CALL
   ============================================================ */
#book {
  text-align: center;
}

.book-inner {
  max-width: 440px;
  margin: 0 auto;
}

.book-inner p {
  margin: 10px 0 24px;
  font-size: 0.97rem;
  line-height: 1.6;
}

.book-inner .btn {
  width: 100%;
  max-width: 280px;
  font-size: 1.05rem;
  padding: 17px 28px;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 44px 0 36px;
  text-align: center;
  font-size: 0.87rem;
  line-height: 1.9;
}

/* Name — most prominent element in footer */
.footer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1px;
  letter-spacing: -0.01em;
}

/* License line — styled to feel like a real credential */
.footer-license {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}
footer a:hover { color: var(--white); }

.footer-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 20px auto;
  max-width: 240px;
}

.footer-disclaimer {
  font-size: 0.74rem;
  opacity: 0.38;
  margin-top: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}


/* ============================================================
   STICKY MOBILE CTA BAR
   Fixed to the bottom — height 62px + safe area
   ============================================================ */
#mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  background: var(--white);
  border-top: 1.5px solid var(--border);
  /* Slightly stronger shadow so bar reads clearly above content */
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.1);
}

/* iPhone home indicator safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #mobile-cta {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

#mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  /* Consistent 62px tap height */
  height: 62px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Call Now — left half */
#mobile-cta .cta-call {
  color: var(--navy);
  border-right: 1.5px solid var(--border);
}

/* Book a Call — right half, navy fill */
#mobile-cta .cta-book {
  background: var(--navy);
  color: var(--white);
}

#mobile-cta svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ============================================================
   RESPONSIVE — Small tablet 600px+
   ============================================================ */
@media (min-width: 600px) {

  /* Hero CTAs side-by-side once there's room */
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
  .hero-ctas .btn { width: auto; }
}


/* ============================================================
   RESPONSIVE — Tablet 640px+
   ============================================================ */
@media (min-width: 640px) {

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .card { padding: 24px 20px; }

  .contact-form { padding: 30px 26px; }
}


/* ============================================================
   RESPONSIVE — Desktop 800px+
   ============================================================ */
@media (min-width: 800px) {

  /* Show desktop nav, hide hamburger entirely */
  .nav-links  { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }

  /* More room between sections */
  section { padding: 72px 0; }

  /* Hero: side-by-side layout */
  #home { text-align: left; padding: 64px 0 72px; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 52px;
  }

  /* Larger headshot on desktop */
  .headshot-wrap {
    width: 172px;
    height: 172px;
    flex-shrink: 0;
    border-width: 4px;
  }

  .hero-content    { flex: 1; }
  .hero-ctas       { flex-direction: row; justify-content: flex-start; }
  .hero-ctas .btn  { width: auto; }
  /* Credential badge left-aligned on desktop */
  .credential      { align-items: flex-start; }

  /* Hide mobile CTA bar on desktop */
  #mobile-cta { display: none; }
  body        { padding-bottom: 0; }
}
