/* ============================================================
   CDAN — Cosmetic Dentistry Academy of Nigeria Limited
   Global Stylesheet  |  css/styles.css
   Version: 1.0.0  |  March 2026
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --green-dark:  #0a4a2e;
  --green-mid:   #1a7a4a;
  --green-light: #2aaa6a;
  --gold:        #c9a227;
  --gold-light:  #e8c060;
  --gold-pale:   #f5e8b8;
  --white:       #ffffff;
  --off-white:   #fafaf7;
  --text-dark:   #0d1f15;
  --text-mid:    #2d4a38;
  --text-light:  #6b8a76;
  --border:      rgba(0,0,0,0.08);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.05);
  --shadow-md:   0 8px 32px rgba(10,74,46,0.1);
  --shadow-lg:   0 20px 60px rgba(10,74,46,0.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── TYPOGRAPHY UTILITIES ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green-mid); font-weight: 600; margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--gold);
}
.section-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text-dark); margin-bottom: 18px;
}
.section-title em { color: var(--green-mid); font-style: italic; }

/* ── GOLD DIVIDER ── */
.gold-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(201,162,39,0.4);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 110px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img {
  height: 92px; width: 92px; border-radius: 50%;
  object-fit: cover; background: var(--white); padding: 3px;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a {
  color: var(--green-dark); text-decoration: none;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-dark) !important; font-weight: 600 !important;
  padding: 8px 16px; border-radius: 4px;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--green-dark); border-radius: 2px;
  transition: all 0.3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; top: 110px; left: 0; right: 0; z-index: 999;
  background: var(--white);
  border-top: 1px solid rgba(201,162,39,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 24px 5%; flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--green-dark); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s;
}
.mobile-menu a:last-child { color: var(--gold); font-weight: 600; border: none; }
.mobile-menu a:hover { color: var(--gold); }

/* ── PAGE HERO (shared) ── */
.page-hero {
  margin-top: 110px;
  background: linear-gradient(150deg, var(--green-dark) 0%, #0d3322 55%, #051a10 100%);
  padding: 80px 5% 100px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(201,162,39,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(42,170,106,0.1) 0%, transparent 50%);
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,0.15); border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-light); font-size: 0.72rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero-badge::before { content: '\25C6'; font-size: 0.5rem; }
.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 700;
  line-height: 1.1; color: var(--white); margin-bottom: 16px;
}
.page-hero h1 em { color: var(--gold-light); font-style: italic; }
.page-hero p {
  color: rgba(255,255,255,0.7); font-size: 1.05rem;
  line-height: 1.7; max-width: 640px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white); font-weight: 600; font-size: 0.9rem;
  padding: 14px 28px; border-radius: 4px; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-dark); font-weight: 700; font-size: 0.9rem;
  padding: 14px 28px; border-radius: 4px; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(201,162,39,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,162,39,0.5); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(0,0,0,0.14); color: var(--text-mid);
  font-size: 0.9rem; font-weight: 500; padding: 13px 24px; border-radius: 4px;
  background: var(--white); cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--green-mid); color: var(--green-dark); }

/* Use .btn-outline-light on dark/green/coloured backgrounds */
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.4); color: var(--white);
  font-size: 0.9rem; font-weight: 500; padding: 13px 24px; border-radius: 4px;
  background: transparent; cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); }

/* ── FORM FIELDS ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--text-dark); background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.1);
  background: var(--white);
}
textarea { resize: vertical; min-height: 100px; }
label {
  display: block; font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 7px;
}
.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── FOOTER ── */
footer { background: #050e08; padding: 64px 5% 32px; color: rgba(255,255,255,0.6); }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 32px;
}
.footer-brand .f-acronym {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  font-weight: 700; color: var(--gold-light); letter-spacing: 3px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.75; margin-top: 12px; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-brand .f-tagline { font-style: italic; font-size: 0.8rem; color: var(--gold); margin-top: 12px; font-family: 'Cormorant Garamond', serif; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; font-family: 'DM Sans', sans-serif; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 0.85rem; margin-bottom: 8px; line-height: 1.6; }
.footer-contact a { color: var(--gold-light); text-decoration: none; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.3);
}

/* ── MODALS ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,14,8,0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 8px;
  max-width: 560px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 40px 120px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.08); border: none; cursor: pointer;
  font-size: 1rem; color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,0.15); }

/* ── SCROLL ANIMATION UTILITY ── */
.anim-fade {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-fade.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
