/* =========================================
   SALFORD DENTAL CLINIC — STYLESHEET
   Theme: Clean White + Teal/Blue
   ========================================= */

/* ---- CSS Variables ---- */
:root {
  --teal:        #0a9e8e;
  --teal-dark:   #077a6d;
  --teal-light:  #e6f7f5;
  --blue:        #1a6fbf;
  --blue-light:  #e8f2fc;
  --navy:        #0d2b45;
  --grey-1:      #f8fafc;
  --grey-2:      #f1f5f9;
  --grey-3:      #e2e8f0;
  --grey-4:      #94a3b8;
  --text-dark:   #1a2333;
  --text-body:   #475569;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.14);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --transition:  0.25s ease;
  --font-head:   'Playfair Display', serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ---- Utility ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 90px 0; }

.section-label {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-label.light {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-title.light { color: var(--white); }

.section-desc {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 580px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-desc { margin: 0 auto; }

.accent { color: var(--teal); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 0.7rem 1.6rem;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,158,142,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
  padding: 0.7rem 1.6rem;
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.65rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
}

.btn-sm { padding: 0.48rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.7rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-family: var(--font-head); font-size: 1rem; color: var(--text-dark); font-weight: 700; }
.logo-sub { font-size: 0.68rem; color: var(--teal); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.6rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.mobile-link:hover { color: var(--teal); background: var(--teal-light); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0faf8 0%, #e8f4f8 40%, #f8fafc 100%);
  overflow: hidden;
  padding-top: 72px;
}

/* Subtle background pattern */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(10,158,142,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26,111,191,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 1.5rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--teal-light);
  animation: fadeUp 0.6s ease forwards;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 540px;
  margin-bottom: 2.2rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeUp 0.7s 0.4s ease both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadeUp 0.7s 0.5s ease both;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--text-dark);
  font-weight: 700;
}
.stat-label { font-size: 0.78rem; color: var(--grey-4); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--grey-3); }

/* Floating hero cards */
.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  animation: float 4s ease-in-out infinite;
}
.hc-icon { font-size: 1.3rem; }
.card-1 { right: 8%; top: 25%; animation-delay: 0s; }
.card-2 { right: 12%; bottom: 28%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== ABOUT SECTION ===== */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--blue-light) 100%);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}
.about-img-placeholder .big-icon { font-size: 5rem; }
.about-img-placeholder p { font-weight: 600; color: var(--teal-dark); font-size: 1rem; }

.about-badge-wrap {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
}
.about-badge {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.ab-num { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; }
.ab-label { font-size: 0.72rem; font-weight: 500; opacity: 0.9; line-height: 1.3; }

.about-para {
  margin-bottom: 1rem;
  font-size: 0.97rem;
  color: var(--text-body);
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.8rem;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--grey-1);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid var(--grey-3);
}
.pillar-icon { font-size: 1.2rem; }

/* ===== SERVICES SECTION ===== */
.services { background: var(--grey-1); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  border: 1px solid var(--grey-3);
  transition: all var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}

.sc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.sc-icon-wrap.teal { background: var(--teal-light); }
.sc-icon-wrap.blue { background: var(--blue-light); }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.service-card p { font-size: 0.85rem; color: var(--text-body); line-height: 1.6; }

/* ===== WHY CHOOSE US ===== */
.why-us { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--grey-1);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  border: 1px solid var(--grey-3);
  transition: all var(--transition);
}
.why-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.why-card p { font-size: 0.88rem; color: var(--text-body); }

/* ===== APPOINTMENT SECTION ===== */
.appointment {
  background: linear-gradient(135deg, var(--navy) 0%, #0f4d6e 60%, #077a6d 100%);
  position: relative;
  overflow: hidden;
}
.appointment::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.appt-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.appt-info {
  color: var(--white);
  padding-top: 0.5rem;
}

.appt-desc {
  font-size: 0.97rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.appt-contact-snippets { display: flex; flex-direction: column; gap: 1rem; }
.acs {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.acs-icon { font-size: 1.3rem; }
.acs strong { display: block; color: var(--white); font-size: 0.88rem; }
.acs p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 0.1rem; }

/* ---- Form ---- */
.appt-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.appt-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}
.req { color: var(--teal); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--grey-1);
  border: 1.5px solid var(--grey-3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
}
.form-group textarea { resize: vertical; min-height: 80px; }

.field-error {
  font-size: 0.75rem;
  color: #e53e3e;
  min-height: 1rem;
}

/* Success Message */
.form-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.form-success p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
  background: var(--grey-2);
  padding: 2.5rem 0;
  border-top: 2px dashed var(--grey-3);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header h3 {
  font-family: var(--font-head);
  color: var(--text-dark);
  font-size: 1.2rem;
}
.admin-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--grey-3);
  color: var(--text-body);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--grey-1); }

/* Admin Toggle Button */
.admin-toggle-wrap {
  text-align: center;
  padding: 1.2rem 0;
  background: var(--grey-1);
  border-top: 1px solid var(--grey-3);
}
.admin-toggle-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--grey-4);
  background: none;
  border: 1px solid var(--grey-3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.admin-toggle-btn:hover { color: var(--text-dark); border-color: var(--grey-4); }

/* ===== CONTACT SECTION ===== */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--grey-1);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-card strong { display: block; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.contact-card p, .contact-card a {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}
.contact-card a:hover { color: var(--teal); }

.map-wrap {
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-3);
  background: var(--grey-2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem 1.5rem 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-brand .logo-icon { font-size: 2rem; }
.footer-name { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); font-weight: 700; display: block; }
.footer-subname { font-size: 0.75rem; color: var(--teal); display: block; }
.footer-brand-desc { font-size: 0.83rem; margin-top: 0.5rem; line-height: 1.6; }

.footer-links-group h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-group li { font-size: 0.85rem; }
.footer-links-group a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-links-group a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.3rem 1.5rem;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-note { color: rgba(255,255,255,0.5); }

/* ===== SCROLL-TO-TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); background: var(--teal-dark); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */

/* Large tablets */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .appt-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 260px; }
  .hero-card { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .section-pad { padding: 60px 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-actions .btn-outline, .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }

  .hero-inner { padding: 60px 1.5rem; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .appt-form-wrap { padding: 1.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem 1.5rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .about-pillars { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
}
