/* ==========================================================================
   Texan Home Additions — consolidated stylesheet
   Colors & type verified against extracted-css.md + original screenshots.
   ========================================================================== */

/* ---------- Self-hosted fonts (localized, no external CDN) ---------- */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/overpass.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/montserrat.woff2') format('woff2');
}

:root {
  --red: #ae1c29;            /* rgb(174,28,41) nav band, CALL btn, headings, footer links */
  --red-dark: #8f1621;       /* hover */
  --crimson: #bc0a3e;        /* rgb(188,10,62) footer bottom bar, accent bands */
  --indigo: #3e4095;         /* rgb(62,64,149) consult btn, form card, submit, footer headings */
  --indigo-dark: #313370;
  --blue-submit: #1281d6;    /* form submit fill seen in computed styles */
  --beige: #e2dbd4;          /* rgb(226,219,212) header top bar / footer bg */
  --beige-light: #ede9e5;    /* rgb(237,233,229) alternating section bg */
  --body-text: #4b4f58;      /* rgb(75,79,88) */
  --heading-dark: #3a3a3a;   /* rgb(58,58,58) section H2 */
  --white: #ffffff;
  --black: #000000;
  --container: 1170px;
  --font-body: 'Overpass', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--body-text);
  background-color: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
ul { margin: 0; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0 0 .5em; line-height: 1.3; font-weight: 700; color: var(--heading-dark); }
h1 { font-size: 46px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }
p { margin: 0 0 1em; }

/* section intro headings are red + centered on this site */
.section-title { color: var(--red); text-align: center; font-family: var(--font-heading); }
.section-subtitle { color: var(--red); text-align: center; font-weight: 400; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
section { padding: 60px 0; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.6;
  padding: 14px 42px; border: 2px solid transparent; border-radius: 0; cursor: pointer; text-align: center;
  transition: background-color .3s, color .3s, border-color .3s; }
.btn-red { background-color: var(--red); border-color: var(--red); color: var(--white); }
.btn-red:hover { background-color: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-indigo { background-color: var(--indigo); border-color: var(--indigo); color: var(--white); }
.btn-indigo:hover { background-color: var(--indigo-dark); border-color: var(--indigo-dark); color: var(--white); }
.btn-outline-indigo { background-color: transparent; border-color: var(--indigo); color: var(--indigo); }
.btn-outline-indigo:hover { background-color: var(--indigo); color: var(--white); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { background-color: var(--beige); position: relative; z-index: 100; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 15px; max-width: var(--container); margin: 0 auto; }
.header-logo img { width: 200px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn-consult { background: transparent; border: 2px solid var(--indigo); color: var(--indigo); font-weight: 700; padding: 14px 28px; display: inline-flex; align-items: center; gap: 10px; }
.header-actions .btn-consult:hover { background: var(--indigo); color: var(--white); }
.header-actions .btn-call { background: var(--red); color: var(--white); font-weight: 700; padding: 14px 24px; display: inline-flex; align-items: center; gap: 10px; }
.header-actions .btn-call:hover { background: var(--red-dark); color: var(--white); }

/* red nav band */
.main-nav { background-color: var(--red); }
.main-nav .nav-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 15px; }
.main-nav ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 16px 18px; display: block; }
.main-nav a:hover, .main-nav a.active { color: var(--beige); }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 12px 15px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 24px; height: 2px; background: var(--white); position: relative; transition: .3s; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* Services dropdown (desktop: hover/focus) */
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a .caret { display: inline-block; margin-left: 5px; font-size: 11px; vertical-align: middle; transition: transform .2s; }
.main-nav .has-dropdown:hover > a .caret,
.main-nav .has-dropdown:focus-within > a .caret { transform: rotate(180deg); }
.main-nav .dropdown-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 235px; background-color: var(--red); box-shadow: 0 10px 24px rgba(0,0,0,.22); padding: 6px 0; margin: 0; display: none; flex-direction: column; z-index: 60; }
.main-nav .has-dropdown:hover > .dropdown-menu,
.main-nav .has-dropdown:focus-within > .dropdown-menu { display: flex; }
.main-nav .dropdown-menu li { width: 100%; }
.main-nav .dropdown-menu a { padding: 11px 20px; font-weight: 600; font-size: 14px; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.12); }
.main-nav .dropdown-menu li:first-child a { border-top: 0; }
.main-nav .dropdown-menu a:hover, .main-nav .dropdown-menu a.active { background: rgba(0,0,0,.16); color: var(--white); }
.main-nav .dropdown-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.15); }
.hero .hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 40px 15px; width: 100%; }
.hero h1 { color: var(--white); font-family: var(--font-body); font-size: 55px; font-weight: 700; line-height: 1.1; margin-bottom: 20px; max-width: 640px; }
.hero.hero-centered { text-align: center; }
.hero.hero-centered .hero-inner { text-align: center; }
.hero.hero-centered h1 { margin: 0 auto 20px; }
/* boxed title used on interior pages */
.hero-title-box { display: inline-block; border: 2px solid rgba(255,255,255,.6); padding: 34px 60px; background: rgba(0,0,0,.10); }
.hero-title-box h1 { margin: 0; }

