/* Purple Rain Dental Clinic - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #6c3fc5;
  --primary-dark: #4a2a8a;
  --primary-deeper: #371f66;
  --primary-light: #8b65d9;
  --primary-subtle: #ede7f9;
  --accent: #a78bfa;
  --accent-warm: #f0abfc;
  --text: #1e1b2e;
  --text-secondary: #4a4560;
  --text-muted: #7c7893;
  --bg: #faf9fc;
  --bg-alt: #f3f0f9;
  --white: #ffffff;
  --border: #e8e2f4;
  --border-light: #f0ecf7;
  --success: #16a34a;
  --shadow-sm: 0 1px 3px rgba(108, 63, 197, 0.06);
  --shadow-md: 0 4px 16px rgba(108, 63, 197, 0.08);
  --shadow-lg: 0 8px 32px rgba(108, 63, 197, 0.12);
  --shadow-xl: 0 16px 48px rgba(108, 63, 197, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ===================== HEADER ===================== */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo a:hover {
  opacity: 0.9;
}

.logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-toggle:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-subtle);
  font-weight: 600;
}

/* ===================== MAIN CONTENT ===================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  min-height: 50vh;
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 50%, #2d1854 100%);
  color: var(--white);
  padding: 4rem 2.5rem;
  text-align: center;
  border-radius: var(--radius-xl);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(240, 171, 252, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero.hero-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  text-align: left;
  padding: 3rem 2.5rem;
}

.hero-with-image .hero-content {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-with-image .hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.hero-with-image .hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.hero-with-image .hero-image:hover img {
  transform: scale(1.03);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-with-image .hero p {
  margin-left: 0;
  margin-right: 0;
}

.hero-with-image .hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(108, 63, 197, 0.25);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 63, 197, 0.3);
  color: var(--white);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

/* ===================== SECTIONS ===================== */
.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

/* Section with image (trust / clinic) */
.section-image-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.section-image-block .block-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.section-image-block .block-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.section-image-block .block-image:hover img {
  transform: scale(1.03);
}

.section-image-block .block-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section-image-block .block-content h2::after {
  display: none;
}

.section-image-block .block-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-image-block.align-reverse {
  direction: rtl;
}

.section-image-block.align-reverse > * {
  direction: ltr;
}

/* ===================== FEATURES GRID ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-align: center;
}

.feature-card:hover {
  border-color: var(--primary-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===================== SERVICES GRID ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card .service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card .service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ===================== FAQ ===================== */
.faq-section .faq-intro {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.faq-list {
  list-style: none;
  max-width: 800px;
}

.faq-list li {
  background: var(--white);
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-list li:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list summary:hover {
  color: var(--primary);
}

.faq-list details[open] summary {
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
}

.faq-list .answer {
  padding: 1.15rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.contact-info-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-info-card .info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.contact-info-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* Contact form */
.form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-card h2::after {
  display: none;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(108, 63, 197, 0.1);
}

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

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: none;
}

/* ===================== BLOG ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.blog-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 1rem;
  transition: gap var(--transition);
}

.blog-card .read-more:hover {
  gap: 0.6rem;
}

/* Legacy blog-list support */
.blog-list {
  list-style: none;
}

.blog-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.blog-list li:last-child {
  border-bottom: none;
}

.blog-list a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.blog-list .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* ===================== ARTICLE ===================== */
.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 1.15rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body ul {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  transition: gap var(--transition);
}

.back-link:hover {
  gap: 0.6rem;
  color: var(--primary-dark);
}

/* ===================== VALUES GRID ===================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px 0 0 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-card:hover::before {
  opacity: 1;
}

.value-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ===================== OPENING HOURS ===================== */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hours-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

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

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

.hours-table tr:last-child td {
  border-bottom: none;
}

/* ===================== REVIEW CTA ===================== */
.review-cta {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.review-cta h2 {
  margin-bottom: 0.75rem;
}

.review-cta p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 580px;
  font-size: 1.05rem;
}

.review-cta-compact p {
  margin-left: auto;
  margin-right: auto;
}

.review-cta .btn-review {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.review-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 100%);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section h2::after {
  display: none;
}

.cta-section p {
  opacity: 0.92;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

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

.cta-section .btn:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--primary-deeper);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
  padding: 3.5rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-inner h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-top: 0.75rem;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

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

.footer-inner ul {
  list-style: none;
}

.footer-inner li {
  margin-bottom: 0.6rem;
}

.footer-inner li a {
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* ===================== UTILITIES ===================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ===================== TABLET (<=1024px) ===================== */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0.75rem 1.5rem;
  }

  main {
    padding: 2rem 1.5rem;
  }

  .hero {
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .hero.hero-with-image {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .hero-with-image .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-with-image .hero-buttons {
    justify-content: center;
  }

  .section-image-block,
  .section-image-block.align-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .section-image-block .block-image {
    order: -1;
  }

  .section h2 {
    font-size: 1.65rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .contact-grid {
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

/* ===================== MOBILE (<=768px) ===================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    z-index: 50;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: 0;
    min-height: 48px;
  }

  .logo img {
    max-height: 48px;
  }

  .header-inner {
    padding: 0.625rem 1rem;
  }

  main {
    padding: 1.5rem 1rem;
    min-height: 40vh;
  }

  .hero {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
  }

  .hero.hero-with-image {
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-with-image .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-with-image .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .section {
    margin-bottom: 2.5rem;
  }

  .section-image-block {
    margin-bottom: 2.5rem;
    gap: 1.5rem;
  }

  .section h2 {
    font-size: 1.45rem;
  }

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

  .service-card {
    padding: 1.5rem;
  }

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

  .feature-card {
    padding: 1.25rem;
  }

  .faq-list summary {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-list .answer {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

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

  .form-group input,
  .form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 16px;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    min-height: 48px;
  }

  .map-wrap iframe {
    height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding: 1.25rem 0;
  }

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

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

  .cta-section {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .review-cta {
    padding: 2rem 1.25rem;
  }
}

/* ===================== SMALL PHONES (<=480px) ===================== */
@media (max-width: 480px) {
  .logo img {
    max-height: 42px;
  }

  .header-inner {
    padding: 0.5rem 0.875rem;
  }

  main {
    padding: 1.25rem 0.875rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

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