@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-sky-white: #F7FAFC;
  --text-denim-blue: #3B6E8F;
  --text-denim-dark: #234358;
  --text-denim-light: #EBF1F5;
  --accent-coral: #E8927C;
  --accent-coral-hover: #D87B64;
  --accent-coral-light: #FDF1EE;
  --warm-grey: #B8B0A8;
  --warm-grey-light: #F0EEEB;
  --warm-grey-dark: #7A726A;
  --white: #FFFFFF;
  
  /* Borders & Shadows */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px rgba(59, 110, 143, 0.04);
  --shadow-md: 0 10px 25px rgba(59, 110, 143, 0.08);
  --shadow-lg: 0 20px 40px rgba(59, 110, 143, 0.12);
  --shadow-accent: 0 15px 30px rgba(232, 146, 124, 0.2);
}

/* General Resets & Defaults */
body {
  background-color: var(--bg-sky-white);
  color: #3C4858;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-denim-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

/* Navigation Bar */
.navbar {
  background-color: rgba(247, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-grey-light);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-denim-blue) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand span {
  color: var(--accent-coral);
}

.nav-link {
  color: #4A5568 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-denim-blue) !important;
  background-color: var(--text-denim-light);
}

.dropdown-menu {
  border: 1px solid var(--warm-grey-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 0;
  background-color: var(--white);
}

.dropdown-item {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  color: #4A5568;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background-color: var(--text-denim-light);
  color: var(--text-denim-blue);
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--accent-coral);
  color: var(--white);
  border: 2px solid var(--accent-coral);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-accent);
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background-color: var(--accent-coral-hover);
  border-color: var(--accent-coral-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(232, 146, 124, 0.3);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--text-denim-blue);
  border: 2px solid var(--text-denim-blue);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-custom:hover {
  background-color: var(--text-denim-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary-custom {
  background-color: var(--warm-grey-light);
  color: var(--text-denim-dark);
  border: 2px solid var(--warm-grey-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background-color: var(--warm-grey);
  border-color: var(--warm-grey);
  color: var(--white);
  transform: translateY(-2px);
}

/* Card Designs */
.card-custom {
  background-color: var(--white);
  border: 1px solid var(--warm-grey-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 110, 143, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--text-denim-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-denim-blue);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.card-custom:hover .card-icon {
  background-color: var(--accent-coral-light);
  color: var(--accent-coral);
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 5rem 0;
  background: linear-gradient(135deg, var(--bg-sky-white) 0%, #EBF1F5 100%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-denim-dark);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--accent-coral);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--warm-grey-dark);
  margin-bottom: 2.5rem;
}

.hero-img-wrapper {
  position: relative;
  z-index: 1;
}

.hero-img-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent-coral);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.hero-img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  max-height: 480px;
}

/* Sections */
.section-padding {
  padding: 6rem 0;
}

.section-bg-alt {
  background-color: var(--white);
  border-top: 1px solid var(--warm-grey-light);
  border-bottom: 1px solid var(--warm-grey-light);
}

.section-title-wrapper {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-tag {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent-coral);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
}

/* Services Detail Layout */
.service-feature-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--text-denim-blue);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.service-feature-box.coral {
  border-left-color: var(--accent-coral);
}

/* Brands & Comparison CSS */
.filter-tabs .nav-link {
  border: 1px solid var(--warm-grey-light);
  color: #4A5568 !important;
  margin: 0 0.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 30px !important;
  padding: 0.5rem 1.5rem !important;
}

.filter-tabs .nav-link.active {
  background-color: var(--text-denim-blue) !important;
  color: var(--white) !important;
  border-color: var(--text-denim-blue);
}

.comparison-table {
  background-color: var(--white);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--warm-grey-light);
}

.comparison-table th {
  background-color: var(--text-denim-blue);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 1.25rem;
  text-align: center;
  border: none;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 1.25rem;
  border-top: 1px solid var(--warm-grey-light);
  vertical-align: middle;
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-denim-dark);
}

/* Quiz Interface Styles */
.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  border: 1px solid var(--warm-grey-light);
}

.quiz-progress {
  height: 8px;
  background-color: var(--warm-grey-light);
  border-radius: 4px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--accent-coral);
  width: 0%;
  transition: width 0.4s ease;
}

