/* ================================================================
   T&T Plumbing — global.css
   Variables · Reset · Typography · Layout Utilities
================================================================ */

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

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary:        #0A1F44;
  --primary-mid:    #0D2D6B;
  --primary-light:  #1a3a7c;
  --accent:         #C0392B;
  --accent-light:   #E74C3C;
  --highlight:      #F39C12;
  --white:          #FFFFFF;
  --off-white:      #F5F7FA;
  --text-dark:      #1A1A2E;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;
  --glass-bg:       rgba(255,255,255,0.08);
  --glass-border:   rgba(255,255,255,0.18);
  --overlay-dark:   rgba(10,31,68,0.90);
  --overlay-mid:    rgba(10,31,68,0.65);

  --font-heading:    'Bebas Neue', sans-serif;
  --font-body-bold:  'Montserrat', sans-serif;
  --font-body:       'Open Sans', sans-serif;

  --shadow-xs:  0 1px 3px rgba(0,0,0,0.10);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.12);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.16);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.22);
  --shadow-xl:  0 1px 2px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.10),
                0 12px 24px rgba(0,0,0,0.08), 0 24px 48px rgba(0,0,0,0.06);

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 50px;

  --tr:        0.3s ease;
  --tr-slow:   0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tr-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --container:  1200px;
  --navbar-h:   80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-body-bold);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h2 {
  font-family: var(--font-body-bold);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

h3 {
  font-family: var(--font-body-bold);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h4 {
  font-family: var(--font-body-bold);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

p {
  line-height: 1.80;
  color: var(--text-muted);
}

strong { font-weight: 700; color: var(--text-dark); }

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body-bold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section     { padding: 100px 0; }
.section-sm  { padding: 64px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

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

.bg-dark   { background: var(--primary); }
.bg-darker { background: #060d1e; }
.bg-off    { background: var(--off-white); }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 700;
  font-family: var(--font-body-bold);
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--tr);
  z-index: 100;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255,255,255,0.15);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover   { background: var(--accent); transform: translateY(-3px); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body-bold);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}
.breadcrumb a         { color: rgba(255,255,255,0.6); transition: var(--tr); }
.breadcrumb a:hover   { color: var(--white); }
.breadcrumb .bc-now   { color: var(--highlight); }
.breadcrumb .bc-sep   { color: rgba(255,255,255,0.3); }

/* ===== PAGE HERO (Inner Pages) ===== */
.page-hero {
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
  padding-top: var(--navbar-h);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transform: scale(1.08);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,68,0.92) 0%, rgba(10,31,68,0.55) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  max-width: 750px;
  margin-bottom: 12px;
}

.page-hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 18px;
  border-radius: 2px;
}

.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 600px;
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --navbar-h: 70px; }
  .section    { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .container  { padding: 0 18px; }
  .page-hero  { height: 360px; }
  h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .container { padding: 0 14px; }
}
