/* ============================================================
   GLOBAL.CSS — GR Plumbing
   Variables · Reset · Typography · Utilities
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --primary:        #0A0A0A;
  --secondary:      #1A1A1A;
  --accent:         #C81B1B;
  --accent-light:   #E53535;
  --accent-dark:    #A01414;
  --danger-red:     #C81B1B;
  --danger-light:   #E53535;
  --text-light:     #F5F5F5;
  --text-muted:     #9CA3AF;
  --text-dark:      #1F2937;
  --bg-section:     #111111;
  --bg-light:       #F9F9F9;
  --bg-white:       #FFFFFF;
  --border:         #2A2A2A;
  --border-light:   #E5E7EB;
  --white:          #FFFFFF;

  --gradient-gold:  linear-gradient(135deg, #C81B1B 0%, #E53535 100%);
  --gradient-dark:  linear-gradient(135deg, #0A0A0A 0%, #1C1C1C 100%);
  --gradient-hero:  linear-gradient(160deg, rgba(0,0,0,0.85) 0%, rgba(10,10,10,0.65) 100%);

  --shadow-gold:    0 8px 32px rgba(200, 26, 26, 0.30);
  --shadow-dark:    0 20px 60px rgba(0, 0, 0, 0.40);
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-hover:   0 12px 40px rgba(0, 0, 0, 0.18);

  --font-head:      'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-accent:    'Montserrat', sans-serif;

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --radius-pill:    999px;

  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container:      1200px;
  --section-py:     96px;
  --section-py-sm:  64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ─── Skip Nav ───────────────────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 1rem; }

/* ─── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ─── Section Spacing ────────────────────────────────────── */
section { position: relative; }

.section-py   { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section-py-sm{ padding-top: var(--section-py-sm); padding-bottom: var(--section-py-sm); }

@media (max-width: 768px) {
  :root { --section-py: 64px; --section-py-sm: 48px; }
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { font-size: 1rem; line-height: 1.75; }
p + p { margin-top: 1rem; }

.lead { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* ─── Section Header ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 620px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }
.section-header.left { text-align: left; }
.section-header.left p { margin: 0; }

/* ─── Eyebrow / Pill Badge ───────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 26, 26, 0.10);
  border: 1px solid rgba(200, 26, 26, 0.30);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.eyebrow.dark {
  background: rgba(200, 26, 26, 0.15);
  border-color: rgba(200, 26, 26, 0.40);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-gold {
  background: var(--gradient-gold);
  color: var(--primary);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(200, 26, 26, 0.45);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-gold:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-red {
  background: var(--danger-red);
  color: var(--white);
  border-color: transparent;
}
.btn-red:hover {
  background: var(--danger-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185,28,28,0.40);
}

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

.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* Arrow icon inside button */
.btn-arrow::after { content: ' →'; }

/* ─── Gold Divider Line ───────────────────────────────────── */
.gold-line {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: var(--radius-pill);
  margin: 16px 0 24px;
}
.gold-line.center { margin: 16px auto 24px; }

/* ─── Dark section text overrides ───────────────────────── */
.dark-section {
  background: var(--bg-section);
  color: var(--text-light);
}
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 { color: var(--text-light); }
.dark-section p, .dark-section .lead { color: var(--text-muted); }
.dark-section .section-header p { color: var(--text-muted); }

/* ─── Wave Dividers ──────────────────────────────────────── */
.wave-top, .wave-bottom {
  position: absolute;
  left: 0; right: 0;
  overflow: hidden;
  line-height: 0;
}
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.wave-top svg, .wave-bottom svg { display: block; width: 100%; height: 60px; }

/* ─── Grid utilities ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

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

/* ─── Flex utilities ─────────────────────────────────────── */
.flex       { display: flex; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.flex-between{display: flex; align-items: center; justify-content: space-between; }
.flex-col   { flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* ─── Text helpers ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold   { color: var(--accent); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }
.text-red    { color: var(--danger-red); }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }
.font-accent { font-family: var(--font-accent); }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ─── Inner Page Hero ────────────────────────────────────── */
.page-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  position: relative;
  padding: 120px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://cdn.prod.website-files.com/6914d404a3203fae35a12b0e/6914d404a3203fae35a12ce8_pexels-heyho-7587860.webp') center/cover no-repeat;
  opacity: 0.18;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,0.75); max-width: 580px; }

/* ─── Tag Cloud ──────────────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: var(--transition);
  cursor: default;
}
.tag:hover { background: var(--accent); color: var(--primary); }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── Selection ──────────────────────────────────────────── */
::selection { background: var(--accent); color: var(--primary); }

/* ─── Focus visible ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  header, footer, .sticky-mobile-btns { display: none !important; }
}
