/* ================================================
   Gutters by Carmody — style.css
   Colors: Navy #1e3a5f | Accent Orange #e8821a
   ================================================ */

:root {
  --primary:       #1e3a5f;
  --primary-dark:  #142840;
  --accent:        #e8821a;
  --accent-dark:   #c96e0e;
  --bg:            #f8f9fa;
  --bg-light:      #ffffff;
  --text:          #2d3748;
  --text-light:    #718096;
  --border:        #e2e8f0;
  --shadow:        0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 30px rgba(0,0,0,0.12);
  --radius:        8px;
  --radius-lg:     14px;
  --transition:    0.25s ease;
  --font-head:     'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --max-width:     1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg-light); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utility ---- */
.container    { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-pad  { padding: 5rem 0; }
.bg-light     { background: var(--bg); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); margin-bottom: .6rem; }
.section-header p  { color: var(--text-light); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

.section-label { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  padding: .65rem 1.4rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-lg   { font-size: 1rem; padding: .85rem 2rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.25); }

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 70px;
}

.logo { display: flex; align-items: center; gap: .7rem; }
.logo-icon { font-size: 1.4rem; color: var(--accent); }
.logo-text  { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main  { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff; }
.logo-sub   { font-size: .7rem; color: rgba(255,255,255,.6); letter-spacing: .04em; }

.main-nav ul { display: flex; gap: 1.8rem; }
.main-nav a  { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.8); transition: color var(--transition); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--accent); }

.nav-cta { padding: .5rem 1.1rem; font-size: .85rem; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20,40,64,.88) 0%, rgba(20,40,64,.65) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 3rem 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .82rem; font-weight: 600; padding: .35rem .85rem; border-radius: 50px; margin-bottom: 1.2rem; }
.hero-content h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1.1rem; }
.hero-content h1 span { color: var(--accent); }
.hero-sub  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1rem; }
.badge-item { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .82rem; font-weight: 600; padding: .45rem 1rem; border-radius: 50px; }
.badge-item span { color: var(--accent); margin-right: .3rem; }

/* ---- Page Hero (inner pages) ---- */
.page-hero { position: relative; min-height: 380px; display: flex; align-items: center; overflow: hidden; }
.page-hero-short { min-height: 280px; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20,40,64,.85) 0%, rgba(20,40,64,.6) 100%); z-index: 1; }
.page-hero-content { position: relative; z-index: 2; text-align: center; padding: 3rem 0; }
.page-hero-content h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: .6rem; }
.page-hero-content p  { color: rgba(255,255,255,.8); font-size: 1.1rem; }

/* ---- Why Us / Cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3   { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.card p    { font-size: .92rem; color: var(--text-light); line-height: 1.65; }

/* ---- Services ---- */
.services-grid { display: flex; flex-direction: column; gap: 3rem; }
.service-item { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.service-item:nth-child(even) { direction: rtl; }
.service-item:nth-child(even) > * { direction: ltr; }
.service-item img { border-radius: var(--radius-lg); width: 100%; height: 300px; object-fit: cover; box-shadow: var(--shadow-lg); }
.service-text h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: .8rem; }
.service-text p  { color: var(--text-light); font-size: 1rem; line-height: 1.75; }

/* ---- About (about page) ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about-image-wrap { position: relative; }
.about-img { border-radius: var(--radius-lg); width: 100%; height: 480px; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-img-badge { position: absolute; bottom: -1.2rem; right: -1.2rem; background: var(--accent); color: #fff; text-align: center; padding: 1.2rem 1.4rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-img-badge span { font-size: 1.8rem; }
.about-img-badge p  { font-size: .78rem; font-weight: 700; margin-top: .3rem; line-height: 1.3; }
.about-text h2      { font-family: var(--font-head); font-size: clamp(1.6rem,3vw,2.2rem); color: var(--primary); margin-bottom: .8rem; }
.about-lead         { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.about-text p       { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
.about-highlights   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.highlight-item     { display: flex; gap: .8rem; align-items: flex-start; }
.highlight-icon     { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.highlight-item strong { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--primary); margin-bottom: .2rem; }
.highlight-item p   { font-size: .85rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ---- Commitment Cards ---- */
.commitment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.commit-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.commit-card img { width: 100%; height: 220px; object-fit: cover; }
.commit-card h3  { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--primary); margin: 1.2rem 1.2rem .4rem; }
.commit-card p   { font-size: .88rem; color: var(--text-light); margin: 0 1.2rem 1.4rem; line-height: 1.65; }

