/* ===========================================================
   ABATHEMBU FUNERAL SERVICES - STYLES
   Theme: Navy + Gold + Cream (Dignified, Elegant)
   =========================================================== */

:root {
  --navy: #0a1929;
  --navy-2: #0d1b2a;
  --navy-3: #1b2a3f;
  --gold: #c9a961;
  --gold-bright: #d4af37;
  --gold-soft: #e8d49a;
  --cream: #f8f5ef;
  --cream-2: #fbf9f3;
  --white: #ffffff;
  --text: #2c3e50;
  --text-soft: #5a6b7d;
  --muted: #8a98a8;
  --border: rgba(201, 169, 97, 0.25);
  --shadow-sm: 0 2px 8px rgba(10, 25, 41, 0.08);
  --shadow: 0 8px 24px rgba(10, 25, 41, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 25, 41, 0.25);
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans: 'Lora', Georgia, 'Times New Roman', serif;
  --container: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
  background: var(--cream-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 1px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold-bright); }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-gold {
  background: var(--gold-bright);
  color: var(--navy);
  border-color: var(--gold-bright);
}
.btn-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold-bright);
}
.btn-outline:hover {
  background: var(--gold-bright);
  color: var(--navy);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-whatsapp .icon { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ===========================================================
   TOP BAR
   =========================================================== */
.topbar {
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info a { color: var(--gold-soft); display: inline-flex; align-items: center; gap: 6px; }
.topbar-info a:hover { color: var(--gold-bright); }
.topbar-info .icon { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-tag { color: var(--gold-soft); font-style: italic; }

/* ===========================================================
   HEADER / NAVIGATION
   =========================================================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(10, 25, 41, 0.97);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 72px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}
.brand:hover .brand-logo { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-bright);
  transition: width var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(201, 169, 97, 0.08), transparent 50%),
    linear-gradient(135deg, #0a1929 0%, #0d1b2a 50%, #1b2a3f 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 30%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.05;
}
.hero-lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-note { color: var(--gold-soft); font-family: var(--serif); font-size: 18px; }

.hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold-bright);
}
.hero-image img { width: 100%; height: 540px; object-fit: cover; object-position: center top; }
.hero-image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10, 25, 41, 0.9));
  color: var(--gold-soft);
  padding: 30px 24px 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  text-align: center;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--gold-bright);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.scroll-down span {
  display: block;
  width: 3px; height: 8px;
  background: var(--gold-bright);
  border-radius: 2px;
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ===========================================================
   SECTIONS
   =========================================================== */
.section {
  padding: 100px 0;
  background: var(--cream-2);
}
.section-alt { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-sub {
  font-style: italic;
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: -8px;
  margin-bottom: 24px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}
.divider span {
  width: 60px; height: 1px;
  background: var(--gold-bright);
}
.divider em {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 400;
}

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p { margin-bottom: 18px; font-size: 16px; color: var(--text-soft); }
.about-text strong { color: var(--navy); }

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-bright); }
.value-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.value-icon svg { width: 28px; height: 28px; }
.value h4 { font-size: 18px; margin-bottom: 6px; }
.value p { font-size: 13px; color: var(--text-soft); margin: 0; }

/* ===========================================================
   SERVICES
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-bright);
}
.service-card:hover::after { transform: scaleX(1); }
.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-image img { transform: scale(1.07); }
.service-body {
  padding: 22px 24px 26px;
  text-align: center;
}
.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* ===========================================================
   WHY US
   =========================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-card:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.why-card:hover h3 { color: var(--gold-bright); }
.why-card:hover p { color: rgba(255, 255, 255, 0.85); }
.why-icon {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy);
  display: grid;
  place-items: center;
}
.why-icon svg { width: 34px; height: 34px; }
.why-card h3 { font-size: 18px; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-soft); }

/* ===========================================================
   GALLERY & TESTIMONIALS
   =========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 70px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(10, 25, 41, 0.9));
  color: var(--white);
  font-family: var(--serif);
  font-size: 16px;
  text-align: center;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--gold-bright);
  transition: transform var(--transition);
}
.gallery-placeholder svg { width: 70px; height: 70px; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.1); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--cream);
  border-left: 4px solid var(--gold-bright);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px; left: 20px;
  font-family: var(--serif);
  font-size: 80px;
  color: var(--gold-bright);
  line-height: 1;
}
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}
.author {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--gold-bright); box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-soft); margin-bottom: 4px; }
.contact-card p:last-child { margin-bottom: 0; }
.big-link {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}
.big-link:hover { color: var(--gold-bright); }
.muted { font-size: 12px !important; color: var(--muted) !important; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-size: 26px;
  margin-bottom: 6px;
}
.form-note {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 24px;
  font-style: italic;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--cream-2);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-status.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold-bright);
  box-shadow: var(--shadow);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h4 {
  color: var(--gold-bright);
  font-size: 20px;
  margin-bottom: 18px;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-quote { color: var(--gold-soft); font-family: var(--serif); font-size: 18px; }
.footer p { font-size: 14px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.footer p .icon { width: 16px; height: 16px; color: var(--gold-bright); flex-shrink: 0; }
.footer a:hover { color: var(--gold-bright); }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  background: var(--navy-2);
  padding: 20px 0;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}
.footer-bottom p {
  text-align: center;
  font-size: 13px;
  color: var(--gold-soft);
  margin: 0;
}

/* ===========================================================
   FLOATING WHATSAPP
   =========================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 99;
  transition: all var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  background: #1ebe5d;
}
.whatsapp-label {
  position: absolute;
  right: 70px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-label { opacity: 1; }
@keyframes pulse {
  0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
}

/* ===========================================================
   REVEAL ANIMATIONS
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image img { height: 400px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: var(--shadow);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a.btn { margin: 16px 24px; }
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 80px; }
  .values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }
  .whatsapp-label { display: none; }
  .brand-logo { height: 56px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-content h1 { font-size: 2.2rem; }
  .section-head h2 { font-size: 1.8rem; }
  .contact-form { padding: 22px 18px; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}