/* red intro band under some heroes */
.intro-band { background: var(--red); color: var(--white); padding: 40px 0; }
.intro-band h2 { color: var(--white); text-align: center; }
.intro-band p { color: var(--white); }

/* ==========================================================================
   SECTIONS / COMPONENTS
   ========================================================================== */
.section-beige { background: var(--beige-light); }
.section-white { background: var(--white); }

/* feature list (why choose) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.feature-grid h3 { color: var(--red); font-size: 20px; }

/* service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.service-card { background: var(--white); text-align: center; }
.service-card img { width: 100%; height: 240px; object-fit: cover; }
.service-card h3 { color: var(--red); font-size: 22px; margin: 18px 0 10px; }
.service-card p { padding: 0 12px; font-size: 15px; }
.service-card .btn { margin: 12px 0 0; }

/* two-column alternating */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col.reverse .col-img { order: 2; }
.two-col img { width: 100%; height: 100%; object-fit: cover; }

/* gallery */
.gallery-group { margin-bottom: 40px; }
.gallery-group > h2 { color: var(--heading-dark); font-family: var(--font-heading); text-align: left; margin-bottom: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item figure { margin: 0; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; }
.gallery-item figcaption { font-size: 14px; color: var(--body-text); margin-top: 8px; }
.gallery-link { display: block; text-decoration: none; }
.gallery-link figure { cursor: pointer; }
.gallery-item img { transition: opacity .2s; }
.gallery-link:hover img { opacity: .92; }
.gallery-link:hover figcaption { color: var(--red); text-decoration: underline; }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: var(--white); }
.blog-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,80,160,.85), rgba(20,80,160,.15)); }
.blog-card .blog-card-body { position: relative; z-index: 2; padding: 20px; }
.blog-card h3 { color: var(--white); font-size: 19px; margin-bottom: 8px; }
.blog-card .meta { font-size: 12px; opacity: .95; }
.blog-card a.stretched { position: absolute; inset: 0; z-index: 3; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; color: var(--body-text); }
.pagination .current { background: var(--blue-submit); color: var(--white); border-color: var(--blue-submit); }

/* testimonials */
.testimonial { max-width: 820px; margin: 0 auto; text-align: center; }
.testimonial .stars { color: var(--red); }
.testimonial blockquote { font-style: normal; color: var(--body-text); margin: 16px 0; line-height: 1.9; }
.testimonial cite { font-weight: 700; }

/* CTA band with bg image */
.cta-band { position: relative; padding: 90px 0; text-align: center; background-size: cover; background-position: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); }

/* thin accent band */
.accent-band { height: 40px; background: var(--red); }

/* ==========================================================================
   FORMS (Contact / Get a Free Consultation)
   ========================================================================== */