.quiz-question-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent-coral);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.quiz-question-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-denim-dark);
  margin-bottom: 2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quiz-option {
  background-color: var(--bg-sky-white);
  border: 2px solid var(--warm-grey-light);
  border-radius: var(--border-radius-md);
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option:hover {
  border-color: var(--text-denim-blue);
  background-color: var(--text-denim-light);
}

.quiz-option.selected {
  border-color: var(--accent-coral);
  background-color: var(--accent-coral-light);
  color: var(--text-denim-dark);
}

.quiz-option-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--warm-grey);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: var(--transition-smooth);
}

.quiz-option.selected .quiz-option-dot {
  border-color: var(--accent-coral);
}

.quiz-option.selected .quiz-option-dot::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-coral);
  border-radius: 50%;
}

.quiz-nav-btns {
  display: flex;
  justify-content: space-between;
}

.quiz-result-card {
  text-align: center;
}

.quiz-result-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--accent-coral-light);
  border: 4px solid var(--accent-coral);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
}

.quiz-result-score-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-coral);
  line-height: 1;
}

.quiz-result-score-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-denim-blue);
}

/* Interactive Timeline (Booking and fittings) */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-left: 1.5rem;
  border-left: 2px solid var(--warm-grey-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-3rem - 9px);
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-coral);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--accent-coral-light);
  z-index: 2;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Staff Bios */
.staff-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--warm-grey-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.staff-img-wrapper {
  height: 380px;
  overflow: hidden;
  background-color: var(--warm-grey-light);
}

.staff-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.staff-card:hover .staff-img {
  transform: scale(1.05);
}

.staff-info {
  padding: 2rem;
}

.staff-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.staff-role {
  font-size: 0.9rem;
  color: var(--accent-coral);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.staff-credentials {
  font-size: 0.85rem;
  background-color: var(--text-denim-light);
  color: var(--text-denim-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* Booking Form Elements */
.booking-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--warm-grey-light);
  padding: 4rem;
}

.form-label-custom {
  font-weight: 600;
  color: var(--text-denim-dark);
  margin-bottom: 0.5rem;
}

.form-control-custom {
  background-color: var(--bg-sky-white);
  border: 1px solid var(--warm-grey-light);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  color: #3C4858;
  transition: var(--transition-smooth);
}

.form-control-custom:focus {
  border-color: var(--text-denim-blue);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 110, 143, 0.15);
  outline: none;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.time-slot-btn {
  background-color: var(--bg-sky-white);
  border: 1px solid var(--warm-grey-light);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.time-slot-btn:hover {
  background-color: var(--text-denim-light);
  border-color: var(--text-denim-blue);
}

.time-slot-btn.selected {
  background-color: var(--text-denim-blue);
  border-color: var(--text-denim-blue);
  color: var(--white);
}

/* Patient Stories / Testimonials */
.story-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-grey-light);
  position: relative;
}

.story-quote-icon {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 4rem;
  color: var(--warm-grey-light);
  line-height: 1;
  font-family: Georgia, serif;
}

.story-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--warm-grey-light);
  padding-top: 2rem;
}

.story-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--accent-coral);
  margin-bottom: 0.5rem;
  display: block;
}

.story-text {
  font-style: italic;
}

/* Footer & Accessibility & Partners */
.footer {
  background-color: var(--text-denim-dark);
  color: rgba(247, 250, 252, 0.85);
  padding: 5rem 0 3rem 0;
  border-top: 4px solid var(--accent-coral);
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(247, 250, 252, 0.75);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-link:hover {
  color: var(--accent-coral);
  transform: translateX(3px);
}

.footer-accessibility {
  border-top: 1px solid rgba(247, 250, 252, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

.partner-logo {
  height: 35px;
  filter: grayscale(1) brightness(2.5);
  opacity: 0.65;
  transition: var(--transition-smooth);
  object-fit: contain;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
}

.bottom-bar {
  background-color: #172F3E;
  color: rgba(247, 250, 252, 0.6);
  padding: 1.25rem 0;
  font-size: 0.875rem;
  border-top: 1px solid rgba(247, 250, 252, 0.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Modal Stylings */
.modal-content-custom {
  border-radius: var(--border-radius-lg);
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header-custom {
  background-color: var(--text-denim-blue);
  color: var(--white);
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-header-custom .modal-title {
  color: var(--white);
}

.modal-header-custom .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body-custom {
  padding: 2rem;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991.98px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.8rem; }
  .hero-section { padding: 6rem 0 4rem 0; }
  .hero-title { font-size: 2.75rem; }
  .booking-container, .quiz-container { padding: 2rem; }
  .story-before-after { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-img-wrapper { margin-top: 3rem; }
}
