/* Celeste Govender Inc — logo letterhead palette (#2E3163) */
:root {
  --navy: #2e3163;
  --navy-light: #3d4278;
  --navy-muted: #4f5489;
  --white: #ffffff;
  --off-white: #f6f7fa;
  --silver: #d4d8e4;
  --text: #1c1f3a;
  --text-muted: #5c6078;
  --accent: #c4a962;
  --accent-soft: #e8dcc0;
  --accent-hover: #d4bc7a;
  --success: #0d7a4a;
  --error: #b42318;
  --shadow: 0 4px 24px rgba(46, 49, 99, 0.1);
  --radius: 4px;
  --font-serif: "Cinzel", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max-width: 1120px;
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0;
}

h3 {
  font-size: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
}

.brand {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(340px, 58vw);
  object-fit: contain;
  object-position: left center;
}

/* Fallback text brand (hidden when logo loads) */
.brand-text {
  display: none;
  flex-direction: column;
  color: var(--navy);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--off-white);
  color: var(--navy);
}

.main-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--navy-muted) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 4rem;
}

.hero h1 {
  color: var(--white);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: center;
}

.hero-content p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  aspect-ratio: 4 / 5;
  background: var(--navy-muted);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--navy);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0.5rem auto 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
}

.card h3 {
  margin-top: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonials {
  background: var(--off-white);
}

.testimonial-card {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 2.25rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--silver);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: -0.5rem;
}

.testimonial-quote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
}

.testimonial-author {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--silver);
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-style: normal;
}

.testimonial-author-name::before {
  content: "— ";
  color: var(--text-muted);
  font-weight: 500;
}

/* Trust strip */
.trust-strip {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1.25rem;
}

.trust-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* About layout */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--silver);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-card .profile-meta {
  padding: 1rem 1.25rem;
  border-top: 3px solid var(--navy);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-left: 3px solid var(--silver);
}

.timeline li {
  padding: 0 0 1.25rem 1.25rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--navy);
  border-radius: 50%;
}

/* Forms */
.form-panel {
  max-width: 640px;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--silver);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  font: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--navy-light);
  outline-offset: 1px;
}

.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #e8f5ee;
  border: 1px solid var(--success);
  border-radius: var(--radius);
  color: var(--success);
  margin-bottom: 1rem;
}

.form-success.visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer a {
  color: var(--accent-soft);
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  opacity: 0.85;
  text-align: center;
}

.contact-placeholder {
  font-style: italic;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Page header */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  padding: 2.5rem 1.25rem;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  letter-spacing: 0.04em;
  font-weight: 600;
}

.section-title h2 {
  letter-spacing: 0.03em;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

/* Services detail */
.service-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--silver);
}

.service-block:last-child {
  border-bottom: none;
}

.service-list {
  padding-left: 1.25rem;
}

.service-list li {
  margin-bottom: 0.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow);
}

.contact-placeholder {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  font: inherit;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
}

.checkbox-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.25rem;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.trust-list li {
  background: var(--white);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.timeline-item {
  padding: 0 0 1.25rem 1.25rem;
  margin-left: 0;
  border-left: 3px solid var(--silver);
  position: relative;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 280px;
    margin: 0 auto;
    order: -1;
  }
}

/* FAQ */
.faq-list {
  max-width: 48rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.faq-item summary {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}

/* Legal / POPIA */
.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  color: var(--white);
}

body.has-whatsapp-float {
  padding-bottom: 4.5rem;
}

.form-error {
  display: none;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: var(--error);
  margin-bottom: 1rem;
}

.form-error.visible {
  display: block;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--navy);
    display: none;
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }
}
