/* ========================================
   TRIO CONSTRUCTION GROUP — styles.css
   Version 4
   ======================================== */

/* ---- Variables ---- */
:root {
  --navy:      #1F3A5F;
  --navy-dk:   #162d4a;
  --navy-xdk:  #0f1e2e;
  --gold:      #D9A015;
  --gold-lt:   #EAB425;
  --gold-dk:   #A87A10;
  --white:     #FFFFFF;
  --off-white: #FAFAF8;
  --cream:     #F4F0E6;
  --stone:     #E8E3D8;
  --text:      #18243A;
  --text-lt:   #2D3D54;
  --border:    #D8D2C6;
  --border-lt: #E8E4DC;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 3px 18px rgba(31,58,95,0.09);
  --shadow-md: 0 6px 28px rgba(31,58,95,0.12);
  --shadow-lg: 0 10px 40px rgba(31,58,95,0.16);
}

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

/* ---- Container ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  padding: 11px 22px;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-xdk);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,180,32,0.35);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover { background: var(--navy-dk); border-color: var(--navy-dk); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.85); }
.btn--nav {
  background: var(--gold);
  color: var(--navy-xdk);
  border-color: var(--gold);
  padding: 8px 17px;
  font-size: 0.87rem;
}
.btn--nav:hover { background: var(--gold-lt); }
.btn--lg  { padding: 14px 28px; font-size: 1rem; }
.btn--xl  { padding: 17px 38px; font-size: 1.12rem; border-radius: 11px; }

/* ---- Section chrome ---- */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 8px;
}
.section-label--light { color: rgba(232,180,32,0.9); }
.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 0.98rem;
  color: var(--text-lt);
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 3px 16px rgba(31,58,95,0.10);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Text-first brand lockup */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav__icon {
  width: 32px;
  height: 37px;
  flex-shrink: 0;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0;
}
.nav__brand-trio {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav__brand-sub {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 1px;
  line-height: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--navy); font-weight: 600; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 14px 24px 18px;
  gap: 14px;
  border-top: 1px solid var(--border-lt);
  background: var(--white);
}
.nav__mobile a { color: var(--text); font-weight: 600; font-size: 1rem; }
.nav__mobile.open { display: flex; }

/* ========================================
   HERO — split layout
   ======================================== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 380px;
}

/* Left: text panel */
.hero__text {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dk) 60%, #0f2038 100%);
  padding: 36px 40px 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
/* nudge text to right so it sits inside the container */
.hero__text { padding-left: calc((100vw - 1140px) / 2 + 24px); }

.hero__badge {
  display: inline-block;
  background: rgba(232,180,32,0.15);
  border: 1px solid rgba(232,180,32,0.4);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  width: fit-content;
}
.hero__headline {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.hero__sub {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.92);
  max-width: 420px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Phone number — hero */
.hero__phone {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
  text-decoration: none;
  width: fit-content;
}
.hero__phone-number {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.15s;
}
.hero__phone:hover .hero__phone-number { color: var(--gold); }
.hero__phone-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__trust span {
  color: rgba(255,255,255,0.88);
  font-size: 0.83rem;
  font-weight: 600;
}

/* Right: image panel */
.hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.hero__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(22,45,74,0.85) 0%, rgba(22,45,74,0.25) 40%, rgba(22,45,74,0.15) 100%);
  pointer-events: none;
}
.hero__visual-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(15,30,46,0.88);
  border: 1px solid rgba(232,180,32,0.4);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(4px);
}
.hero__visual-badge strong {
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 700;
}
.hero__visual-badge span {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
}

/* ========================================
   PRIMARY SERVICES — off-white
   ======================================== */
.primary-services {
  padding: 52px 0;
  background: var(--off-white);
}
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Image header */
.service-card__img {
  height: 210px;
  overflow: hidden;
  position: relative;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s ease;
}
/* Roofing card: focus on upper roof area */
.service-card:first-child .service-card__img img {
  object-position: center 20%;
}
/* Siding card: focus on mid-panel work area */
.service-card--featured .service-card__img img {
  object-position: center 35%;
}
.service-card:hover .service-card__img img { transform: scale(1.03); }

/* Body */
.service-card__body { padding: 24px 26px 28px; }
.service-card--featured {
  border-color: var(--navy);
}
.service-card--featured .service-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(31,58,95,0.5) 100%);
}
.service-card--featured .service-card__body { background: var(--navy); }
.service-card--featured h3 { color: var(--white); }
.service-card--featured .service-card__desc { color: rgba(255,255,255,0.90); }
.service-card--featured .service-list li { color: rgba(255,255,255,0.95); border-bottom-color: rgba(255,255,255,0.12); }
.service-card--featured .service-list li::before { color: var(--gold); }

.service-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--gold);
  color: var(--navy-xdk);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card__desc {
  font-size: 0.91rem;
  color: var(--text-lt);
  margin-bottom: 16px;
  line-height: 1.6;
}
.service-list { margin-bottom: 24px; }
.service-list li {
  color: var(--text-lt);
  font-size: 0.91rem;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-lt);
}
.service-list li::before {
  content: '●';
  color: var(--gold-dk);
  font-size: 0.42rem;
  flex-shrink: 0;
}

/* ========================================
   PHONE STRIP — navy band
   ======================================== */
