:root {
  /* Blended Palette from Fluid Pool Designs & Aquatic Infrastructure Logos */
  --navy-deep: #0B1354;
  --blue-royal: #0A4D9C;
  --blue-aqua: #0095D9;
  --red-accent: #E61E14;
  --amber-gold: #F7A61C;
  
  --bg-light: #F4F7FA;
  --bg-white: #FFFFFF;
  --text-dark: #141C2B;
  --text-muted: #526075;
  --border-light: #DCE4EE;
  --shadow-sm: 0 4px 12px rgba(11, 19, 84, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 19, 84, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Typography & Section Headers */
.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-aqua);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue-royal);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--amber-gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: #e09210;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--bg-white);
  color: var(--bg-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-white);
  color: var(--navy-deep);
}

/* Top Bar & Navigation */
.top-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.navbar {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-deep);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-aqua);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-royal);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red-accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--red-accent);
  color: var(--bg-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: #c5170e;
}

.nav-cta.active::after {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--navy-deep);
  cursor: pointer;
}

/* Page Header Banner (Subpages) */
.page-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue-royal) 100%);
  color: var(--bg-white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-aqua), var(--amber-gold), var(--red-accent));
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-banner p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 65px;
}

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

.footer-col h4 {
  color: var(--bg-white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--amber-gold);
}

.footer-col p {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--amber-gold);
  padding-left: 4px;
}

.reg-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--blue-aqua);
  font-size: 0.8rem;
  color: #fff;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

.developer-credit a {
  color: var(--amber-gold);
  font-weight: 700;
}

.developer-credit a:hover {
  text-decoration: underline;
}

/* Responsive Navigation & Footer */
@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 5%;
    gap: 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}