/* ================================================
   A&S Insurance Solutions — floridahomeandcondoinsurance.com
   Main Stylesheet
   ================================================ */

:root {
  --primary:        #0B5394;
  --primary-dark:   #083d6e;
  --primary-light:  #1a6ab5;
  --secondary:      #F4A261;
  --secondary-dark: #e0773a;
  --accent:         #00B4D8;
  --accent-light:   #90E0EF;
  --light-bg:       #E8F4FD;
  --sand:           #FDF6EC;
  --text:           #2D3748;
  --text-light:     #718096;
  --white:          #FFFFFF;
  --border:         #E2E8F0;
  --success:        #38A169;
  --shadow:         0 4px 6px rgba(0,0,0,.07);
  --shadow-lg:      0 10px 28px rgba(0,0,0,.13);
  --radius:         8px;
  --radius-lg:      16px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--primary-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: .875rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  transition: all .2s; text-align: center; text-decoration: none; line-height: 1.2;
}
.btn-primary  { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--secondary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(244,162,97,.45); }
.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--secondary-dark); }
.btn-white:hover { background: #fff5ee; color: var(--secondary-dark); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; display: block; }

/* ================================================
   TOP BAR
   ================================================ */
.top-bar { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: .45rem 0; font-size: .82rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; }
.top-bar a { color: var(--accent-light); font-weight: 600; }
.top-bar a:hover { color: var(--white); }

/* ================================================
   HEADER
   ================================================ */
.site-header { background: var(--white); padding: .9rem 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; font-weight: 900; flex-shrink: 0; }
.logo-name { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.logo-tagline { font-size: .65rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }

.main-nav ul { display: flex; gap: .2rem; align-items: center; }
.main-nav a { padding: .45rem .8rem; border-radius: var(--radius); font-weight: 600; font-size: .88rem; color: var(--text); transition: all .2s; }
.main-nav a:hover, .main-nav a.active { background: var(--light-bg); color: var(--primary); }
.nav-cta { background: var(--secondary) !important; color: var(--white) !important; }
.nav-cta:hover { background: var(--secondary-dark) !important; color: var(--white) !important; }

.header-phone { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.header-phone .label { font-size: .65rem; text-transform: uppercase; color: var(--text-light); letter-spacing: .05em; }
.header-phone a { font-size: 1.15rem; font-weight: 800; color: var(--primary); }

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

/* ================================================
   HERO
   ================================================ */
.hero { background: linear-gradient(135deg, #0B5394 0%, #1565c0 45%, #0097c7 100%); padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 70px; background: var(--white); clip-path: ellipse(60% 100% at 50% 100%); }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.hero-content { color: var(--white); padding-bottom: 2rem; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.18); color: var(--white); padding: .3rem 1rem; border-radius: 50px; font-size: .78rem; font-weight: 700; margin-bottom: 1.25rem; border: 1px solid rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .05em; }
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero h1 span { color: var(--secondary); }
.hero-description { font-size: 1.08rem; color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }

.hero-features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.75rem; }
.hero-feature { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.95); font-size: .93rem; }
.hero-feature::before { content: '✓'; width: 20px; height: 20px; background: var(--secondary); border-radius: 50%; font-size: .65rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.hero-phones { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.hero-phone-link { display: flex; align-items: center; gap: .75rem; background: rgba(255,255,255,.15); padding: .8rem 1.25rem; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.2); max-width: 280px; transition: background .2s; }
.hero-phone-link:hover { background: rgba(255,255,255,.22); }
.hero-phone-link .ph-icon { font-size: 1.5rem; }
.hero-phone-link .ph-label { font-size: .7rem; color: rgba(255,255,255,.7); display: block; }
.hero-phone-link .ph-num { font-size: 1.1rem; font-weight: 800; color: var(--white); display: block; }

/* Quote Card */
.quote-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.quote-card-title { font-size: 1.2rem; font-weight: 800; color: var(--primary-dark); margin-bottom: .2rem; }
.quote-card-subtitle { font-size: .82rem; color: var(--text-light); margin-bottom: 1.5rem; }

/* ================================================
   FORMS
   ================================================ */
.form-group { margin-bottom: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label { display: block; font-size: .75rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em; }
input, select, textarea {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .92rem; font-family: inherit;
  color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,83,148,.1); }
select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-disclaimer { font-size: .72rem; color: var(--text-light); margin-top: .7rem; text-align: center; line-height: 1.5; }
.form-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; padding: 1rem 1.25rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600; display: none; text-align: center; }

/* ================================================
   TRUST BAR
   ================================================ */
.trust-bar { background: var(--light-bg); padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 700; color: var(--primary-dark); }
.trust-item .icon { font-size: 1.2rem; }

/* ================================================
   SECTION HEADER
   ================================================ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-tag { display: inline-block; background: var(--light-bg); color: var(--primary); padding: .28rem .9rem; border-radius: 50px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.section-header h2 { margin-bottom: .9rem; }
.section-header p { color: var(--text-light); font-size: 1.02rem; margin: 0; }

/* ================================================
   SERVICES GRID
   ================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: all .3s; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card.featured { border-color: var(--primary); background: linear-gradient(135deg, #F0F7FF, #E8F4FD); }
.service-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.2rem; }
.service-card h3 { margin-bottom: .6rem; }
.service-card > p { font-size: .88rem; color: var(--text-light); margin-bottom: 1.2rem; }
.service-features { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.5rem; }
.service-feature { display: flex; align-items: flex-start; gap: .5rem; font-size: .84rem; }
.service-feature::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: .05em; }

/* ================================================
   WHY CHOOSE US
   ================================================ */
.why-section { background: linear-gradient(135deg, #0B5394, #083d6e); }
.why-section .section-header h2 { color: var(--white); }
.why-section .section-tag { background: rgba(255,255,255,.15); color: var(--accent-light); }
.why-section .section-header p { color: rgba(255,255,255,.78); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.why-card { text-align: center; padding: 2rem 1.25rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); transition: all .3s; }
.why-card:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.why-icon { font-size: 2.4rem; margin-bottom: .9rem; }
.why-card h4 { color: var(--white); margin-bottom: .45rem; font-size: 1rem; }
.why-card p { color: rgba(255,255,255,.72); font-size: .84rem; margin: 0; }

/* ================================================
   STATES
   ================================================ */
.states-section { background: var(--sand); }
.states-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.state-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem .75rem; text-align: center; transition: all .3s; }
.state-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.state-card.featured { border-color: var(--primary); background: var(--light-bg); }
.state-emoji { font-size: 2rem; margin-bottom: .4rem; }
.state-card h4 { font-size: .88rem; color: var(--primary-dark); margin-bottom: .2rem; }
.state-card p { font-size: .72rem; color: var(--text-light); margin: 0; }

/* ================================================
   STATS BAR
   ================================================ */
.stats-bar { background: var(--primary); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .number { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: .4rem; }
.stat-item .label { font-size: .82rem; color: rgba(255,255,255,.72); }

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card { background: var(--light-bg); border-radius: var(--radius-lg); padding: 2rem; }
.testimonial-stars { color: #F4A261; font-size: .95rem; margin-bottom: .9rem; }
.testimonial-text { font-style: italic; font-size: .93rem; margin-bottom: 1.4rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.author-info .name { font-weight: 700; font-size: .88rem; color: var(--primary-dark); }
.author-info .location { font-size: .78rem; color: var(--text-light); }

/* ================================================
   FAQ
   ================================================ */
.faq-section { background: var(--sand); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 920px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.faq-item h4 { color: var(--primary-dark); margin-bottom: .5rem; font-size: .97rem; }
.faq-item p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section { background: linear-gradient(135deg, #F4A261, #e0773a); padding: 4rem 0; }
.cta-inner { text-align: center; color: var(--white); }
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,.9); font-size: 1.08rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================
   PAGE HERO (interior)
   ================================================ */
.page-hero { background: linear-gradient(135deg, #0B5394, #1565c0); padding: 4rem 0; text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .82rem; margin-bottom: 1.2rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: var(--accent-light); }
.breadcrumb a:hover { color: var(--white); }

/* ================================================
   CONTENT LAYOUT (interior pages)
   ================================================ */
.content-section { padding: 5rem 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
.content-body h2 { margin-bottom: .9rem; }
.content-body h3 { margin: 2rem 0 .7rem; font-size: 1.2rem; }
.content-body p { line-height: 1.8; }
.check-list { display: flex; flex-direction: column; gap: .6rem; margin: 1.2rem 0; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; }
.check-list li::before { content: '✓'; width: 20px; height: 20px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 900; flex-shrink: 0; margin-top: .1em; }

.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.4rem; }
.sidebar-card { background: var(--light-bg); border-radius: var(--radius-lg); padding: 1.75rem; border: 1.5px solid var(--border); }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 1.2rem; }
.sidebar-card.cta-card { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border-color: transparent; text-align: center; }
.sidebar-card.cta-card h3 { color: var(--white); }
.sidebar-card.cta-card p { color: rgba(255,255,255,.85); font-size: .88rem; }
.sidebar-contact-list { display: flex; flex-direction: column; gap: .6rem; }
.sidebar-contact-item { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; }
.sidebar-contact-item a { color: var(--primary); font-weight: 600; }

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 48px; height: 48px; background: var(--light-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-detail .detail-text h4 { margin-bottom: .2rem; font-size: 1rem; }
.contact-detail .detail-text p { color: var(--text-light); font-size: .88rem; margin: 0; }
.contact-detail .detail-text a { color: var(--primary); font-weight: 600; }
.contact-form-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.contact-form-card h3 { margin-bottom: .2rem; }
.contact-form-card .subtitle { color: var(--text-light); font-size: .88rem; margin-bottom: 2rem; }

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-placeholder { background: linear-gradient(135deg, var(--light-bg), #c9e6fa); border-radius: var(--radius-lg); height: 400px; display: flex; align-items: center; justify-content: center; font-size: 5rem; border: 2px dashed var(--border); }
.license-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.license-badge { background: var(--light-bg); border: 1px solid var(--border); color: var(--primary-dark); padding: .4rem .9rem; border-radius: var(--radius); font-size: .8rem; font-weight: 700; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer { background: #08142a; color: rgba(255,255,255,.78); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo-icon { width: 46px; height: 46px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 900; }
.footer-logo .name { font-weight: 800; color: var(--white); font-size: .95rem; line-height: 1.2; }
.footer-logo .tagline { font-size: .62rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }
.footer-description { font-size: .84rem; line-height: 1.75; margin-bottom: 1.25rem; }
.footer-contact-list { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; }
.footer-contact-item a { color: var(--accent-light); }
.footer-contact-item a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .84rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-states { display: flex; flex-wrap: wrap; gap: .4rem; }
.state-badge { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); padding: .22rem .6rem; border-radius: 4px; font-size: .75rem; border: 1px solid rgba(255,255,255,.1); }
.footer-bottom { padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p, .footer-bottom a { font-size: .78rem; color: rgba(255,255,255,.38); margin: 0; }
.footer-bottom a:hover { color: var(--accent-light); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero-grid, .services-grid, .testimonials-grid, .faq-grid,
  .content-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: block; }
  .main-nav.open ul { flex-direction: column; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
}

@media (max-width: 480px) {
  .trust-items { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .why-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-buttons { flex-direction: column; align-items: center; }
}
