/* ══════════════════════════════════════════════════════════════
   Capital Septic Supply — SHARED Design System
   Source: shared.css  |  Version: 1.0.1  |  2026-05-18
   ──────────────────────────────────────────────────────────────
   This file contains Design Tokens, reset, typography and
   component primitives shared across Desktop and Mobile.
   NEVER put device-specific layout here.
   ══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Single source of truth (Section 17 S17)
   ═══════════════════════════════════════════════════════════ */
:root {
  /* ── Brand Colors ── */
  --brand-red:        #C4123E;
  --brand-red-hover:  #A01530;
  --brand-red-light:  #FEF2F5;
  --brand-blue:       #243146;
  --brand-blue-dark:  #10233D;
  --brand-blue-btn:   #243146;
  --brand-blue-btn-h: #1a2a3e;

  /* ── Surface Colors (Liquid Glass 2.0) ── */
  --page-bg:          #F4F7FA;
  --header-bg:        rgba(255, 255, 255, 0.78);
  --hero-outer-bg:    rgba(255, 255, 255, 0.45);
  --hero-inner-bg:    rgba(255, 255, 255, 0.68);
  --card-bg:          rgba(255, 255, 255, 0.62);
  --footer-bg:        var(--brand-red);

  /* ── Text Colors ── */
  --text-primary:     #4B5D73;
  --text-white:       #ffffff;
  --text-dark:        #1a1a2e;

  /* ── Typography ── */
  --font-primary:     "Inter", "Montserrat", Arial, sans-serif;

  /* ── Border Radii (Liquid Glass — larger, softer) ── */
  --radius-header:    22px;
  --radius-outer:     28px;
  --radius-hero:      34px;
  --radius-footer:    22px;
  --radius-card:      32px;
  --radius-button:    12px;
  --radius-pill:      999px;

  /* ── Spacing ── */
  --page-margin:      24px;

  /* ── Transitions ── */
  --transition-fast:  0.2s ease;
  --transition-mid:   0.3s ease;

  /* ── Liquid Glass 2.0 Tokens (INTENSIFIED) ── */
  --glass-border:        rgba(255, 255, 255, 0.88);
  --glass-border-subtle: rgba(255, 255, 255, 0.55);
  --glass-blur:          24px;
  --glass-blur-heavy:    36px;
  --glass-shadow:        0 24px 68px rgba(16, 32, 55, 0.18),
                         0 4px 16px rgba(16, 32, 55, 0.06);
  --glass-shadow-sm:     0 16px 42px rgba(16, 32, 55, 0.14);
  --glass-shadow-hover:  0 28px 64px rgba(16, 32, 55, 0.22),
                         0 6px 20px rgba(16, 32, 55, 0.08);
  --glass-shadow-btn:    0 14px 32px rgba(36, 49, 70, 0.28);

  /* ── Legacy Opacity Tokens (footer uses these) ── */
  --border-subtle:    rgba(255, 255, 255, 0.12);
  --border-social:    rgba(255, 255, 255, 0.22);
  --shadow-light:     rgba(0, 0, 0, 0.1);
}


/* ═══════════════════════════════════════════════════════════
   RESET — Global normalization
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 18, 62, 0.14), transparent 38%),
    radial-gradient(circle at 12% 82%, rgba(36, 49, 70, 0.16), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(135deg, #f7f9fc 0%, #e8edf4 100%);
  background-attachment: fixed;
  font-family: var(--font-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* ═══════════════════════════════════════════════════════════
   SHARED COMPONENT PRIMITIVES
   Styles that are identical across desktop and mobile
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero Label Badge ─── */
.hero-label {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(200, 205, 215, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(16, 32, 55, 0.14),
              0 2px 6px rgba(16, 32, 55, 0.06);
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

/* ─── Hero Buttons (base) ─── */
.hero-button {
  height: 66px;
  padding: 0 30px;
  border-radius: var(--radius-button);
  border: none;
  font-size: 17px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}

.hero-button:active {
  transform: translateY(0);
}

.hero-button.primary {
  background: var(--brand-blue-btn);
  color: var(--text-white);
  box-shadow: var(--glass-shadow-btn);
}

.hero-button.primary:hover {
  background: var(--brand-blue-btn-h);
}

.hero-button.secondary {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(200, 205, 215, 0.50);
  color: var(--brand-red);
  box-shadow: 0 8px 28px rgba(16, 32, 55, 0.14),
              0 2px 8px rgba(16, 32, 55, 0.05);
}

.hero-button.secondary:hover {
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(16, 32, 55, 0.18),
              0 3px 10px rgba(16, 32, 55, 0.06);
}

/* ═══════════════════════════════════════════════════════════
   INNER PAGES — Shared Base Styles (Liquid Glass 2.0)
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  text-align: center;
  padding: 60px 32px 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -200px;
  top: -200px;
  background: radial-gradient(circle, rgba(196, 18, 62, 0.10), transparent 55%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(36, 49, 70, 0.08), transparent 55%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.page-hero .hero-label {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 900;
  color: var(--brand-blue);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.page-hero p {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--text-primary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.85;
}

/* ─── Content Section (glass wrapper) ─── */
.content-section {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  border-radius: var(--radius-outer);
  box-shadow: 0 24px 68px rgba(16, 32, 55, 0.12),
              0 4px 16px rgba(16, 32, 55, 0.04);
  padding: 48px 44px;
  margin: 0 0 20px;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 0 0 32px;
  letter-spacing: -0.3px;
}

/* ─── Generic Glass Card (service, info, referral) ─── */
.service-card,
.info-block,
.referral-card,
.contact-info-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1.5px solid rgba(200, 205, 215, 0.45);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(16, 32, 55, 0.10),
              0 2px 8px rgba(16, 32, 55, 0.04);
  padding: 32px 28px;
  transition: transform var(--transition-mid),
              box-shadow var(--transition-mid),
              border-color var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.info-block::before,
.referral-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.service-card:hover,
.info-block:hover,
.referral-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(196, 18, 62, 0.25);
}

.service-card:hover::before,
.info-block:hover::before,
.referral-card:hover::before {
  opacity: 1;
}

.service-card h3,
.info-block h3,
.referral-card h3,
.contact-info-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 16px 0 10px;
}

