/* ---------- City Boyz Pool Cleaning - Base Styles (NY Knicks Theme) ---------- */
:root{
  --knicks-blue: #1D428A;   /* Knicks blue */
  --knicks-orange: #F58426; /* Knicks orange */
  --gray: #E6E6E6;          /* Light gray background */
  --dark-gray: #2C2C2C;     /* Dark text */
  --white: #FFFFFF;         /* White for cards and text */
  --light-blue: #B8D6FF;    /* Accent light blue */
  --offwhite: #F9FAFB;      /* Subtle background tint */
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--dark-gray);
  background: var(--offwhite);
  line-height: 1.6;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 4px solid var(--knicks-orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar img {
  height: clamp(48px, 8vw, 100px);
  width: auto;
}
.navbar .brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--knicks-blue);
  font-size: 1.3rem;
}
.navbar nav {
  margin-left: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.navbar a {
  text-decoration: none;
  color: var(--knicks-blue);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.navbar a:hover {
  background: var(--knicks-orange);
  color: var(--white);
}
.navbar a.active {
  background: var(--knicks-blue);
  color: var(--white);
}

/* Temporarily hide Book button */
.navbar nav a[href="booking.html"] {
  display: none !important;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ---------- Hero Section ---------- */
.hero {
  background: url('images/pool-hero.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 64px 16px;
  text-align: center;
  position: relative;
  z-index: 0; /* base layer */
  min-height: 400px; /* ensures visibility */
}

/* Overlay sits ABOVE the image but BELOW text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(150, 150, 150, 0.35); /* dark overlay for contrast */
  z-index: 1;
  pointer-events: none; /* allows buttons to stay clickable */
}

/* Text stays ABOVE overlay */
.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0 0 8px 0;
  font-size: clamp(28px, 5vw, 44px);
}
.hero p {
  margin: 0 0 20px 0;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--knicks-orange);
  color: var(--white);
  border: none;
  transition: 0.2s;
}
.btn:hover {
  background: var(--knicks-blue);
  color: var(--white);
  box-shadow: 0 0 10px var(--knicks-orange);
}

/* ---------- Cards & Sections ---------- */
.section-title {
  font-size: 28px;
  color: var(--knicks-blue);
  margin: 12px 0 8px;
  border-left: 6px solid var(--knicks-orange);
  padding-left: 10px;
}
.card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(2,8,23,.04);
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width:840px) {
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.table thead th {
  background: var(--knicks-blue);
  color: var(--white);
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--knicks-orange);
  color: var(--white);
  font-weight: 700;
}

/* ---------- Forms ---------- */
form label {
  display: block;
  font-weight: 700;
  margin: 10px 0 6px;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--light-blue);
  border-color: var(--knicks-blue);
}
.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width:720px) {
  .form-row { grid-template-columns: 1fr; }
}
small.help {
  color: #64748b;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 16px;
  background: var(--knicks-blue);
  color: var(--white);
  text-align: center;
}
.site-footer a {
  color: var(--knicks-orange);
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover {
  text-decoration: underline;
}