/* ---- Stats Band ---- */
.stats-band { background: var(--primary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item  { padding: 1rem; }
.stat-num   { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { display: block; font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 600; margin-top: .2rem; }

/* ---- CTA Banner ---- */
.cta-banner { background: var(--primary); }
.cta-inner  { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-head); font-size: clamp(1.4rem,3vw,2rem); color: #fff; margin-bottom: .4rem; }
.cta-text p  { color: rgba(255,255,255,.75); font-size: 1rem; }

/* ---- Quote Form ---- */
.quote-container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-card h2    { font-family: var(--font-head); font-size: 1.5rem; color: var(--primary); margin-bottom: .4rem; }
.form-intro      { color: var(--text-light); font-size: .95rem; margin-bottom: 1.8rem; }
.form-row        { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group      { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem .9rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: #fff; transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.checkbox-group { flex-direction: row; align-items: flex-start; gap: .6rem; margin-bottom: 1.4rem; }
.checkbox-label { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkbox-label input { margin-top: .2rem; accent-color: var(--accent); }
.form-submit { display: flex; flex-direction: column; gap: .7rem; }
.form-note   { font-size: .8rem; color: var(--text-light); text-align: center; }

.form-message { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); margin-top: 1.2rem; }
.form-message span { font-size: 1.4rem; flex-shrink: 0; }
.form-message strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.form-message p { font-size: .88rem; margin: 0; }
.form-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.form-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.form-error a { color: var(--accent); text-decoration: underline; }

/* ---- Sidebar ---- */
.sidebar-card { background: #fff; border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 1.4rem; }
.sidebar-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 1.1rem; }
.steps-list { display: flex; flex-direction: column; gap: 1.2rem; }
.steps-list li { display: flex; gap: .9rem; align-items: flex-start; }
.step-num { background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; min-width: 1.7rem; height: 1.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem; }
.steps-list strong { display: block; font-size: .9rem; color: var(--primary); margin-bottom: .15rem; }
.steps-list p { font-size: .84rem; color: var(--text-light); margin: 0; line-height: 1.5; }
.trust-list { display: flex; flex-direction: column; gap: .7rem; }
.trust-list li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text); font-weight: 500; }
.trust-list span { font-size: 1rem; }
.sidebar-contact p  { font-size: .92rem; color: var(--text-light); margin-bottom: .6rem; }
.email-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); font-size: .95rem; }
.email-link:hover { text-decoration: underline; }

/* ---- Footer ---- */
.site-footer { background: var(--primary-dark); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand .logo-main { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: .7rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 280px; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact p { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.footer-contact a { color: var(--accent); }
.footer-contact a:hover { text-decoration: underline; }
.insured-badge { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.5) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; text-align: center; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.35); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .cards-grid        { grid-template-columns: repeat(2, 1fr); }
  .commitment-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid        { grid-template-columns: 1fr; }
  .about-img         { height: 340px; }
  .about-img-badge   { right: 1rem; bottom: 1rem; }
  .about-highlights  { grid-template-columns: 1fr; }
  .service-item      { grid-template-columns: 1fr; }
  .service-item:nth-child(even) { direction: ltr; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .footer-brand      { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section-pad { padding: 3.5rem 0; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--primary-dark); padding: 1rem 1.5rem 1.5rem; flex-direction: column; }
  .main-nav.nav-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: .8rem; }
  .main-nav a  { font-size: 1rem; padding: .5rem 0; display: block; }
  .nav-cta     { display: none; }
  .nav-toggle  { display: block; }
  .hero-btns   { flex-direction: column; }
  .hero-badges { flex-direction: column; gap: .5rem; }
  .quote-container { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .cta-inner  { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .commitment-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
}

@media (max-width: 480px) {
  .about-img-badge { display: none; }
  .hero-content h1 { font-size: 1.8rem; }
}
