/* ============================================================
   Rossell Agency — Site Stylesheet
   ============================================================ */

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

:root {
  --navy:   #1e3a5f;
  --blue:   #2e6da4;
  --blue-light: #3a82c4;
  --gold:   #c8a84b;
  --text:   #333333;
  --text-light: #555555;
  --bg-light: #f5f7fa;
  --bg-gray: #eeeeee;
  --white:  #ffffff;
  --max-w:  1200px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1,h2,h3,h4 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin-bottom: 1rem; }

ul { padding-left: 1.4em; }
li { margin-bottom: .4rem; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-decoration: none;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #b3912e; color: var(--white); }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .4rem 0;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--white); text-decoration: none; }
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.top-bar-item { display: flex; align-items: center; gap: .35rem; }
.top-bar-item svg { width: 14px; height: 14px; opacity: .7; }

/* ---------- Main Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1.5rem;
}

.site-logo img { height: 60px; width: auto; }
.site-logo { display: block; }

/* ---------- Navigation ---------- */
.main-nav { display: flex; align-items: center; gap: .25rem; }

.main-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: .1rem;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
  display: block;
  padding: .5rem .75rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  background: var(--bg-light);
  color: var(--blue);
}

/* Quote button in nav */
.nav-quote a {
  background: var(--blue);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: .5rem 1rem !important;
}
.nav-quote a:hover { background: var(--navy) !important; color: var(--white) !important; }

/* ---------- Dropdown ---------- */
.has-dropdown > a::after {
  content: " ▾";
  font-size: .7rem;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  min-width: 220px;
  z-index: 900;
  padding: .5rem 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.has-dropdown:hover .dropdown { display: block; }

.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: .45rem 1.2rem;
  font-size: .87rem;
  color: var(--text);
  transition: background .15s;
}
.dropdown a:hover { background: var(--bg-light); color: var(--blue); text-decoration: none; }

/* Sub-dropdown */
.sub-dropdown-wrap { position: relative; }
.sub-dropdown-wrap > a::after { content: " ▸"; font-size: .65rem; float: right; }
.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  min-width: 250px;
  z-index: 901;
  padding: .5rem 0;
  border-left: 3px solid var(--blue);
}
.sub-dropdown-wrap:hover .sub-dropdown { display: block; }
.sub-dropdown li { list-style: none; }
.sub-dropdown a {
  display: block;
  padding: .45rem 1.2rem;
  font-size: .87rem;
  color: var(--text);
  transition: background .15s;
}
.sub-dropdown a:hover { background: var(--bg-light); color: var(--blue); text-decoration: none; }

/* ---------- Mobile Menu Toggle ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: .45;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 4rem 0;
}
.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  max-width: 640px;
  margin-bottom: 1.2rem;
}
.hero-content p {
  font-size: 1.1rem;
  max-width: 540px;
  opacity: .92;
  margin-bottom: 1.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Homepage larger hero */
.hero-home { min-height: 500px; }
.hero-home .hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Services Icon Row ---------- */
.services-row {
  background: var(--white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--bg-gray);
}
.services-row .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  color: var(--navy);
}
.service-card:hover { background: var(--bg-light); transform: translateY(-3px); text-decoration: none; color: var(--navy); }
.service-card .icon {
  width: 64px; height: 64px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.service-card .icon svg { width: 30px; height: 30px; fill: var(--white); }
.service-card h3 { font-size: 1rem; color: var(--navy); }
.service-card p { font-size: .87rem; color: var(--text-light); margin: 0; }

/* ---------- About / Intro Section ---------- */
.about-section {
  background: var(--bg-light);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-light); }

