/* =============================================
   BROOKSIDE PROFESSIONAL SERVICES - STYLESHEET
   ============================================= */

:root {
  --navy: #1a2b4a;
  --teal: #2a9d8f;
  --teal-light: rgba(42, 157, 143, 0.1);
  --light-grey: #f5f7fa;
  --slate: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #238a7d; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #142038; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; display: block; }

/* ---- NAVIGATION ---- */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active { border-bottom: 2px solid var(--teal); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  background: var(--navy);
  padding: 12px 0 16px;
}
.mobile-menu a {
  display: block;
  padding: 10px 24px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: all 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: #fff;
  background: rgba(42,157,143,0.15);
}
.mobile-menu.open { display: block; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 72px 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { font-size: 1.2rem; max-width: 680px; margin: 0 auto; opacity: 0.9; }

/* ---- SECTIONS ---- */
.section { padding: 72px 0; }
.section-light { background: var(--light-grey); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #fff; }
.section-gradient { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section-header p { color: var(--slate); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-navy .section-header h2, .section-gradient .section-header h2 { color: #fff; }
.section-navy .section-header p, .section-gradient .section-header p { color: rgba(255,255,255,0.85); }

/* ---- CARDS ---- */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 32px; height: 32px; stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---- HERO SECTION (homepage) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1570126618953-d437176e8c79?w=1600&q=80');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,43,74,0.88), rgba(42,157,143,0.75));
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 0 24px; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.3rem); opacity: 0.92; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- WHO WE HELP (gradient cards) ---- */
.card-gradient {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-gradient:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-gradient .card-icon { background: rgba(255,255,255,0.15); }
.card-gradient .card-icon svg { stroke: #fff; }
.card-gradient h3 { color: #fff; }
.card-gradient p { color: rgba(255,255,255,0.85); }

/* ---- SERVICE CARDS (split layout) ---- */
.service-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  transition: box-shadow 0.25s;
  margin-bottom: 28px;
}
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-card-left {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.service-card-left .icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card-left .icon-circle svg { width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card-left h3 { font-size: 1.2rem; font-weight: 700; }
.service-card-right { padding: 36px; flex: 1; }
.service-card-right p { color: var(--slate); font-size: 1.05rem; margin-bottom: 20px; }
.service-card-right h4 { color: var(--navy); font-weight: 700; margin-bottom: 12px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--slate); }
.feature-list li svg { width: 18px; height: 18px; stroke: var(--teal); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 3px; }

/* ---- STEP CARDS ---- */
.step-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  margin-bottom: 28px;
  transition: box-shadow 0.25s;
}
.step-card:hover { box-shadow: var(--shadow-lg); }
.step-card-left {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.step-number { font-size: 4rem; font-weight: 900; opacity: 0.4; line-height: 1; margin-bottom: 12px; }
.step-card-left .icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card-left .icon-circle svg { width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-card-left h3 { font-size: 1.2rem; font-weight: 700; }
.step-card-right { padding: 36px; flex: 1; }
.step-card-right p { color: var(--slate); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.7; }

.step-arrow { display: flex; justify-content: center; margin: 8px 0 16px; }
.step-arrow svg { width: 40px; height: 40px; stroke: var(--teal); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- FAQ ACCORDION ---- */
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq-item:hover { box-shadow: var(--shadow-lg); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
}
.faq-question h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.faq-question .chevron {
  width: 24px; height: 24px;
  stroke: var(--teal); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p { padding: 0 24px 20px; color: var(--slate); line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ---- CONTACT / FORMS ---- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 0; }
.contact-card { text-align: center; }
.contact-card .card-icon { margin: 0 auto 16px; }
.contact-card h3 { color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.contact-card p { color: var(--slate); }

.form-box { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 40px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* Time slot grid */
.time-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.time-slot {
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-size: 0.95rem;
}
.time-slot:hover { border-color: var(--teal); }
.time-slot.selected { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Mini calendar */
.mini-calendar { width: 100%; border: 2px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.cal-header { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.cal-header button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; padding: 4px 8px; border-radius: 4px; transition: background 0.2s; }
.cal-header button:hover { background: rgba(255,255,255,0.15); }
.cal-header span { font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); background: #fff; }
.cal-day-name { text-align: center; padding: 8px 4px; font-size: 0.75rem; font-weight: 700; color: var(--slate); text-transform: uppercase; }
.cal-day {
  text-align: center; padding: 8px 4px; font-size: 0.9rem;
  cursor: pointer; transition: background 0.15s; border-radius: 6px; margin: 2px;
}
.cal-day:hover:not(.empty):not(.past) { background: var(--teal-light); }
.cal-day.today { font-weight: 700; color: var(--teal); }
.cal-day.selected { background: var(--teal); color: #fff; border-radius: 6px; }
.cal-day.empty, .cal-day.past { color: #ccc; cursor: default; }

.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 28px; }

/* ---- NOTICE BOX ---- */
.notice-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 24px 28px;
  max-width: 860px;
  margin: 0 auto;
}
.notice-box h3 { color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.notice-box p { color: var(--slate); line-height: 1.75; }

.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.highlight-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.highlight-box p { color: rgba(255,255,255,0.88); line-height: 1.7; }

.timeline-highlight {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 20px 24px;
}
.timeline-highlight p { color: var(--navy); font-weight: 600; font-size: 1.05rem; }

/* ---- CTA SECTION ---- */
.cta-section { text-align: center; }
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 32px; opacity: 0.9; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: #fff;
  padding: 52px 0 32px;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 1.05rem; }
.footer-logo-icon { width: 38px; height: 38px; background: var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; }
footer p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.6; }
.footer-links h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-links ul a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer-disclaimer { margin-bottom: 10px; }

/* ---- ABOUT VALUES ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }

/* ---- ALERTS ---- */
.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; display: none; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; }
  .service-card-left { width: 100%; padding: 28px; }
  .step-card { flex-direction: column; }
  .step-card-left { width: 100%; padding: 28px; }
  .booking-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-logo span { display: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-box { padding: 24px; }
}