.service-card p,
.info-block p,
.referral-card p {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  opacity: 0.85;
}

.info-block ul {
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.8;
}

.info-block ul li::marker {
  color: var(--brand-red);
}

/* ─── Icon Circles (service-icon, ref-icon, info-icon) ─── */
.service-icon,
.ref-icon,
.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196, 18, 62, 0.10), rgba(196, 18, 62, 0.04));
  border: 1.5px solid rgba(196, 18, 62, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--brand-red);
  transition: transform var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast);
}

.service-card:hover .service-icon,
.referral-card:hover .ref-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(196, 18, 62, 0.18), rgba(196, 18, 62, 0.08));
  box-shadow: 0 6px 20px rgba(196, 18, 62, 0.18);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196, 18, 62, 0.12), rgba(196, 18, 62, 0.04));
  border: 1.5px solid rgba(196, 18, 62, 0.15);
  flex-shrink: 0;
}

/* ─── CTA Banner (Services + OSSF) ─── */
.cta-banner {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #1a2538 100%);
  border-radius: var(--radius-card);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 52px rgba(36, 49, 70, 0.28),
              0 4px 14px rgba(36, 49, 70, 0.10);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -60px;
  top: -100px;
  background: radial-gradient(circle, rgba(196, 18, 62, 0.25), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 6px;
}

.cta-banner p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.cta-banner .hero-button {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ─── OSSF CTA Enhanced ─── */
.ossf-cta {
  gap: 24px;
}

.cta-star {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cta-copy {
  flex: 1;
}

.cta-watermark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-watermark img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.12;
}

.cta-outlined-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform 0.15s ease;
}

.cta-outlined-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.90);
  transform: translateY(-2px);
}

/* ─── Contact Form ─── */
.contact-form {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(16, 32, 55, 0.10),
              0 2px 8px rgba(16, 32, 55, 0.04);
  padding: 36px 32px;
}

.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(200, 205, 215, 0.50);
  border-radius: 14px;
  outline: none;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(196, 18, 62, 0.10),
              0 4px 16px rgba(16, 32, 55, 0.08);
  background: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(75, 93, 115, 0.45);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .input-error {
  border-color: var(--brand-red);
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--brand-red);
  margin-top: 4px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 22px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 36px;
  background: linear-gradient(135deg, var(--brand-red), #a00e33);
  color: var(--text-white);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--glass-shadow-btn);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              filter var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(196, 18, 62, 0.32);
  filter: brightness(1.06);
}

/* ─── Contact Info Card ─── */
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 22px;
}

.contact-info-card h4 {
  margin: 0 0 4px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  text-decoration: none;
}

.contact-info-card a {
  color: var(--brand-red);
  font-weight: 700;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* ─── Flash Messages ─── */
.flash-message {
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.flash-message.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.30);
  color: #065f46;
}

.flash-message.error {
  background: rgba(196, 18, 62, 0.10);
  border: 1.5px solid rgba(196, 18, 62, 0.25);
  color: var(--brand-red);
}

/* ─── Partner Spotlight (Referrals) ─── */
.partner-spotlight {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1.5px solid rgba(200, 205, 215, 0.45);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
  padding: 36px 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.partner-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 0 0 8px;
}

.partner-info p {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
}

.partner-contact {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-call,
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.btn-call {
  background: linear-gradient(135deg, var(--brand-red), #a00e33);
  color: var(--text-white);
  box-shadow: 0 8px 24px rgba(196, 18, 62, 0.22);
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(196, 18, 62, 0.30);
}

.btn-email {
  background: rgba(255, 255, 255, 0.90);
  color: var(--brand-blue);
  border: 1.5px solid rgba(200, 205, 215, 0.50);
  box-shadow: 0 6px 18px rgba(16, 32, 55, 0.10);
}

.btn-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 32, 55, 0.16);
}


/* ─── Footer Social Icons (base) ─── */
.footer-social {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--border-social);
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.location-hole {
  fill: #243146; /* Matches the SVG dark blue background */
  transition: fill var(--transition-fast);
}

.footer-social:hover {
  background: var(--text-white);
  border-color: var(--text-white);
  color: #243146;
}

.footer-social:hover .location-hole {
  fill: var(--text-white);
}

/* ─── Footer Link Bullets ─── */
.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  transition: opacity var(--transition-fast);
}

.footer-links a::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32);
  display: inline-block;
  flex: 0 0 28px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  opacity: 0.85;
}

/* ─── Footer Contact Items ─── */
.footer-icon {
  color: var(--brand-red);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  padding-top: 3px;
}

.footer-icon svg {
  width: 24px;
  height: 24px;
}

/* ─── Footer Bottom Bar ─── */
.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
