/* ===================================================================
   Jackson Family Dental — Custom Stylesheet
   No frameworks. CSS custom properties, clamp() sizing, light + dark.
   =================================================================== */

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

/* --- Custom Properties (Light) --- */
:root {
  --bg: #F9FAFB;
  --bg-alt: #F5EDE4;
  --bg-card: #FFFFFF;
  --bg-dark: #1D4A40;
  --text: #1A1A1A;
  --text-muted: #4A4A4A;
  --text-faint: #9CA3AF;
  --primary: #2B6B5E;
  --primary-rgb: 43, 107, 94;
  --primary-light: #E8F0ED;
  --accent: #C4956A;
  --accent-light: #F5EDE4;
  --gold: #D4A853;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: 0.2s ease;
}

/* --- Dark Mode --- */
html.dark {
  --bg: #1A1D1A;
  --bg-alt: #252820;
  --bg-card: #2A2D2A;
  --bg-dark: #0F1F15;
  --text: #E8E6E0;
  --text-muted: #A8A498;
  --text-faint: #686460;
  --primary: #4A9A88;
  --primary-rgb: 74, 154, 136;
  --primary-light: #1A2E28;
  --accent: #D4A580;
  --accent-light: #2A2218;
  --gold: #E0B868;
  --border: #353530;
  --border-light: #2A2A25;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
  transition: background-color var(--transition), color var(--transition);
}

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

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

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul ul, ol ol, ul ol, ol ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  text-wrap: pretty;
}

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

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
  text-align: center;
  justify-content: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--bg-dark);
  color: #fff;
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

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

.btn-white:hover {
  background: var(--bg-alt);
  color: var(--bg-dark);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* Phone icon in button */
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Eyebrow --- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--primary);
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  transition: background var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-cta:hover {
  background: var(--bg-dark);
  color: #fff;
}

.nav-cta svg {
  width: 15px;
  height: 15px;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color var(--transition);
}

.theme-toggle:hover {
  color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon,
html.dark .theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-moon {
  display: block;
}

html.dark .theme-toggle .icon-sun {
  display: none;
}

/* Mobile theme toggle — hidden on desktop, visible on mobile */
#mobile-theme-toggle {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

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

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .nav-phone {
  font-size: 1.125rem;
  padding: 0.75rem 0;
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  background: var(--bg);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  pointer-events: none;
}

/* ===================================================================
   SERVICES
   =================================================================== */
.services {
  background: var(--bg);
}

.services-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

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

.services-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.services-note a {
  font-weight: 600;
}

/* ===================================================================
   TRUST / LONGEVITY
   =================================================================== */
.trust {
  background: var(--bg-alt);
}

.trust-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.trust-number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.trust-label {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.trust-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ===================================================================
   ABOUT / TEAM PREVIEW
   =================================================================== */
.about-preview {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about-content .eyebrow {
  margin-bottom: 0.5rem;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ===================================================================
   "IT'S BEEN A WHILE" CALLOUT
   =================================================================== */
.callout {
  background: var(--bg);
}

.callout-card {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 800px;
  margin: 0 auto;
}

.callout-card h2 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
}

.callout-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.testimonials {
  background: var(--bg-alt);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--primary);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.125rem;
}

.testimonial-attr {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===================================================================
   CTA SECTION
   =================================================================== */
.cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.cta-phone {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  display: block;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.cta-phone:hover {
  color: var(--gold);
}

.cta-secondary {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.cta-secondary a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-secondary a:hover {
  color: var(--gold);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===================================================================
   DISCLAIMER BAR
   =================================================================== */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.4;
}

/* ===================================================================
   INTERIOR PAGE HERO
   =================================================================== */
.page-hero {
  background: var(--primary-light);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0;
}

/* ===================================================================
   ABOUT PAGE
   =================================================================== */
.about-page-content {
  background: var(--bg);
}

.about-prose {
  max-width: 720px;
  margin: 0 auto;
}

.about-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.about-prose p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.value-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}

.value-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.value-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===================================================================
   CONTACT PAGE
   =================================================================== */
.contact-section {
  background: var(--bg);
}

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

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-text {
  font-size: 1rem;
}

.contact-detail-text strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.contact-detail-text span,
.contact-detail-text a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hours-table {
  margin-top: 1.5rem;
}

.hours-table h3 {
  margin-bottom: 0.75rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 500;
  color: var(--text);
}

.hours-time {
  color: var(--text-muted);
}

/* --- Contact Form --- */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form-wrap h2 {
  margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.form-status.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

html.dark .form-status.error {
  background: #2D1B1B;
  color: #FCA5A5;
  border-color: #7F1D1D;
}

.form-submit-btn {
  width: 100%;
}

/* Turnstile widget */
.cf-turnstile {
  margin-bottom: 1rem;
}

/* ===================================================================
   404 PAGE
   =================================================================== */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
}

.page-404-inner {
  max-width: 520px;
}

.page-404 h1 {
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.page-404-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================================
   MAP EMBED
   =================================================================== */
.map-section {
  background: var(--bg-alt);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/7;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

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

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 3/2;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 2rem;
  }

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

  .about-image {
    max-width: 480px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

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

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

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 2rem auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-actions-desktop {
    display: none;
  }

  #mobile-theme-toggle {
    display: flex !important;
  }

  .hero {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    padding: 0.875rem 1.25rem;
  }

  .cta-phone {
    font-size: 1.5rem;
  }

  .page-404-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
