/*
 * DENT-IN THE DENTAL CLINIC
 * Premium Visual Design System - Version 3 (Refined Clinical Polish)
 * Coimbatore, Tamil Nadu, India
 */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-color: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --primary-blue: #0F2E59;
  --secondary-cyan: #3B82F6;
  --accent-mint: #10B981;
  --accent-mint-light: #F0FDF4;
  --white: #FFFFFF;
  --text-dark: #1E293B;
  --text-light: #475569;
  --text-muted: #64748B;
  
  --border-color: rgba(226, 232, 240, 0.8);
  --border-radius-lg: 20px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-soft: 0 4px 20px rgba(15, 46, 89, 0.02);
  --shadow-card: 0 10px 30px rgba(15, 46, 89, 0.04);
  --shadow-hover: 0 20px 45px rgba(15, 46, 89, 0.08);
}

/* --- Document Reset & Styling --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.7;
  background: var(--bg-color);
}

/* Default browser cursor configuration */
html, body, a, button, select, input, textarea, .filter-btn, .blog-card {
  cursor: auto;
}

a, button, select, .filter-btn, .blog-card, .slider-handle, .slider-handle-button {
  cursor: pointer !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 46, 89, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-cyan);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--secondary-cyan);
  z-index: 999;
  pointer-events: none;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-blue);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.highlight-text {
  color: var(--secondary-cyan);
  font-weight: 700;
}

p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  max-width: 58ch;
}

/* --- Layout Elements --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 9rem 0;
  position: relative;
}

.section-divider {
  height: 1px;
  background: var(--border-color);
  width: 100%;
}

/* --- Floating Header Redesign --- */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1140px;
  z-index: 100;
  padding: 0.8rem 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.header.scrolled {
  top: 1rem;
  padding: 0.6rem 2.5rem;
  box-shadow: var(--shadow-card);
  background: rgba(255, 255, 255, 0.96);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo span {
  color: var(--secondary-cyan);
}

.logo-icon {
  width: 24px;
  height: 24px;
  fill: var(--secondary-cyan);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  text-transform: none;
  padding: 0.4rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* --- Premium Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  transition: var(--transition-fast);
  text-decoration: none;
  border: none;
}

.btn:focus {
  outline: 2px solid var(--secondary-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 46, 89, 0.1);
}

.btn-primary:hover {
  background: var(--secondary-cyan);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

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

.btn-secondary:hover {
  background: var(--bg-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
}

/* --- White Cards with Soft Shadows --- */
.glass-card {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.glass-card .btn,
.glass-card .card-cta {
  margin-top: auto;
}

/* --- Bright Split Grid Hero Section --- */
.hero-section {
  min-height: 85vh;
  padding: 13rem 0 6rem 0;
  background: radial-gradient(circle at 85% 15%, var(--accent-mint-light) 0%, transparent 45%), var(--bg-secondary);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-tag {
  font-family: var(--font-heading);
  color: var(--secondary-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 750;
  line-height: 1.15;
  color: var(--primary-blue);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section-tag {
  font-family: var(--font-heading);
  color: var(--secondary-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--primary-blue);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* --- Alternating Editorial Layouts --- */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  align-items: center;
}

.editorial-grid.reverse {
  direction: rtl;
}

.editorial-grid.reverse > * {
  direction: ltr;
}

.editorial-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.media-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Why Choose Us Features --- */
.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.why-feature-item {
  display: flex;
  gap: 1.2rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.why-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.why-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
}

.why-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.why-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.why-feature-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.why-feature-text p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- Service Card lists --- */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-cyan);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

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

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

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.card-list-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.card-list-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-mint);
  flex-shrink: 0;
}

.card-cta {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--secondary-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  text-transform: uppercase;
}

.card-cta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.card-cta:hover svg {
  transform: translateX(3px);
}

/* --- Technology Card --- */
.tech-card {
  background: var(--white);
  padding: 2rem;
}

.tech-media-placeholder {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 200px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-color);
}

.tech-media-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Patient Journey Steps --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.timeline-step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-mint-light);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.timeline-step h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-step p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- FAQ Layout --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.faq-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.faq-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Blog Cards Preview & Blog Page Layout --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  text-decoration: none;
}

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

.blog-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.03);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.blog-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-cyan);
  letter-spacing: 0.8px;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.35;
}

.blog-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.55;
}

.blog-readmore {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.blog-readmore svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* --- Clean Appointment CTA Banner --- */
.cta-banner {
  background: radial-gradient(circle at 85% 15%, var(--accent-mint-light) 0%, transparent 55%), var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 4.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.cta-banner-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* --- Map & Form Layout Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-cyan);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-details p,
.contact-details a {
  color: var(--text-light);
  font-size: 0.92rem;
  text-decoration: none;
}

.map-container {
  height: 280px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.form-input {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--secondary-cyan);
  background: var(--white);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.08);
}

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

/* --- Premium Doctor Profile Placeholders --- */
.doctor-card {
  background: var(--white);
  padding: 2.2rem;
}

.doctor-profile-placeholder {
  width: 100%;
  height: 320px;
  border-radius: var(--border-radius-md);
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 1rem;
  border: 1px dashed var(--border-color);
}

.doctor-silhouette {
  width: 56px;
  height: 56px;
  opacity: 0.35;
}

.placeholder-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.doctor-info h4 {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.2rem;
}

.doctor-info p {
  color: var(--secondary-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.doctor-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Before & After Slider --- */
.slider-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  height: 400px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-label {
  position: absolute;
  bottom: 1.2rem;
  padding: 0.3rem 0.8rem;
  background: rgba(15, 46, 89, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-label.before {
  left: 1.2rem;
}

.slider-label.after {
  right: 1.2rem;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--white);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 8px rgba(15, 46, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  border: 1px solid var(--border-color);
}

.slider-handle-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Footer Section Redesign --- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 3rem 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.83fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-desc {
  color: var(--text-light);
  font-size: 0.92rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--secondary-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-social-icon:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.footer-social-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- CSS-Only Staggered Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Formatting --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero-visual {
    height: 380px;
  }
  
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .editorial-grid.reverse {
    direction: ltr;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }
  
  .footer-col:nth-child(4) {
    grid-column: span 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .header {
    top: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(15, 46, 89, 0.05);
    flex-direction: column;
    padding: 6rem 2.5rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 100;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .nav-cta {
    display: none;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .testimonials-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-col:nth-child(4) {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .cta-banner {
    padding: 3rem 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}