/* ---------- Service Center Grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-tile {
  background: var(--white);
  border: 1px solid #dde3ee;
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.service-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; color: var(--navy); }
.service-tile .tile-icon {
  width: 60px; height: 60px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.service-tile .tile-icon svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 1.5; }
.service-tile h3 { font-size: 1rem; }
.service-tile p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ---------- Content Page Layout ---------- */
.page-content {
  padding: 3rem 0 4rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.main-copy h2 { margin: 1.5rem 0 .75rem; }
.main-copy h3 { margin: 1.2rem 0 .5rem; color: var(--blue); }
.main-copy ul { margin-bottom: 1rem; }
.main-copy .page-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--blue);
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--navy); }
.sidebar-widget p { font-size: .9rem; color: var(--text-light); }
.sidebar-widget .btn { width: 100%; text-align: center; margin-top: .75rem; display: block; }
.sidebar-contact { background: var(--navy); color: var(--white); border-left: 4px solid var(--gold); }
.sidebar-contact h3 { color: var(--white); }
.sidebar-contact p { color: rgba(255,255,255,.8); font-size: .9rem; }
.sidebar-contact a { color: var(--gold); }

/* ---------- Contact Form ---------- */
.contact-section { background: var(--navy); padding: 4rem 0; }
.contact-section h2 { color: var(--white); margin-bottom: .5rem; }
.contact-section .subtitle { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { color: rgba(255,255,255,.85); }
.contact-info h3 { color: var(--white); margin-bottom: 1rem; }
.contact-info-item { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-info-item svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.contact-info-item a { color: rgba(255,255,255,.85); }
.contact-info-item a:hover { color: var(--white); }

.contact-form { background: var(--white); border-radius: 8px; padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .6rem .85rem;
  border: 1px solid #ccd4e0;
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s;
  font-family: inherit;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,109,164,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-full { grid-column: 1 / -1; }

/* ---------- Carriers Section ---------- */
.carriers-section { background: var(--bg-light); padding: 3rem 0; }
.carriers-section h2 { text-align: center; margin-bottom: .5rem; }
.carriers-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2rem; }
.carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.carrier-logo {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80px;
  transition: box-shadow .2s;
}
.carrier-logo:hover { box-shadow: var(--shadow); }
.carrier-logo img { max-height: 60px; max-width: 120px; object-fit: contain; }
.carrier-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  text-align: center;
}
.team-card img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.team-card-info { padding: 1.2rem; }
.team-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.team-card p { font-size: .87rem; color: var(--text-light); margin: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--bg-light);
  padding: .6rem 0;
  font-size: .83rem;
  color: var(--text-light);
  border-bottom: 1px solid #e0e5ee;
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span::before { content: " › "; margin: 0 .25rem; }

/* ---------- Quote Strip ---------- */
.quote-strip {
  background: var(--blue);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--white);
}
.quote-strip h2 { color: var(--white); margin-bottom: .5rem; }
.quote-strip p { color: rgba(255,255,255,.85); margin-bottom: 1.2rem; }

/* ---------- Industry Landing ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.industry-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.industry-card img { width: 100%; height: 180px; object-fit: cover; }
.industry-card-body { padding: 1.2rem; background: var(--white); }
.industry-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: .4rem; }
.industry-card p { font-size: .87rem; color: var(--text-light); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f2340;
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 1rem; opacity: .85; }
.footer-brand p { font-size: .87rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .87rem; transition: color .15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* ---------- Alerts / Notices ---------- */
.notice {
  background: #e8f0fa;
  border-left: 4px solid var(--blue);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav > ul > li > a { padding: .5rem .55rem; font-size: .83rem; }
  .content-grid { grid-template-columns: 1fr 280px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    padding: 4rem 1.5rem 2rem;
    overflow-y: auto;
    z-index: 2000;
    align-items: flex-start;
  }
  .main-nav.open > ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .main-nav.open > ul > li { width: 100%; }
  .main-nav.open > ul > li > a {
    padding: .75rem .5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--bg-gray);
    border-radius: 0;
  }
  .has-dropdown > a::after { content: " +"; }
  .dropdown, .sub-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--bg-gray);
    padding-left: 1rem;
    margin-top: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .sub-dropdown-wrap.open .sub-dropdown { display: block; }
  .dropdown a, .sub-dropdown a { padding: .5rem .75rem; }
  .sub-dropdown-wrap > a::after { content: " +"; float: right; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1999;
  }
  .nav-overlay.open { display: block; }

  .about-grid, .contact-grid, .content-grid { grid-template-columns: 1fr; }
  .services-row .container { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-row .container { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .hero { min-height: 320px; }
  .top-bar-left { display: none; }
  .carriers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
