/*
Theme Name: Jacaranda Insurance
Theme URI: https://jacarandainsurance.com/
Description: Custom classic theme recreating the Jacaranda Insurance Agency website (migrated from Joomla / JA Company template).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Jacaranda Insurance Agency, Inc.
Text Domain: jacaranda
*/

:root {
  --purple: #8865ac;
  --purple-light: #9576b5;
  --purple-dark: #6d4f8c;
  --dark: #2d2d2d;
  --dark-2: #3a3a3a;
  --text: #666;
  --heading: #222;
  --border: #e5e5e5;
  --bg-soft: #f7f7f7;
  --container: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 40px; } h2 { font-size: 32px; } h3 { font-size: 26px; }
h4 { font-size: 20px; } h5 { font-size: 17px; font-weight: 600; } h6 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
p { margin: 0 0 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn, .wp-block-button__link, input[type=submit], .wpcf7-submit, button.btn {
  display: inline-block;
  background: linear-gradient(var(--purple-light), var(--purple));
  color: #fff !important;
  border: 0;
  border-radius: 2px;
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover, input[type=submit]:hover, .wpcf7-submit:hover { background: var(--purple-dark); }
.btn-lg { padding: 16px 28px; font-size: 12px; }
.btn-outline { background: transparent; border: 2px solid #fff; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--border); background: #fafafa; font-size: 12px; color: #999; padding: 8px 0; }

/* Header */
.site-header { padding: 30px 0 70px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-logo img { max-height: 70px; width: auto; display: block; }
.head-info { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.head-info label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
.head-info a { color: #444; text-decoration: underline; }

/* Main nav */
.main-nav-wrap { position: relative; z-index: 20; margin-top: -40px; }
.main-nav { background: linear-gradient(var(--dark-2), var(--dark)); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; min-height: 64px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { position: relative; }
.main-nav li a { display: block; color: #ddd; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 24px 16px; border-right: 1px solid rgba(255,255,255,.08); }
.main-nav li:last-child > a { border-right: 0; }
.main-nav li.current-menu-item > a, .main-nav li > a:hover { color: #fff; box-shadow: inset 0 -3px 0 var(--purple); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--dark); min-width: 220px; flex-direction: column; }
.main-nav li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 12px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid #666; color: #fff; padding: 8px 12px; cursor: pointer; }

/* Hero slider */
.hero { position: relative; margin-top: -32px; overflow: hidden; background: #333; }
.hero-slide { position: relative; min-height: 640px; display: none; align-items: center; background-size: cover; background-position: center; }
.hero-slide.active { display: flex; animation: fade .7s ease; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(60,50,90,.75) 0%, rgba(60,50,90,.35) 45%, rgba(0,0,0,0) 70%); }
.hero-caption { position: relative; max-width: 460px; color: #fff; padding: 60px 0 160px; }
.hero-caption .kicker { color: var(--purple-light); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.hero-caption h1, .hero-caption h2 { color: #fff; font-size: 38px; margin: 14px 0 22px; }
.hero-caption p { color: #eee; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.hero-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
.hero-tabs .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-tabs button { text-align: left; background: rgba(255,255,255,.92); border: 0; padding: 18px; font: inherit; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #333; cursor: pointer; min-height: 80px; }
.hero-tabs button.active { color: var(--purple); background: #fff; }
.hero-arrow { position: absolute; top: 45%; z-index: 6; background: rgba(0,0,0,.35); color: #fff; border: 0; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }
.hero-arrow.prev { left: 10px; } .hero-arrow.next { right: 10px; }

/* Sections */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-title .kicker, .kicker { display: block; color: var(--purple); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.big-title { font-size: 34px; }
.big-title strong { color: var(--purple); font-weight: 400; }

/* Feature tabs */
.feature-tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; flex-wrap: wrap; }
.feature-tabs-nav button { background: none; border: 0; padding: 14px 22px; font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #888; cursor: pointer; border-bottom: 3px solid transparent; }
.feature-tabs-nav button.active { color: var(--heading); border-color: var(--purple); }
.feature-tab { display: none; }
.feature-tab.active { display: grid; }

/* Mission */
.mission { position: relative; color: #fff; background-size: cover; background-position: center; text-align: center; padding: 110px 0; }
.mission::before { content: ""; position: absolute; inset: 0; background: rgba(60,45,85,.78); }
.mission .container { position: relative; max-width: 860px; }
.mission blockquote { font-size: 24px; line-height: 1.5; margin: 20px 0 30px; color: #fff; font-style: italic; }
.mission .kicker { color: #d9c9ea; }

/* News cards */
.news-card { background: #fff; border: 1px solid var(--border); }
.news-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.news-card .body { padding: 18px 20px; }
.news-card h3 { font-size: 18px; margin-bottom: 6px; }
.news-card h3 a { color: var(--heading); }
.news-card .date { font-size: 12px; color: #999; }
.news-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* FAQ */
.faq details { border: 1px solid var(--border); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; color: var(--heading); list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 22px; color: var(--purple); font-size: 18px; top: 13px; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; }

/* CTA */
.cta { background: linear-gradient(var(--purple-light), var(--purple)); background-size: cover; color: #fff; padding: 50px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; font-size: 26px; }
.cta .btn { background: #fff; color: var(--purple) !important; }

/* Page / post content */
.page-header { background: var(--bg-soft); padding: 70px 0 40px; margin-top: -32px; border-bottom: 1px solid var(--border); }
.page-header h1 { margin: 0; font-size: 36px; }
.page-header .crumbs { font-size: 12px; color: #999; margin-top: 8px; }
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; padding: 60px 0 80px; }
.content-area.full { grid-template-columns: 1fr; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.entry-content td, .entry-content th { border: 1px solid var(--border); padding: 12px; vertical-align: top; }
.entry-content tr:first-child td { background: var(--bg-soft); }
.entry-content ul { padding-left: 1.3em; }
.entry-content img.alignright, .entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.entry-meta { font-size: 12px; color: #999; margin-bottom: 20px; }
.disclaimer { font-size: 13px; color: #888; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 30px; }
.sidebar .widget { margin-bottom: 40px; }
.sidebar h3, .sidebar .widget-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.post-list article { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.post-list article.no-thumb { grid-template-columns: 1fr; }

/* Forms */
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 2px; font: inherit; color: #333; background: #fff;
}
.wpcf7 fieldset { border: 1px solid var(--border); padding: 20px 24px; margin: 0 0 24px; }
.wpcf7 legend { font-weight: 600; color: var(--heading); padding: 0 8px; }
.wpcf7 .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7 label { display: block; margin-bottom: 14px; }
.wpcf7-list-item { margin: 0 14px 0 0; }

/* Footer */
.site-footer { background: var(--dark); color: #aaa; font-size: 14px; }
.site-footer .footer-top { padding: 70px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 40px; }
.site-footer h6 { color: #fff; margin-bottom: 18px; }
.site-footer strong { color: #ddd; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid #3c3c3c; padding: 30px 0; font-size: 12px; line-height: 1.6; color: #888; }
.footer-legal img { max-height: 50px; margin-bottom: 16px; }
.footer-menus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 30px 0; border-top: 1px solid #3c3c3c; }
.footer-menus ul { list-style: none; margin: 0; padding: 0; }
.footer-menus li { padding: 4px 0; }
.footer-bottom { background: #252525; padding: 16px 0; font-size: 12px; color: #777; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; background: var(--purple); color: #fff; border-radius: 2px; display: none; align-items: center; justify-content: center; z-index: 50; }
.back-to-top.show { display: flex; }

/* Responsive */
@media (max-width: 991px) {
  .head-info { gap: 24px; }
  .grid-2, .content-area { grid-template-columns: 1fr; gap: 30px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-top, .footer-menus { grid-template-columns: 1fr 1fr; }
  .hero-tabs { display: none; }
  .hero-caption { padding-bottom: 60px; }
  .hero-slide { min-height: 520px; }
}
@media (max-width: 767px) {
  .head-info { display: none; }
  .site-header { padding: 20px 0 60px; }
  .nav-toggle { display: inline-block; }
  .main-nav { flex-wrap: wrap; padding: 10px 16px; }
  .main-nav .menu-wrap { display: none; width: 100%; order: 3; }
  .main-nav.open .menu-wrap { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav li a { border-right: 0; padding: 12px 4px; }
  .main-nav .sub-menu { position: static; display: flex; padding-left: 14px; }
  .grid-3, .news-grid, .site-footer .footer-top, .footer-menus { grid-template-columns: 1fr; }
  .post-list article { grid-template-columns: 1fr; }
  .wpcf7 .row-2 { grid-template-columns: 1fr; }
  h1, .hero-caption h1, .hero-caption h2 { font-size: 30px; }
  .section { padding: 60px 0; }
}


/* =========================================================
   News and Events page — matches jacarandainsurance.com/news-and-events
   ========================================================= */
.news-masthead { position: relative; margin-top: -32px; min-height: 430px; padding: 110px 0 70px; display: flex; align-items: center; text-align: center; color: #fff; background-color: #333; background-position: 0 0; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
.news-masthead::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); }
.news-masthead .container { position: relative; width: 100%; }
.news-masthead h1 { color: #fff; font-size: 52px; font-weight: 300; line-height: 1.2; margin: 0 0 30px; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.news-masthead-sub { font-size: 18px; margin: 0; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.news-list article { grid-template-columns: 340px 1fr; gap: 36px; padding-bottom: 36px; margin-bottom: 36px; }
.news-list .news-thumb img { width: 100%; height: 256px; object-fit: cover; display: block; }
.news-list .news-title { font-size: 26px; font-weight: 300; line-height: 1.25; margin: 0 0 18px; }
.news-list .news-title a { color: var(--heading); }
.news-list .news-title a:hover { color: var(--purple); }
.news-list .news-excerpt p { margin: 0 0 18px; }
.news-list .btn { padding: 14px 16px; }
.news-sidebar .widget { margin-bottom: 60px; }
.news-sidebar .widget-title { font-size: 17px; font-weight: 500; text-transform: none; letter-spacing: 0; border-bottom: 0; padding-bottom: 0; margin: 0 0 32px; color: var(--heading); }
.service-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 20px; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,.14); color: #555; font-size: 12px; line-height: 1.4; text-align: center; transition: box-shadow .2s, color .2s; }
.service-card:hover { color: var(--purple); box-shadow: 0 4px 14px rgba(0,0,0,.16); }
.service-icon { width: 56px; height: 42px; color: var(--heading); }
.service-card:hover .service-icon { color: var(--purple); }
.news-sidebar .latest-articles li { border-bottom: 1px solid var(--border); padding: 0 0 18px; margin: 0 0 18px; }
.latest-articles a { display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: start; color: var(--heading); font-size: 14px; line-height: 1.4; }
.latest-articles a:hover { color: var(--purple); }
.la-thumb img { width: 90px; height: 68px; object-fit: cover; display: block; }

/* Search button in the main menu bar */
.nav-right { position: relative; }
.nav-divider { width: 1px; height: 30px; background: rgba(255,255,255,.12); }
.nav-search-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 2px; background: #555; color: #fff; cursor: pointer; }
.nav-search-toggle:hover, .nav-right.search-open .nav-search-toggle { background: var(--purple); }
.nav-search { display: none; position: absolute; right: 0; top: calc(100% + 16px); z-index: 30; gap: 8px; padding: 12px; background: var(--dark); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.nav-right.search-open .nav-search { display: flex; }
.nav-search input[type="search"] { width: 220px; padding: 8px 10px; border: 0; border-radius: 2px; font-size: 13px; }

@media (max-width: 900px) {
  .news-masthead { min-height: 300px; padding: 80px 0 50px; background-attachment: scroll; background-position: center; }
  .news-masthead h1 { font-size: 36px; margin-bottom: 16px; }
  .news-list article { grid-template-columns: 1fr; gap: 20px; }
  .news-list .news-thumb img { height: auto; }
}

/* Keep page content aligned with the header and menu bar (container side padding) */
.container.content-area { padding-left: 16px; padding-right: 16px; }

/* Match the live site on wide screens: whole page boxed at 1600px, centered, soft shadow */
@media (min-width: 1600px) {
  html { background: #fff; }
  body { width: 1600px; margin-left: auto; margin-right: auto; background: #fff; box-shadow: 0 0 14px rgba(0,0,0,.1); }
}
/* News banner, as on the live site: dark 30% overlay, light 45px title, fixed background on desktop */
.news-masthead { background-position: 0 0; background-attachment: scroll; }
@media (min-width: 1200px) { .news-masthead { background-attachment: fixed; } }
.news-masthead::before { background: #000; opacity: .3; }
.news-masthead h1 { font-size: 45px; font-weight: 200; margin-bottom: 24px; text-shadow: none; }
.news-masthead-sub { text-shadow: none; }