.phone-strip {
  background: var(--navy-dk);
  padding: 24px 0;
}
.phone-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.phone-strip__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phone-strip__text strong {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}
.phone-strip__text span {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
}

/* ========================================
   ADDITIONAL SERVICES — cream bg
   ======================================== */
.additional-services {
  padding: 52px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.add-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.add-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 12px;
  padding: 26px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.add-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.add-card__icon { font-size: 1.7rem; margin-bottom: 12px; }
.add-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.add-card p  { font-size: 0.88rem; color: var(--text-lt); line-height: 1.6; }

/* ========================================
   WHY CHOOSE US — off-white
   ======================================== */
.why-us {
  padding: 52px 0;
  background: var(--off-white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-item {
  padding: 24px 22px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 10px 10px 0;
  border-top: 1px solid var(--border-lt);
  border-right: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  transition: box-shadow 0.2s;
}
.trust-item:hover { box-shadow: var(--shadow); }
.trust-item__icon { font-size: 1.4rem; margin-bottom: 10px; }
.trust-item h4 { font-size: 0.97rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.trust-item p  { font-size: 0.88rem; color: var(--text-lt); line-height: 1.55; }

/* ========================================
   SERVICE AREA — stone bg
   ======================================== */
.service-area {
  padding: 52px 0;
  background: var(--stone);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.area-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.area-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.area-col ul { display: flex; flex-direction: column; gap: 5px; }
.area-col ul li {
  font-size: 0.91rem;
  color: var(--text-lt);
  padding-left: 14px;
  position: relative;
}
.area-col ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-dk);
  font-size: 0.75rem;
  top: 2px;
}
.area-cta {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.area-cta p { font-size: 1rem; font-weight: 600; color: var(--navy); }
.area-cta__note { font-size: 0.83rem; color: var(--text-lt); }

/* ========================================
   CONTACT — navy with image bg
   ======================================== */
.contact {
  position: relative;
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Dark navy overlay on top of image */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,30,46,0.93) 0%, rgba(22,45,74,0.90) 100%);
  z-index: 1;
}
.contact__inner {
  position: relative;
  z-index: 2;
}
.contact__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.contact__sub {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin: 0 auto 18px;
  line-height: 1.65;
}
.contact__phone-link {
  display: block;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.contact__phone-link:hover { color: var(--gold); }
.contact .btn--gold {
  box-shadow: 0 6px 28px rgba(232,180,32,0.35);
}
.contact .btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(232,180,32,0.45);
}
.contact__details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.contact__detail strong {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact__detail span {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
}
.contact__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.18);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-xdk);
  padding: 44px 0 28px;
}
.footer__inner { display: flex; flex-direction: column; }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
/* Footer brand lockup */
.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.footer__icon {
  width: 36px;
  height: 42px;
  flex-shrink: 0;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0;
}
.footer__brand-trio {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.07em;
  line-height: 1;
}
.footer__brand-sub {
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  margin-top: 2px;
}
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__phone {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.footer__phone:hover { color: var(--gold); }
.footer__phone-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 22px;
}
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.87rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--white); }
.footer__copy {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.48);
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page {
  padding: 56px 0 72px;
  background: var(--off-white);
}
.legal-page__header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.legal-page__header h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}
.legal-page__header p { color: var(--text-lt); font-size: 0.88rem; }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 26px 0 9px; }
.legal-page p,
.legal-page li { font-size: 0.93rem; color: var(--text-lt); line-height: 1.72; margin-bottom: 9px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--navy); text-decoration: underline; }
.legal-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.legal-nav a { color: var(--navy); font-weight: 600; font-size: 0.88rem; }
.legal-nav span { color: var(--text-lt); font-size: 0.82rem; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
  .hero__text {
    padding-left: 40px;
  }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { height: 74px; }
  .nav__brand-trio { font-size: 1.45rem; }
  .nav__brand-sub { font-size: 1.05rem; }
  .nav__icon { width: 28px; height: 33px; }

  /* Hero stacks vertically */
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__text {
    padding: 40px 24px 36px;
  }
  .hero__visual {
    min-height: 240px;
    order: -1; /* image on top on mobile */
  }

  .service-cards { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .add-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .area-columns { grid-template-columns: 1fr 1fr; }
  .area-cta { grid-column: span 2; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__contact { align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav__inner { height: 66px; }
  .nav__brand-trio { font-size: 1.2rem; }
  .nav__brand-sub { font-size: 0.88rem; }
  .nav__icon { width: 24px; height: 28px; }
  .footer__brand-trio { font-size: 1.4rem; }
  .footer__icon { width: 30px; height: 35px; }
  .hero__visual { order: 0; min-height: 180px; }
  .hero__text { padding: 32px 20px; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__trust { flex-direction: column; gap: 6px; }
  .hero__visual-badge { display: none; }

  .primary-services,
  .additional-services,
  .why-us,
  .service-area,
  .contact { padding: 44px 0; }

  .add-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .area-columns { grid-template-columns: 1fr; }
  .area-cta { grid-column: span 1; }
  .section-sub { margin-bottom: 20px; }
  .contact__details { flex-direction: column; gap: 16px; }
  .contact__divider { width: 48px; height: 1px; }
  .footer__links { gap: 12px; }
  .service-card__img { height: 170px; }
  .phone-strip__inner { flex-direction: column; align-items: flex-start; }
}
