/* =============================================
   POLOKWANE SLEEP CENTRE — Global Styles
   Palette from logo: teal #1A8C8C, dark teal #0D5C5C, off-white #F4FAFA, charcoal #1A2B2B
   ============================================= */

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

:root {
  --teal:       #1A8C8C;
  --teal-dark:  #0D5C5C;
  --teal-light: #2AACAC;
  --teal-pale:  #E6F5F5;
  --charcoal:   #1A2B2B;
  --off-white:  #F4FAFA;
  --white:      #FFFFFF;
  --text-body:  #2C3E3E;
  --text-muted: #5A7070;
  --gold:       #C9A84C;
  --border:     #C8E0E0;
  --shadow:     0 4px 24px rgba(13,92,92,0.10);
  --radius:     8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--charcoal);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

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

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--teal-pale);
  box-shadow: 0 2px 16px rgba(13,92,92,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.3px;
}

.nav-logo-text span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-item > a:hover,
.nav-item > a.active {
  background: var(--teal-pale);
  color: var(--teal);
}

.nav-item:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 500;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-body);
  transition: background 0.15s, color 0.15s;
}

.dropdown a:hover {
  background: var(--teal-pale);
  color: var(--teal);
}

.btn-portal {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-portal:hover {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  max-width: 700px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 520px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,92,92,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}

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

.btn-teal-outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 48px;
}

.bg-pale { background: var(--teal-pale); }
.bg-dark { background: var(--charcoal); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-dark p { color: inherit; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,92,92,0.15);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── ICON CARDS ── */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.icon-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.icon-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.icon-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.icon-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ── STAT BAND ── */
.stat-band {
  background: var(--teal);
  color: var(--white);
  padding: 60px 24px;
}

.stat-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  padding: 64px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand img { height: 56px; margin-bottom: 16px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }

.footer-socials { display: flex; gap: 12px; }

.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-contact p {
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.75);
}

.footer-contact p span:first-child { color: var(--teal-light); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 80px 24px;
  color: var(--white);
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 520px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--teal-pale);
  padding: 12px 24px;
  font-size: 0.8rem;
}

.breadcrumb-inner { max-width: 1200px; margin: 0 auto; color: var(--text-muted); }
.breadcrumb-inner a { color: var(--teal); }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--charcoal); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-body);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,140,140,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── ACCORDION ── */
.accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-btn:hover { background: var(--teal-pale); }
.accordion-btn.open { background: var(--teal-pale); color: var(--teal); }

.accordion-icon { font-size: 1.2rem; transition: transform 0.3s; }
.accordion-btn.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.accordion-body.open { display: block; }

/* ── TWO-COL LAYOUTS ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--teal-pale); padding: 16px 0; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; display: none !important; }
  .nav-item:hover .dropdown { display: none !important; }
  .hamburger { display: flex; }
  .section { padding: 60px 20px; }
  .stat-band { padding: 40px 20px; }
  .hero { min-height: 70vh; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .icon-cards { grid-template-columns: 1fr 1fr; }
}

/* ── UTILITIES ── */
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.divider { height: 2px; background: var(--teal-pale); margin: 0; }

/* portal login */
.portal-container {
  max-width: 480px;
  margin: 60px auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(13,92,92,0.12);
  overflow: hidden;
}

.portal-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 40px;
  text-align: center;
  color: var(--white);
}

.portal-header img { height: 60px; margin: 0 auto 16px; filter: brightness(0) invert(1); }
.portal-header h2 { color: var(--white); font-size: 1.5rem; }
.portal-header p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 8px; }

.portal-body { padding: 40px; }

.portal-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
