/* ============================================
   TRT South - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --accent: #c8a961;
  --accent-hover: #b8953f;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --light-bg: #f5f5f0;
  --dark-bg: #1a1a2e;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, 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);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 169, 97, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

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

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

.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

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

.top-bar a {
  color: var(--accent);
}

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

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--white);
  font-size: 1rem;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Header / Navbar ---------- */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.logo-text span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  display: block;
}

.nav-menu > li > a:hover {
  color: var(--accent);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

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

.dropdown-menu li a {
  padding: 12px 20px;
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.dropdown-menu li a:hover {
  background: var(--light-bg);
  color: var(--accent);
  padding-left: 25px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 5px;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2a5a8c 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,133.3C672,128,768,160,864,176C960,192,1056,192,1152,176C1248,160,1344,128,1392,112L1440,96L1440,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 169, 97, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 15px;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 25px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ---------- Section Styles ---------- */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--dark-bg);
  color: var(--white);
}

.section-light {
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .overline {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Services / Treatments ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-card-img {
  height: 220px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.service-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(26, 58, 92, 0.3));
}

.service-card-body {
  padding: 25px;
}

.service-card-body h3 {
  margin-bottom: 12px;
}

.service-card-body p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-card-body .btn {
  font-size: 0.82rem;
  padding: 10px 24px;
}

/* ---------- About / Why Choose Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 4rem;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.about-features {
  margin: 25px 0;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(200, 169, 97, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.about-feature h4 {
  margin-bottom: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.about-feature p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Symptom Quiz Banner ---------- */
.quiz-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #d4b96e 100%);
  padding: 50px 0;
  text-align: center;
}

.quiz-banner h2 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.quiz-banner p {
  color: var(--primary-dark);
  opacity: 0.85;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 40px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
  border: 3px solid var(--accent);
}

.team-card h3 {
  color: var(--white);
  margin-bottom: 5px;
}

.team-card .role {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: block;
}

.team-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* ---------- Blog / Articles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), #2a5a8c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 25px;
}

.blog-card-body .date {
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-body h3 {
  margin: 8px 0 12px;
  font-size: 1.25rem;
}

.blog-card-body p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 15px;
}

.blog-card-body .read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-body .read-more:hover {
  color: var(--primary);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 35px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  font-family: var(--font-heading);
  position: absolute;
  top: 15px;
  left: 25px;
  opacity: 0.3;
}

.stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-dark);
}

/* ---------- FAQ Section ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .icon {
  font-size: 1.3rem;
  transition: var(--transition);
  color: var(--accent);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- Contact / CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card h4 {
  color: var(--accent);
  font-family: var(--font-body);
  margin-bottom: 12px;
}

.contact-card p {
  opacity: 0.85;
  font-size: 0.92rem;
  margin-bottom: 5px;
  text-align: left;
}

/* ---------- Footer ---------- */
.footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-about p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 97, 0.15);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-hero .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.7;
}

.page-hero .breadcrumb a {
  color: var(--accent);
}

/* Inner page content */
.page-content {
  padding: 60px 0;
}

.page-content .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin: 30px 0 15px;
}

.page-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.page-content ul li {
  list-style: disc;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 300px; }
  .about-image::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    gap: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu > li > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding-left: 15px;
    display: none;
  }

  .nav-menu > li:hover .dropdown-menu,
  .nav-menu > li.open .dropdown-menu {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
  .hero-stats { gap: 25px; flex-wrap: wrap; }
  .hero-stat .number { font-size: 2rem; }

  .section { padding: 50px 0; }
  h2 { font-size: 1.8rem; }

  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .top-bar .container { flex-direction: column; gap: 5px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
