/* ========================================
   TRI-STATE GENERAL CONTRACTING
   Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --navy:   #1D3C72;
  --red:    #C0272D;
  --dark:   #0F1E3D;
  --light:  #F4F6F9;
  --gray:   #6C757D;
  --white:  #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(15, 30, 61, 0.12);
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #2D3748;
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

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

ul { list-style: none; }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title span { color: var(--red); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: #a01e23;
  border-color: #a01e23;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 39, 45, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #162d57;
  border-color: #162d57;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 60, 114, 0.35);
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 16px 0 24px;
  border-radius: 2px;
}

.divider-center { margin: 16px auto 24px; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

/* ========================================
   NAVBAR  — white background, full-color logo
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 var(--red), 0 3px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.navbar-logo img {
  height: 94px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar-links a:hover { color: var(--red); }
.navbar-links a:hover::after { transform: scaleX(1); }
.navbar-links a.active { color: var(--red); }
.navbar-links a.active::after { transform: scaleX(1); }

.navbar-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--red);
  padding: 11px 22px !important;
  border-radius: 4px;
  transition: var(--transition) !important;
  margin-left: 8px;
}

.navbar-cta::after { display: none !important; }
.navbar-cta:hover { background: #a01e23 !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(192,39,45,0.35) !important; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   PAGE HERO (inner pages)
   ======================================== */
.page-hero {
  padding: 188px 0 88px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

/* Tricolor accent bar at bottom of page hero */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right,
    var(--red) 0%, var(--red) 33.3%,
    var(--white) 33.3%, var(--white) 66.6%,
    var(--navy) 66.6%, var(--navy) 100%
  );
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb a { color: var(--red); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 72px; margin-bottom: 20px; }

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 300px;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul a:hover { color: var(--red); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(192, 39, 45, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-size: 1rem;
}

.footer-contact-item div span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}

.footer-contact-item div a,
.footer-contact-item div p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}

.footer-contact-item div a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .section-pad-sm { padding: 40px 0; }

  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 104px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    border-top: 3px solid var(--red);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  .navbar-links.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); color: var(--navy); }
  .navbar-links.open a:hover { color: var(--red); }
  .navbar-links.open a::after { display: none; }
  .navbar-links.open .navbar-cta { margin-top: 12px; margin-left: 0; width: 100%; justify-content: center; }
  .navbar-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
