/* Accessibility utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Navigation */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: bold;
  font-size: 16px;
  transition: top 0.3s;
  border: 2px solid var(--primary);
  transform: translateY(-100%);
}

.skip-nav:focus {
  top: 6px;
  transform: translateY(0);
}

/* Base styles */
:root {
  --primary: #1a6b66;
  --primary-dark: #155550;
  --secondary: #7c3a96;
  --light-bg: #f8f9fa;
  --dark-text: #1a1a1a;
  --muted-text: #4a4a4a;
  --border-color: #e9ecef;
  --white: #ffffff;
}

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

body {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-bg);
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  margin-bottom: 1rem;
  color: var(--dark-text);
  font-weight: 600;
}

h1 {
  font-size: 2rem;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--light-bg);
}

/* Header styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: relative;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo a {
  text-decoration: none;
}

.logo-text-1 {
  color: var(--primary);
}

.logo-text-2 {
  color: var(--secondary);
}

/* Navigation styles */
.nav {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  position: relative;
  overflow: visible;
}

/* Priority navigation links (always visible) */
.nav-priority {
  display: flex;
  flex-shrink: 0;
}

/* More menu button */
.nav-more {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.nav-more-toggle {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--dark-text);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-size: 1rem;
}

.nav-more-toggle:hover {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

/* More menu dropdown */
.nav-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border: 1px solid var(--border-color);
}

.nav-more-menu.active {
  display: flex;
}

.nav-more-menu .nav-link {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s;
}

.nav-more-menu .nav-link:last-child {
  border-bottom: none;
}

.nav-more-menu .nav-link:hover,
.nav-more-menu .nav-link.active {
  background-color: var(--light-bg);
  color: var(--primary);
}

/* Standard navigation links */
.nav-link {
  padding: 1rem 1.5rem;
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

/* Responsive breakpoints */

/* Mobile: Show Home, About, Services + More */
@media (max-width: 767px) {
  .nav-priority .nav-link:nth-child(n+4) {
    display: none;
  }
}

/* Small tablet: Show Home, About, Services, Booking + More */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-priority .nav-link:nth-child(n+5) {
    display: none;
  }
}

/* Large tablet: Show Home, About, Services, Booking, Fees, Blog + More */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-priority .nav-link:nth-child(n+7) {
    display: none;
  }
}

/* Desktop: Show all links, hide more button */
@media (min-width: 1200px) {
  .nav-more {
    display: none;
  }
}

/* Mobile CTA */
.mobile-cta {
  padding: 0.5rem 1rem;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: block;
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}

.desktop-cta {
  display: none;
}

@media (min-width: 768px) {
  .desktop-cta {
    display: block;
  }
}

/* Main content */
.main {
  padding: 2rem 0;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  width: 100%;
  padding: 0 15px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
    margin-bottom: 0;
  }
  .col-md-4 {
    width: 33.333333%;
    margin-bottom: 0;
  }
  .col-md-8 {
    width: 66.666667%;
    margin-bottom: 0;
  }
}

/* Hero section */
.hero {
  margin-bottom: 2rem;
}

.hero-content {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text {
  padding: 2rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 576px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 350px;
  margin: 0 auto 1.5rem auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .hero-content {
    display: flex;
  }
  
  .hero-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .hero-image {
    width: 50%;
    margin-bottom: 0;
  }
}

/* Features */
.features {
  margin-bottom: 2rem;
}

.feature {
  text-align: center;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin: 1rem 0;
}

/* Target audience */
.target-audience {
  margin-bottom: 2rem;
}

.audience-item {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 1rem;
  background-color: var(--white);
}

/* Blog preview */
.blog-preview {
  margin-bottom: 2rem;
}

.blog-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.blog-image {
  height: 200px;
  background-color: var(--light-bg);
}

.blog-content {
  padding: 1rem;
}

.blog-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.blog-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: #343a40;
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-author {
  width: 100%;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #495057;
}

.footer-section {
  width: 100%;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content .footer-section {
    width: 50%;
    padding-right: 2rem;
  }
  
  .footer-author .footer-section {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }
}

.footer-title {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer a {
  color: #adb5bd;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #495057;
  font-size: 0.9rem;
  color: #adb5bd;
}

/* About page */
.about-section {
  margin-bottom: 2rem;
}

.about-image {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qualification-list {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.qualification-list li {
  margin-bottom: 0.5rem;
}

/* General list styling */
ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* Services page */
.service-card {
  height: 100%;
}

.service-button {
  margin-top: 1rem;
}

/* Blog page */
.blog-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-entry-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-date {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* FAQ page */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Contact page */
.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  background-color: #e3f2fd;
  color: var(--primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.contact-info h4 {
  margin-bottom: 0.25rem;
}

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.alert-warning {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #dee2e6;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.text-muted {
  color: var(--muted-text);
}

.text-small {
  font-size: 0.875rem;
}

/* Footer logos */
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #495057;
  border-bottom: 1px solid #495057;
}

.footer-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-item img {
  max-height: 120px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo-item img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-logos {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-logo-item img {
    max-height: 60px;
  }
}
