/* Complete Smile Care – main stylesheet */

:root {
  --purple-dark: #5E266D;
  --purple-medium: #6A3E7D;
  --purple-light: #9A5AAB;
  --purple-bg: #7B4A8C;
  --purple-footer: #3D2350;
  --green-accent: #8CC63F;
  --green-accent-hover: #76AD34;
  --text-dark: #2D2D2D;
  --text-grey: #4A4A4A;
  --white: #FFFFFF;
  --grey-bg: #F5F3F6;
  --star-gold: #F5A623;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: var(--white);
  padding: 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo img {
  height: 140px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  color: var(--purple-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--purple-dark);
}

nav a.active {
  border-bottom: 2px solid var(--purple-dark);
  padding-bottom: 2px;
}

.btn {
  display: inline-block;
  background: var(--green-accent);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--green-accent-hover);
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url('../images/hero-dental-team.jpg') center/cover no-repeat;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245,243,246,0.15) 45%, rgba(248,247,249,0.5) 65%, rgba(252,251,252,0.8) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  max-width: 520px;
  margin-left: auto;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple-dark);
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 17px;
  color: var(--purple-dark);
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-content .btn {
  padding: 16px 38px;
  font-size: 16px;
}

/* Services */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  padding: 32px 24px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.service-card--cleaning {
  background-image: url('../images/service-cleaning-bg.png');
}

.service-card--braces {
  background-image: url('../images/service-braces-bg.png');
}

.service-card--whitening {
  background-image: url('../images/service-whitening-bg.png');
}

.service-card--implants {
  background-image: url('../images/service-implants-bg.png');
}

.service-card h3,
.service-card p,
.service-card a {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.service-card a {
  color: var(--green-accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

.service-card a:hover {
  color: var(--white);
}

/* Junior Patients – sloped green/purple background image; content stays level */
.junior {
  position: relative;
  padding: 0 0 80px;
  overflow: visible;
  background: var(--purple-bg) url('../images/junior-patients-bg.png') 25% center / 110% no-repeat;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  margin-bottom: -1px;
}

.junior::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(123,74,140,0.4) 0%, rgba(123,74,140,0.75) 100%),
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06) 0%, transparent 5%),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.05) 0%, transparent 6%),
    radial-gradient(circle at 45% 70%, rgba(255,255,255,0.06) 0%, transparent 5%),
    radial-gradient(circle at 70% 55%, rgba(255,255,255,0.04) 0%, transparent 6%),
    radial-gradient(circle at 25% 60%, rgba(255,255,255,0.05) 0%, transparent 5%),
    radial-gradient(circle at 90% 75%, rgba(255,255,255,0.04) 0%, transparent 6%);
  pointer-events: none;
  z-index: 1;
}

.junior-slope-wrap {
  position: relative;
  z-index: 2;
  padding-top: 24px;
}

.junior-inner {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.junior-image-wrap {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
}

.junior-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.junior-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.75) 100%);
  border-radius: 12px;
  box-sizing: border-box;
}

.junior-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.junior-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  margin: 0 0 16px 0;
  max-width: none;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.junior-content .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Modern Care */
.modern-care {
  padding: 80px 0;
  background: var(--white);
}

.modern-care-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.modern-care-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.modern-care-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.modern-care-content .icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--grey-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.modern-care-content .icon-wrap svg path,
.modern-care-content .icon-wrap svg circle {
  stroke: var(--purple-dark);
}

.modern-care-content .icon-wrap svg {
  width: 28px;
  height: 28px;
}

.modern-care-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 16px;
}

.modern-care-content p {
  font-size: 15px;
  color: var(--text-grey);
  margin-bottom: 20px;
  line-height: 1.7;
}

.modern-care-content a {
  color: var(--purple-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: var(--white);
}

.testimonials h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 48px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.testimonial-stars {
  color: var(--star-gold);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-grey);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--purple-dark);
}

/* Appointment Form */
.appointment {
  background: var(--purple-bg);
  background-image: linear-gradient(rgba(123,74,140,0.85), rgba(123,74,140,0.9)), url("../images/dental-instruments-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 56px 0;
  position: relative;
}

.appointment-inner {
  max-width: 900px;
  margin: 0 auto;
}

.appointment h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  text-align: center;
}

.appointment-form {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.appointment-form input {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.95);
  font-size: 15px;
  font-family: inherit;
}

.appointment-form input::placeholder {
  color: #666;
}

.appointment-form .btn {
  flex-shrink: 0;
}

/* Footer */
footer {
  background: #2A1638;
  padding: 64px 0 0;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

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

.footer-contact p svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a,
.footer-section span {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-icons a {
  color: var(--white);
  opacity: 0.9;
}

.social-icons a:hover {
  opacity: 1;
}

.social-icons svg {
  width: 24px;
  height: 24px;
}

/* SVG Icons */
.tooth-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
