/* ============================================
   TOM PATERSON INSURANCE — COASTAL AUTHORITY
   Design: Cyan (#00BFFF) + Navy (#0A1628) + Orange (#FF6B35)
   Typography: Playfair Display + Inter
   ============================================ */

:root {
  --cyan: #00BFFF;
  --cyan-dark: #0099CC;
  --navy: #0A1628;
  --navy-light: #132240;
  --orange: #FF6B35;
  --orange-dark: #E55A2B;
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #EEF2F5;
  --gray-200: #D8E0E8;
  --gray-600: #4A5568;
  --gray-800: #1A202C;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-cyan { color: var(--cyan); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--white);
}
.btn-cyan:hover {
  background: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--cyan);
}
.btn-outline:hover {
  background: rgba(0, 191, 255, 0.1);
}

.btn-full {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  background: rgba(0, 191, 255, 0.12);
  margin-bottom: 1.5rem;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav-badge {
  height: 28px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  padding: 0.75rem 1.5rem !important;
  background: var(--orange) !important;
  color: var(--white) !important;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.6) 40%, rgba(0,191,255,0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo-side {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-large {
  width: 260px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0,191,255,0.5)) drop-shadow(0 0 80px rgba(0,191,255,0.2));
}

.hero-text-side {
  flex: 1;
}

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-logo-side {
    flex: none;
  }
  .hero-logo-large {
    width: 180px;
  }
  .hero-actions {
    justify-content: center;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-diagonal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom right, transparent 49.5%, white 50%);
}

/* ============ STATS ============ */
.stats {
  padding: 4rem 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

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

/* ============ COVERAGE ============ */
.coverage {
  padding: 5rem 0;
  background: var(--gray-50);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.coverage-card {
  background: white;
  padding: 1.5rem;
  border-bottom: 4px solid var(--cyan);
  transition: all 0.3s ease;
}
.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 191, 255, 0.12);
}

.coverage-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.coverage-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.coverage-card p {
  font-size: 0.72rem;
  color: var(--gray-600);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ CARRIERS MARQUEE ============ */
.carriers {
  padding: 4rem 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.marquee-wrapper {
  overflow: hidden;
  margin-top: 2rem;
}

.marquee-track {
  display: flex;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  width: 160px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.5rem;
}

.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}
.marquee-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ ABOUT ============ */
.about {
  padding: 5rem 0;
  background: var(--navy);
}

/* Team Photo Section */
.team-photo-section {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
}

.team-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}

.team-subhead {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.team-photo-wrapper {
  position: relative;
  display: inline-block;
  max-width: 900px;
  width: 100%;
}

.team-photo {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border: 3px solid rgba(0, 191, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.team-photo-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.team-elite-badge {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: white;
  margin-bottom: 1.5rem;
}

.elite-recognition {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-radius: 4px;
  width: fit-content;
}

.elite-inline-badge {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.elite-recognition span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-lead strong {
  color: white;
}

.about-content > p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .about-credentials {
    grid-template-columns: 1fr 1fr;
  }
}

.credential {
  padding: 1rem;
  background: rgba(0, 191, 255, 0.06);
  border: 1px solid rgba(0, 191, 255, 0.15);
}

.credential-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.credential-sub {
  font-size: 0.7rem;
  color: var(--cyan);
  margin-top: 0.25rem;
}

.about-phones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-phones a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.phone-icon {
  color: var(--cyan);
}

.about-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  display: inline-block;
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 3px solid var(--cyan);
  opacity: 0.3;
}
.photo-frame img {
  width: 320px;
  height: 400px;
  object-fit: cover;
  object-position: top;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-photo { order: -1; }
  .photo-frame img { width: 240px; height: 300px; }
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 5rem 0;
  background: white;
}

.rating-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.stars {
  color: #FFD700;
  font-size: 1.5rem;
}

.rating-score {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

.rating-count {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.5rem;
  background: var(--gray-50);
  border-top: 4px solid var(--cyan);
}

.testimonial-stars {
  color: #FFD700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============ QUOTE FORM ============ */
.quote-section {
  position: relative;
  padding: 5rem 0;
}

.quote-bg {
  position: absolute;
  inset: 0;
}
.quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.93) 0%, rgba(10,22,40,0.88) 100%);
}

.quote-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.quote-left h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  color: white;
  margin-bottom: 1.5rem;
}

.quote-left p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.quote-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-benefits li {
  color: white;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 191, 255, 0.15);
  color: var(--cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.quote-form {
  background: white;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.quote-form h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
}
.form-consent span {
  font-size: 0.72rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.form-success {
  background: white;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.form-success p {
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .quote-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============ REFERRAL ============ */
.referral {
  position: relative;
  padding: 5rem 0;
}

.referral-bg {
  position: absolute;
  inset: 0;
}
.referral-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.referral-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.9) 100%);
}

.referral-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.referral-inner h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}

.referral-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.referral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.referral-card {
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0, 191, 255, 0.2);
  text-align: center;
}

.referral-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.referral-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.referral-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.referral-cta {
  margin-top: 2.5rem;
}

@media (max-width: 600px) {
  .referral-grid { grid-template-columns: 1fr; }
}

/* ============ LOCATIONS ============ */
.locations {
  padding: 5rem 0;
  background: white;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.location-card {
  padding: 2rem;
  background: var(--gray-50);
  border-left: 5px solid;
}
.location-cyan { border-left-color: var(--cyan); }
.location-orange { border-left-color: var(--orange); }

.location-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.location-address {
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.location-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}
.location-phone:hover {
  color: var(--cyan-dark);
}

@media (max-width: 600px) {
  .locations-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  padding: 3rem 0;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0,191,255,0.3));
  margin-bottom: 0.75rem;
}

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

.footer-contact {
  text-align: center;
}
.footer-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.footer-contact a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-phones {
  text-align: right;
}
.footer-phones div {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}
.footer-phones a {
  color: white;
  text-decoration: none;
}

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

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

.footer-credit a {
  color: var(--cyan);
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-phones { text-align: center; }
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
