/* ── Animations ──────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.services-grid [data-animate]:nth-child(6) { transition-delay: 0.4s; }

/* Chat mockup staggered appearance */
.chat-demo-msg {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-demo-msg.msg-visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-demo-msg:nth-child(2) { transition-delay: 0.3s; }
.chat-demo-msg:nth-child(3) { transition-delay: 0.6s; }
.chat-demo-msg:nth-child(4) { transition-delay: 0.9s; }

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-text .logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}

/* Nav CTA button -- rectangular, muted teal */
.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #FFFFFF !important;
  border-radius: var(--radius-btn);
  transition: background 0.2s;
}
.btn-nav:hover {
  background: var(--accent-hover);
  color: #FFFFFF !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  background: #FFFFFF;
  color: var(--text);
}
.btn-primary:hover {
  background: #F0F0F0;
}

.btn-accent {
  padding: 14px 32px;
  font-size: 15px;
  background: var(--accent);
  color: #FFFFFF;
}
.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-white {
  padding: 14px 36px;
  font-size: 15px;
  background: #FFFFFF;
  color: var(--text);
}
.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-ghost-dark {
  padding: 14px 32px;
  font-size: 15px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);
}
.btn-ghost-dark:hover {
  border-color: var(--accent);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  margin-top: 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1628009368231-7bb7cfcb0def?w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,36,57,0.65) 0%, rgba(14,36,57,0.4) 60%, rgba(14,36,57,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-text {
  max-width: 580px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}

/* ── About / Intro (editorial text block) ────────────────── */
.about-section {
  background: var(--bg);
  padding: 100px 0;
}

.about-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 32px;
}

.about-inner p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-inner p:last-child {
  margin-bottom: 0;
}

/* ── Services ────────────────────────────────────────────── */
.services-section {
  background: var(--bg-alt);
  padding: 100px 0;
}

.services-header {
  margin-bottom: 56px;
}

.services-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.service-card-accent {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}
.service-card-link:hover {
  gap: 10px;
}
.service-card-link svg {
  width: 14px;
  height: 14px;
}

/* ── AI Chat Showcase (Dark Section) ─────────────────────── */
.ai-section {
  background: var(--dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ai-text h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--dark-text);
  margin-bottom: 20px;
}

.ai-text-desc {
  font-size: 17px;
  color: var(--dark-text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-text);
}

.ai-feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Chat mockup -- clean white card */
.chat-mockup {
  background: #FFFFFF;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.chat-mockup-header {
  padding: 14px 20px;
  background: #F7F8FA;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}

.chat-mockup-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.chat-mockup-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.chat-mockup-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
}

.chat-demo-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-demo-msg.msg-user {
  background: #F0F1F3;
  color: var(--text);
  align-self: flex-end;
}

.chat-demo-msg.msg-bot {
  background: #FFFFFF;
  color: var(--text);
  align-self: flex-start;
  border: 1px solid var(--border);
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg);
  padding: 100px 0;
}

.testimonials-header {
  margin-bottom: 56px;
}

.testimonials-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Featured (large) testimonial */
.testimonial-featured {
  margin-bottom: 48px;
  padding-left: 32px;
  border-left: 3px solid var(--accent);
}

.testimonial-featured blockquote {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.testimonial-featured .testimonial-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-featured .testimonial-location {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Secondary testimonials -- smaller, side by side */
.testimonials-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testimonial-small {
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.testimonial-small blockquote {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-small .testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-small .testimonial-location {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ── Visit Us (Hours & Contact) ──────────────────────────── */
.visit-section {
  background: var(--bg-alt);
  padding: 100px 0;
}

.visit-header {
  margin-bottom: 56px;
}

.visit-header h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-hours h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}

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

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table td {
  padding: 12px 0;
  font-size: 15px;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.hours-table .closed {
  color: var(--text-faint);
  font-style: italic;
}

.visit-contact h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}

.visit-contact-address {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.visit-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}
.visit-contact-phone svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.visit-map-placeholder {
  width: 100%;
  height: 200px;
  background: #E2E8F0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

.visit-emergency {
  margin-top: 40px;
  padding: 20px;
  background: var(--emergency-light);
  border: 1px solid var(--emergency-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.visit-emergency svg {
  width: 20px;
  height: 20px;
  color: var(--emergency);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-emergency p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.visit-emergency a {
  color: var(--emergency);
  font-weight: 600;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--bg);
  padding: 100px 0;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cta-section .cta-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand .logo-text {
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.35);
}

.footer-brand p {
  font-size: 14px;
  color: var(--dark-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-top: 16px;
}

.footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}
.footer-brand .footer-phone svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--dark-text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
  line-height: 1.5;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover {
  color: #FFFFFF;
}

/* ── Chat Widget (functional) ────────────────────────────── */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(27, 107, 90, 0.3);
  transition: background 0.2s;
  border: none;
}
.chat-toggle:hover {
  background: var(--accent-hover);
}

.chat-widget {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 400px;
  height: 520px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.chat-header {
  padding: 16px 20px;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6EE7B7;
  flex-shrink: 0;
}

.chat-header-name {
  font-size: 15px;
  font-weight: 600;
}

.chat-close {
  color: #FFFFFF;
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F7F8FA;
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 85%;
}

.chat-msg.bot {
  background: #FFFFFF;
  color: var(--text);
  align-self: flex-start;
  border: 1px solid var(--border);
}

.chat-msg.user {
  background: var(--accent);
  color: #FFFFFF;
  align-self: flex-end;
}

.chat-input-wrap {
  display: flex;
  padding: 14px;
  border-top: 1px solid var(--border);
  gap: 10px;
  background: #FFFFFF;
}

.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  background: #F7F8FA;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-wrap input:focus {
  border-color: var(--accent);
}

.chat-input-wrap input::placeholder {
  color: var(--text-faint);
}

.chat-input-wrap button {
  padding: 10px 18px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-input-wrap button:hover {
  background: var(--accent-hover);
}

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Responsive: 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-headline { font-size: 44px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .ai-grid { gap: 48px; }
  .testimonials-secondary { gap: 24px; }
}

/* ── Responsive: 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 16px; color: var(--text); }

  .hero { min-height: 420px; }
  .hero-headline { font-size: 36px; }
  .hero-content { padding: 60px 24px; }
  .hero-sub { font-size: 16px; }

  .about-section,
  .services-section,
  .ai-section,
  .testimonials-section,
  .visit-section,
  .cta-section { padding: 72px 0; }

  .about-inner h2,
  .services-header h2,
  .testimonials-header h2,
  .visit-header h2,
  .cta-section h2,
  .ai-text h2 { font-size: 32px; }

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

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonial-featured blockquote { font-size: 20px; }
  .testimonials-secondary { grid-template-columns: 1fr; }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cta-section .btn { width: 100%; max-width: 320px; }

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

  .chat-widget {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 88px;
    height: 460px;
  }
}
