/* ============================================================================
   TRULY TOPAZ MEDICAL SOLUTIONS - PREMIUM MEDICAL WEBSITE
   Color Palette extracted from logo:
   - Primary: #1A3A4A (Dark Navy)
   - Secondary: #00B8D4 (Cyan/Turquoise)
   - Accent: #FF6B6B (Medical Red)
   ============================================================================ */

/* CSS Variables */
:root {
  --primary: #1A3A4A;
  --secondary: #00B8D4;
  --accent: #FF6B6B;
  --light-bg: #F8FBFC;
  --white: #FFFFFF;
  --text-dark: #1A3A4A;
  --text-light: #666666;
  --border-light: #E0E8EC;
  --shadow-sm: 0 2px 8px rgba(26, 58, 74, 0.1);
  --shadow-md: 0 8px 24px rgba(26, 58, 74, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 58, 74, 0.15);
}

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #0098B8 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 184, 212, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px);
}

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

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.3);
}

.btn-small {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ============================================================================
   NAVIGATION BAR
   ============================================================================ */

nav {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.logo h2 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--secondary);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  background: var(--light-bg);
  border: none;
  cursor: pointer;
  gap: 5px;
  transition: background 0.2s;
}
.hamburger:hover { background: #daeef4; }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.23,1,.32,1);
}

/* ============================================================================
   CONTAINER & LAYOUT
   ============================================================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

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

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

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

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(0, 184, 212, 0.05) 100%);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 184, 212, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 58, 74, 0.05) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  animation: slideInRight 0.8s ease;
}

.hero-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #0098B8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.card-title {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================================================
   TYPE CARDS - Service Types Grid
   ============================================================================ */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.type-card {
  background: #fff;
  border-radius: .75rem;
  padding: 1.5rem;
  border: 1px solid #e8eef1;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 2px 12px rgba(26,58,74,.05);
  transition: box-shadow .25s, transform .25s;
}

.type-card h4 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 .65rem;
}

.type-card p {
  font-size: .875rem;
  line-height: 1.65;
  color: #5a7282;
  margin: 0;
}

