/* ===================================
   CSS Reset & Base Styles
   =================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: #1E5BA8;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #154280;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* ===================================
   Layout & Container
   =================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ===================================
   Header
   =================================== */

.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Top bar with phone numbers */
.header-top-bar {
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}

.header-top-bar .container {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1.5rem;
}

.header-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1E5BA8;
  font-weight: 600;
  font-size: 0.9rem;
}

.phone-link svg {
  flex-shrink: 0;
}

.phone-label {
  font-weight: 700;
}

.phone-link-emergency {
  color: #c53030;
}

/* Menu bar with logo and navigation */
.header-menu-bar {
  padding: 1rem 0;
}

.header-menu-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 65px;
  width: auto;
}

/* Navigation */
.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: 0.3s;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 1rem 0;
  align-items: center;
}

.nav-list > li {
  display: flex;
  align-items: center;
}

.nav-list a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #1E5BA8;
}

.nav-list a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1E5BA8;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown-toggle:hover {
  color: #1E5BA8;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  min-width: 220px;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.active .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu li {
  padding: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #333;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: #f7fafc;
  color: #1E5BA8;
}

.nav-dropdown-menu a::after {
  display: none;
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #1E5BA8;
  color: #fff;
  border-color: #1E5BA8;
}

.btn-primary:hover {
  background: #154280;
  border-color: #154280;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #1E5BA8;
  border-color: #1E5BA8;
}

.btn-outline:hover {
  background: #1E5BA8;
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  background: linear-gradient(135deg, #1E5BA8 0%, #2B7FD9 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
}

/* ===================================
   Sections
   =================================== */

section {
  padding: 4rem 0;
}

.page-header {
  background: linear-gradient(135deg, #1E5BA8 0%, #2B7FD9 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* ===================================
   CTA Blocks
   =================================== */

.cta-blocks {
  background: #f7fafc;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cta-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cta-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cta-content {
  padding: 2rem;
}

.cta-content h2 {
  color: #1E5BA8;
  margin-bottom: 1rem;
}

/* ===================================
   Services Grid
   =================================== */

.services-section,
.services-listing {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-card,
.news-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-image img,
.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
}

.service-content h2,
.service-content h3 {
  margin-bottom: 0.75rem;
}

.service-content h2 a,
.service-content h3 a {
  color: #1E5BA8;
}

/* ===================================
   Team
   =================================== */

.director-section,
.team-highlight {
  background: #f7fafc;
}

.director-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.director-image img,
.team-image img {
  border-radius: 8px;
  width: 100%;
}

.director-content .role,
.team-content .role {
  color: #1E5BA8;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.qualifications,
.specialization {
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.team-content {
  padding: 1.5rem;
}

.team-teaser {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto 0;
}

.about-us {
  background: #fff;
}

.about-content {
  max-width: 800px;
  margin: 2rem auto;
}

.about-content ul {
  margin: 1rem 0 1rem 2rem;
}

/* ===================================
   News/Blog
   =================================== */

.latest-news,
.news-listing {
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-content {
  padding: 1.5rem;
}

.category-badge {
  display: inline-block;
  background: #1E5BA8;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-content h2 a,
.news-content h3 a {
  color: #333;
}

.news-content h2 a:hover,
.news-content h3 a:hover {
  color: #1E5BA8;
}

.news-date {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.read-more {
  color: #1E5BA8;
  font-weight: 600;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1E5BA8;
  color: #fff;
  border-color: #1E5BA8;
}

/* Single Post */
.post-single {
  margin: 2rem 0;
}

.post-header {
  padding: 3rem 0 2rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-top: 1rem;
}

.post-meta {
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-featured-image {
  margin: 2rem 0;
}

.post-featured-image img {
  width: 100%;
  border-radius: 8px;
}

.post-content {
  padding: 2rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1rem 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-footer {
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f7fafc;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.share-link:hover {
  background: #e2e8f0;
}

/* Single Service */
.service-single {
  margin: 2rem 0;
}

.service-header {
  padding: 3rem 0 2rem;
  background: #f7fafc;
}

.service-summary {
  font-size: 1.25rem;
  color: #666;
  margin-top: 1rem;
}

.service-featured-image {
  margin: 2rem 0;
}

.service-featured-image img {
  width: 100%;
  border-radius: 8px;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-highlights {
  margin: 2rem 0;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 8px;
}

.highlight-list {
  list-style: none;
  margin-left: 0;
}

.highlight-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.highlight-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1E5BA8;
  font-weight: bold;
  font-size: 1.2rem;
}

/* FAQ Section */
.service-faqs {
  background: #f7fafc;
  padding: 3rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #1E5BA8;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 1.5rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #333;
}

/* ===================================
   Contact Section
   =================================== */

.contact-cta {
  background: #f7fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.opening-hours-card,
.booking-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.schedule-row:last-child {
  border-bottom: none;
}

/* Contact Info */
.contact-info {
  background: #f7fafc;
}

.contact-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-icon {
  color: #1E5BA8;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

/* ===================================
   Forms
   =================================== */

.booking-form-section {
  background: #fff;
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1E5BA8;
}

.checkbox-group {
  display: flex;
  align-items: start;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: auto;
}

/* Thank You Page */
.thank-you-page {
  padding: 6rem 0;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-content svg {
  margin: 0 auto 2rem;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section,
.service-cta {
  background: linear-gradient(135deg, #1E5BA8 0%, #2B7FD9 100%);
  color: #fff;
  padding: 4rem 0;
}

.cta-section h2 {
  color: #fff;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
  background: #1a202c;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col p {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #81C4F7;
}

.footer-col a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #81C4F7;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #fff;
}

.footer-posts {
  list-style: none;
}

.footer-posts li {
  margin-bottom: 1rem;
}

.footer-posts small {
  display: block;
  color: #a0aec0;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .header-top-bar .container {
    justify-content: center;
  }

  .header-contact {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .header-menu-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid #e2e8f0;
  }

  .nav-list a {
    display: block;
    padding: 1rem 0;
  }

  /* Mobile Dropdown */
  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f7fafc;
    margin: 0;
    padding: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    max-height: 500px;
  }

  .nav-dropdown-menu a {
    padding: 0.75rem 0 0.75rem 1rem;
    font-size: 0.95rem;
  }

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

  .services-grid,
  .news-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .phone-link {
    font-size: 0.8rem;
  }

  .btn {
    width: 100%;
  }

  .button-group {
    flex-direction: column;
  }
}