.form-card { background: var(--indigo); color: var(--white); padding: 40px; }
.form-card h2 { color: var(--white); text-align: left; font-family: var(--font-heading); margin-bottom: 24px; }
.form-card label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 4px; font-family: var(--font-body); font-size: 15px; background: var(--white); color: #333; }
.form-card .consent { display: flex; gap: 10px; font-weight: 400; font-size: 13px; margin: 18px 0; align-items: flex-start; }
.form-card .consent input { width: auto; margin-top: 4px; }
.form-card .btn-submit { background: var(--blue-submit); color: var(--white); border: 0; border-radius: 4px; padding: 12px 26px; font-weight: 700; font-size: 16px; width: 100%; cursor: pointer; }
.form-card .btn-submit:hover { background: #0f6ab3; }

.quick-info h2 { color: var(--heading-dark); font-family: var(--font-heading); }
.map-embed { width: 100%; height: 460px; border: 0; }

/* FAQ accordion */
.faq { max-width: 100%; }
.faq-item { border: 1px solid #e3e3e3; margin-bottom: 10px; background: var(--white); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; font-family: var(--font-heading);
  font-weight: 700; font-size: 16px; color: var(--red); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 500px; }
.faq-q::after { content: '+'; font-size: 22px; }
.faq-item.open .faq-q::after { content: '\2212'; }

/* article body (blog posts) */
.article { max-width: 820px; margin: 0 auto; }
.article img { margin: 24px 0; }
.article h2, .article h3 { color: var(--heading-dark); text-align: left; font-family: var(--font-heading); margin-top: 32px; }
.article ul, .article ol { margin: 0 0 1em; padding-left: 1.4em; }
.article li { margin-bottom: .5em; }
.post-meta { color: #777; font-size: 14px; margin-bottom: 20px; }

/* trust badges row */
.badges { background: var(--beige); padding: 40px 0; }
.badges .badge-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.badges img { max-height: 70px; width: auto; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--beige); color: var(--body-text); }
.footer-accent { height: 8px; background: var(--crimson); }
.footer-main { max-width: var(--container); margin: 0 auto; padding: 50px 15px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand img { width: 200px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: var(--indigo); font-size: 24px; }
.footer-col h4 { color: var(--indigo); font-family: var(--font-heading); text-align: center; margin-bottom: 14px; }
.footer-col ul { list-style: none; text-align: center; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-col p { color: var(--red); font-size: 15px; margin: 0 0 8px; }
.footer-col.text-center { text-align: center; }
.footer-bottom { background: var(--crimson); color: var(--white); text-align: center; padding: 14px 15px; font-size: 13px; }
.footer-bottom a { color: var(--white); text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE  (Brizy/Astra breakpoints: 991px, 767px)
   ========================================================================== */
@media (max-width: 991px) {
  .feature-grid, .card-grid, .gallery-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 767px) {
  .header-top { flex-wrap: wrap; justify-content: center; }
  .header-actions { flex-wrap: wrap; justify-content: center; }
  .main-nav .nav-inner { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; }
  .nav-toggle { display: block; align-self: flex-start; }
  .main-nav > .nav-inner > ul { display: none; flex-direction: column; width: 100%; gap: 0; }
  .main-nav.open > .nav-inner > ul { display: flex; }
  .main-nav a { text-align: center; padding: 14px; border-top: 1px solid rgba(255,255,255,.15); }
  /* Services dropdown (mobile: tap toggle) */
  .main-nav .has-dropdown { display: flex; flex-wrap: wrap; align-items: stretch; }
  .main-nav .has-dropdown > a { flex: 1; }
  .main-nav .has-dropdown > a .caret { display: none; }
  .main-nav .dropdown-toggle { display: block; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.15); color: var(--white); font-size: 15px; width: 56px; cursor: pointer; }
  .main-nav .dropdown-toggle::after { content: '\25BE'; display: inline-block; transition: transform .25s; }
  .main-nav .has-dropdown.open .dropdown-toggle::after { transform: rotate(180deg); }
  .main-nav .dropdown-menu { position: static; display: none; min-width: 0; width: 100%; box-shadow: none; padding: 0; background: rgba(0,0,0,.18); }
  .main-nav .has-dropdown:hover > .dropdown-menu,
  .main-nav .has-dropdown:focus-within > .dropdown-menu { display: none; }
  .main-nav .has-dropdown.open > .dropdown-menu { display: flex; }
  .main-nav .dropdown-menu a { border-top: 1px solid rgba(255,255,255,.12); }
  .feature-grid, .card-grid, .gallery-grid, .blog-grid, .two-col, .footer-main { grid-template-columns: 1fr; }
  .two-col.reverse .col-img { order: 0; }
  .hero { min-height: 320px; }
  .hero h1 { font-size: 34px; }
  h1 { font-size: 36px; } h2 { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Form feedback ---------- */
.form-message { margin-top: 16px; padding: 12px 16px; border-radius: 4px; font-size: 15px; line-height: 1.5; }
.form-message.success { background: #e6f4ea; color: #1e6b34; border: 1px solid #b7dfc4; }
.form-message.error { background: #fdecea; color: #a3231a; border: 1px solid #f3c1bd; }
.field-error { outline: 2px solid #d9342b !important; outline-offset: 1px; }