.type-card:hover {
  box-shadow: 0 8px 30px rgba(26,58,74,.1);
  transform: translateY(-3px);
}

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.feature {
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.75rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   STATS SECTION
   ============================================================================ */

.stats {
  background: linear-gradient(135deg, var(--primary) 0%, #0F2936 100%);
  color: var(--white);
  padding: 4rem 0;
  border-radius: 1rem;
  margin: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  animation: slideInUp 0.6s ease;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   TESTIMONIALS SECTION
   ============================================================================ */

.testimonial {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--secondary);
  animation: slideInLeft 0.6s ease;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info h4 {
  margin: 0;
}

.author-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.stars {
  color: #FFC107;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================================
   FORMS
   ============================================================================ */

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

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================================
   FLOATING BUTTONS (WhatsApp & AI)
   ============================================================================ */

.floating-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: slideInBottom 0.5s ease;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #20BA5A);
  color: var(--white);
  bottom: 30px;
  right: 30px;
  font-size: 1.5rem;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn svg {
  filter: brightness(1.2) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  stroke: #ffffff;
}

.whatsapp-btn svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20BA5A, #1a9d4a);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.ai-btn {
  background: linear-gradient(135deg, var(--secondary), #0098B8);
  color: var(--white);
  bottom: 110px;
  right: 30px;
  font-size: 1.5rem;
}

/* ============================================================================
   CHATBOT STYLES
   ============================================================================ */

.chatbot-container {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 998;
  animation: slideInUp 0.3s ease;
  border: 1px solid var(--border-light);
  display: none;
}

.chatbot-container.active {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  padding: 1.5rem;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--white);
}

.chatbot-close {
  background: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  gap: 0.75rem;
  animation: slideInUp 0.3s ease;
}

.message.bot {
  align-items: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message.bot .message-content {
  background: var(--light-bg);
  color: var(--text-dark);
}

.message.user .message-content {
  background: var(--secondary);
  color: var(--white);
}

.typing {
  display: flex;
  gap: 0.3rem;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: typing 1.4s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.chatbot-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
}

.chatbot-footer input {
  border-radius: 2rem;
  padding-right: 3rem;
}

.chatbot-send {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: var(--secondary);
  color: var(--white);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.chatbot-send:hover {
  background: var(--primary);
}

.suggested-questions {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.suggested-btn {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  text-align: left;
}

.suggested-btn:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* FOOTER — see new styles below */

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
}

.footer-top {
  padding: 4.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  align-items: flex-start;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: .65rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: all .25s ease;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.4);
  margin: 0 0 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-col ul li a,
.footer-col ul li {
  font-size: .88rem;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--secondary); }

/* contact column */
.footer-contact-col h4 { margin-bottom: 1.25rem; }

.fci {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.fci svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--secondary);
  margin-top: .1rem;
}
.fci div, .fci span { display: flex; flex-direction: column; gap: .2rem; }
.fci a, .fci span {
  font-size: .875rem;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}
.fci a:hover { color: var(--secondary); }

/* footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--secondary); }

/* ============================================================================
   BREADCRUMB
   ============================================================================ */

.breadcrumb {
  padding: 2rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--secondary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================================
   PAGE HEADER
   ============================================================================ */

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0F2936 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* ============================================================================
   ACCORDION (FAQ)
   ============================================================================ */

.accordion {
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

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

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background: var(--white);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.3s ease;
  color: var(--text-dark);
  font-weight: 600;
  gap: 1rem;
}

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

.accordion-toggle {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.accordion-item.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 1.5rem;
  background: var(--light-bg);
}

.accordion-text {
  color: var(--text-light);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .accordion-header {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-item.active .accordion-content {
    padding: 1rem;
  }
}

/* ============================================================================
   SERVICE CARDS
   ============================================================================ */

.service-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  flex: 1;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.service-card .btn {
  align-self: flex-start;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 999;
    padding: 2rem;
  }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links li a {
    display: block;
    padding: 1.1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: color .2s;
  }
  .nav-links li:first-child a { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links li a:hover,
  .nav-links li a.active { color: var(--secondary); }

  /* CTA button inside mobile menu */
  .nav-cta { margin-top: 1.5rem !important; }
  .nav-cta a {
    display: inline-block !important;
    border: none !important;
    border-radius: .5rem !important;
    background: var(--secondary) !important;
    color: white !important;
    padding: .85rem 2rem !important;
    font-size: 1rem !important;
  }

  /* close X when menu open */
  .nav-links.active { display: flex; }

  .hamburger { display: flex; }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
    background: var(--primary);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
    background: var(--primary);
  }
  /* hamburger turns into X on dark overlay — show X in white */
  body.menu-open .hamburger {
    position: fixed;
    top: 1.1rem;
    right: 1.5rem;
    z-index: 1000;
    background: rgba(255,255,255,.15);
  }
  body.menu-open .hamburger span { background: white; }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chatbot-container {
    width: calc(100vw - 2rem);
    height: 500px;
    bottom: 100px;
    right: 1rem;
  }

  .whatsapp-btn,
  .ai-btn {
    width: 55px;
    height: 55px;
    bottom: auto;
    right: auto;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
  }

  .ai-btn {
    bottom: 85px;
    right: 20px;
  }

  .testimonial {
    max-width: 100%;
  }

  .message-content {
    max-width: 85%;
  }

  .container {
    padding: 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .logo img {
    height: 40px;
  }

  .logo h2 {
    font-size: 1.1rem;
  }

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

  .service-card {
    padding: 1.5rem;
  }

  .type-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .type-card {
    padding: 1.5rem;
    border-left-width: 4px;
  }

  .type-card h4 {
    font-size: 1rem;
  }

  .type-card p {
    font-size: 0.9rem;
  }
}

/* ============================================================================
   SCROLL ANIMATIONS
   ============================================================================ */

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-in {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

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

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

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

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

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

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

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

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

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

.pt-1 {
  padding-top: 1rem;
}

.pt-2 {
  padding-top: 2rem;
}

.pt-3 {
  padding-top: 3rem;
}

.pb-1 {
  padding-bottom: 1rem;
}

.pb-2 {
  padding-bottom: 2rem;
}

.pb-3 {
  padding-bottom: 3rem;
}

.hidden {
  display: none;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-light);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - TABLET & DESKTOP OPTIMIZATION
   ============================================================================ */

@media (max-width: 1024px) {
  .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .grid.grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .hero-image img {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    width: 100%;
  }
  
  .btn-small {
    width: auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
}

/* ── FOOTER RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-top { padding: 3rem 0 2rem; }
}

/* ── NAV CTA BUTTON (desktop only) ────────────────────────────── */
.nav-cta a {
  padding: .55rem 1.25rem;
  border-radius: .4rem;
  font-size: .85rem;
}

/* ── PRE-FOOTER CTA STRIP ──────────────────────────────────────── */
.page-cta-strip {
  background: var(--secondary);   /* cyan — visually distinct from the navy footer */
  padding: 4rem 0;
  margin-top: 5rem;
}

.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.page-cta-text h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 .6rem;
  line-height: 1.2;
}

.page-cta-text p {
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

.page-cta-strip .btn-primary {
  flex-shrink: 0;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  white-space: nowrap;
}
.page-cta-strip .btn-primary:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

@media (max-width: 768px) {
  .page-cta-strip { padding: 3rem 0; margin-top: 3rem; }
  .page-cta-inner { flex-direction: column; align-items: flex-start; }
  .page-cta-strip .btn-primary { width: 100%; text-align: center; }
}

/* Footer follows CTA with no gap — the colour contrast does the separation work */
.page-cta-strip + footer { margin-top: 0; }

/* ── WHATSAPP BUTTON ───────────────────────────────────────────── */
.whatsapp-btn { overflow: visible; }
.whatsapp-btn svg { display: block; flex-shrink: 0; }
.whatsapp-btn svg path { fill: #ffffff !important; }
