/* Timp Trees theme */
:root {
  --bg-primary: #f7f6f2;
  --bg-secondary: #e7f0e6;
  --card: #ffffff;
  --text-primary: #243118;
  --text-secondary: #4c5a3a;
  --text-muted: #66755c;
  --accent: #2f6b2f;
  --accent-2: #6ba86b;
  --border: #d8ddcf;
  --shadow-sm: 0 8px 24px rgba(36, 49, 24, 0.08);
  --shadow-md: 0 14px 30px rgba(36, 49, 24, 0.12);
  --radius: 14px;
}

[data-theme="dark"] {
  --bg-primary: #0f1e0f;
  --bg-secondary: #152814;
  --card: #1f2f1f;
  --text-primary: #e7f3e7;
  --text-secondary: #c2d6c2;
  --text-muted: #9fb49f;
  --accent: #8bc34a;
  --accent-2: #a5d66a;
  --border: #234223;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Georgia", serif;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1f4a1f;
}

[data-theme="dark"] a {
  color: #8bc34a;
}

[data-theme="dark"] a:hover {
  color: #a5d66a;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* Header */
.topbar {
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .topbar {
  background: rgba(12, 23, 12, 0.92);
  border-bottom: 1px solid #1c2f1c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.logo {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  flex-shrink: 0;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}


.logo-text {
  display: inline-block;
  white-space: nowrap;
}

[data-theme="dark"] .logo-img {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Footer logo */
.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

[data-theme="dark"] .footer-logo img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* Hide text on very small screens, show logo only */
@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
  .logo-img {
    height: 42px;
  }
  .nav {
    padding: 0.75rem 0;
  }
  .cta-phone {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
  }
  .cta-phone small {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .footer h3,
  .footer h4 {
    margin-bottom: 0.5rem;
  }
  .social-links {
    justify-content: center;
  }
  .footer .btn {
    width: 100%;
    text-align: center;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}

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

.nav a {
  font-weight: 600;
  color: var(--text-secondary) !important;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--accent) !important;
  background: var(--bg-secondary);
}

.nav a.active {
  background: var(--bg-secondary);
  color: var(--accent);
}

[data-theme="dark"] .nav a {
  color: #d0e0d0;
}

[data-theme="dark"] .nav a.active {
  background: #1f3220;
  color: #8bc34a;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(27, 77, 31, 0.25);
  border: 1px solid #0f3a14;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  opacity: 1;
}

.cta-phone span,
.cta-phone small {
  color: #ffffff !important;
  opacity: 1;
}

.cta-phone:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 77, 31, 0.35);
  opacity: 1 !important;
}

.cta-phone:hover span,
.cta-phone:hover small {
  color: #ffffff !important;
  opacity: 1;
}

[data-theme="dark"] .cta-phone {
  background: #8bc34a;
  color: #0c150c !important;
  border: 1px solid #6bac3a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .cta-phone span,
[data-theme="dark"] .cta-phone small {
  color: #0c150c !important;
}

[data-theme="dark"] .cta-phone:hover {
  background: #8bc34a !important;
  color: #0c150c !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 1 !important;
}

[data-theme="dark"] .cta-phone:hover span,
[data-theme="dark"] .cta-phone:hover small {
  color: #0c150c !important;
  opacity: 1;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 10% 20%, rgba(47, 107, 47, 0.12) 0, rgba(47, 107, 47, 0) 30%),
              radial-gradient(circle at 80% 0%, rgba(240, 163, 54, 0.1) 0, rgba(240, 163, 54, 0) 35%),
              linear-gradient(145deg, var(--bg-primary), #fdfbf7 60%, #eef5ec);
  padding: 4rem 0 3rem;
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at 10% 15%, rgba(139, 195, 74, 0.08) 0, rgba(139, 195, 74, 0) 35%),
              radial-gradient(circle at 80% 0%, rgba(243, 178, 77, 0.08) 0, rgba(243, 178, 77, 0) 35%),
              linear-gradient(145deg, #0f1e0f, #1a3018 55%, #152814);
}

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

.eyebrow {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted) !important;
}

[data-theme="dark"] .tagline {
  color: #c2d6c2 !important;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.pill {
  background: white;
  border: 1px solid var(--border);
  color: #1f3a1f;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .pill {
  background: #243524;
  border: 1px solid #335033;
  color: #e7f3e7;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  color: #ffffff !important;
}

[data-theme="dark"] .btn-primary {
  background: #8bc34a;
  color: #0c150c !important;
}

[data-theme="dark"] .btn-primary:hover {
  color: #0c150c !important;
}

.btn-secondary {
  background: #e8f5e8;
  color: #2d5a2d !important;
  border: 1px solid #a5d6a5;
  font-weight: 600;
}

.btn-secondary:hover {
  color: #1f4a1f !important;
  background: #d8f0d8;
  border-color: #8bc38b;
}

[data-theme="dark"] .btn-secondary {
  background: #2a3d1a;
  color: #a5d66a !important;
  border: 1px solid #4a6b2a;
  font-weight: 600;
}

[data-theme="dark"] .btn-secondary:hover {
  color: #b8e67a !important;
  background: #344a20;
  border-color: #5a7b3a;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.stat {
  background: white;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: #206021 !important;
  font-weight: 800;
}

.stat small {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .stat {
  background: #1f2f1f;
  border: 1px solid #2d452d;
}

[data-theme="dark"] .stat strong {
  color: #8bc34a !important;
}

[data-theme="dark"] .stat small {
  color: #c2d6c2 !important;
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .card {
  background: #1f2f1f;
  border: 1px solid #2d452d;
}

/* Removed duplicate - handled above */

.card h3, .card h2 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card h3,
[data-theme="dark"] .card h2 {
  color: #f0f7ee !important;
}

.card p {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .card p {
  color: #e6f1e4 !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  color: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

[data-theme="dark"] .badge {
  background: #2a3d1a;
  color: #8bc34a;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted) !important;
}

.list li > span:first-child {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: 10px !important;
  width: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

[data-theme="dark"] .list li {
  color: #c2d6c2 !important;
}

.dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  max-width: 10px !important;
  max-height: 10px !important;
  background: var(--accent);
  border-radius: 50% !important;
  margin-top: 0.35rem;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: 10px !important;
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
}

.service-areas {
  background: #0f2b0f;
  color: #f8fbf7;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.service-areas h2 {
  color: #f8fbf7;
}

.service-areas h3 {
  color: #e7f3e7;
}

.service-areas p {
  color: #d9ebd6;
}

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

.callout {
  background: #f0f8f0;
  border: 1px solid #c5e8c5;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: #2d5a2d !important;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: fit-content;
}

[data-theme="dark"] .callout {
  background: #1f2f1f;
  border: 1px solid #4a6b2a;
  color: #a5d66a !important;
  font-weight: 600;
}

/* Reviews */
.reviews {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

[data-theme="dark"] .reviews {
  background: #1d2d1d;
  border: 1px solid #2f472f;
}

.review-item {
  min-height: 160px;
}

.stars {
  color: #4a8b4a;
  letter-spacing: 1px;
  font-weight: 800;
}

[data-theme="dark"] .stars {
  color: #a5d66a;
}

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

[data-theme="dark"] .reviewer {
  color: #dcebd8;
}

.slider-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5d1c2;
  border: none;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--accent);
}

/* Forms */
form {
  display: grid;
  gap: 0.9rem;
}

label {
  font-weight: 700;
  color: #1f2f1f !important;
}

[data-theme="dark"] label {
  color: #e6f2e6 !important;
}

input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 2px solid #c7d2c0;
  padding: 0.75rem;
  font-size: 1rem;
  background: #fbfbf8;
  color: #1b2c1b;
  font-weight: 400;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #0f1a0f;
  border: 2px solid #4d6f4d;
  color: #eaf3e8;
  font-weight: 400;
  font-family: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

::placeholder {
  color: #7b8b7b;
}

[data-theme="dark"] ::placeholder {
  color: #a5bca5;
}

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

/* Footer */
.footer {
  margin-top: auto;
  background: #0f1e0f;
  color: #e8f3e8;
  padding: 2.5rem 0 2rem;
}

.footer p {
  color: #e8f3e8;
  line-height: 1.7;
}

.footer h3,
.footer h4 {
  color: #f8fbf7 !important;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer a {
  color: #d0e8d0;
  font-weight: 600;
}

.footer a:hover {
  color: #f0f8f0;
}

.footer .btn {
  text-decoration: none;
  border: 1px solid rgba(197, 225, 197, 0.4);
  color: #e8f3e8 !important;
  font-weight: 600;
}

.footer .btn-primary {
  background: rgba(139, 195, 74, 0.2);
  border-color: rgba(139, 195, 74, 0.5);
  color: #a5d66a !important;
}

.footer .btn-primary:hover {
  background: rgba(139, 195, 74, 0.3);
  border-color: rgba(139, 195, 74, 0.7);
  color: #b8e67a !important;
}

.footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f8f0 !important;
}

.footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

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

.footer-grid > div {
  min-width: 0;
}

.footer-grid > div p {
  margin-bottom: 0.5rem;
}

.footer small {
  color: #c5e1c5;
}

/* Coverage and details - extra contrast */
.footer div:nth-child(4) p,
.footer div:nth-child(5) p {
  color: #f0f8f0 !important;
  font-weight: 500;
}

/* All footer paragraphs should have good contrast */
.footer-grid > div p {
  color: #e8f3e8;
}

/* Make sure all text in footer is readable */
.footer-grid > div {
  color: #e8f3e8;
}

/* Social Media Icons */
.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: flex-start;
  width: 100%;
  justify-content: flex-start;
}

/* Spread out social links when there's space */
@media (min-width: 600px) {
  .social-links {
    gap: 0.6rem;
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .social-links {
    gap: 1rem;
    justify-content: space-between;
  }
  .social-link {
    flex: 0 1 auto;
    min-width: fit-content;
  }
}

/* Ensure social links container can expand on larger screens */
@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .social-links {
    gap: 1.2rem;
    justify-content: space-around;
    max-width: 100%;
  }
  .footer-grid > div {
    min-width: 0;
  }
  /* Make the "Find Us" column span 2 columns to give social links more room */
  .footer-grid > div:last-child {
    grid-column: span 2;
  }
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(197, 225, 197, 0.1);
  border: 1px solid rgba(197, 225, 197, 0.2);
  color: #c5e1c5;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.social-link:hover {
  background: rgba(197, 225, 197, 0.2);
  border-color: rgba(197, 225, 197, 0.4);
  transform: translateY(-2px);
  color: #e8f5e8;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.social-link:hover .social-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

@media (max-width: 720px) {
  .topbar {
    position: sticky;
    top: 0;
  }
  .nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-links {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
  }
  .cta-phone {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 140px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-width: 1.5px;
    flex-shrink: 0;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .hero {
    padding: 2.5rem 0 2rem;
  }
  .hero-grid {
    gap: 1.5rem;
  }
  section {
    padding: 2rem 0;
  }
  .footer {
    padding: 2rem 0 1.5rem;
  }
  .footer-grid {
    gap: 1.25rem;
  }
  .social-links {
    gap: 0.6rem;
    justify-content: center;
  }
  .social-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    flex: 0 1 auto;
  }
}

/* Portrait mode - maximize width and center wrapped rows */
@media (orientation: portrait) and (max-width: 720px) {
  .social-links {
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
  }
  .social-link {
    flex: 0 1 auto;
    min-width: fit-content;
    padding: 0.45rem 0.7rem;
  }
}

/* Fix service areas alignment on mobile portrait */
@media (orientation: portrait) and (max-width: 720px) {
  .service-areas {
    padding: 1.5rem 0.75rem;
  }
  .service-areas .section-header {
    text-align: left;
  }
  .service-areas .section-header p {
    text-align: left;
  }
  .service-areas .two-col {
    text-align: left;
  }
  .service-areas .two-col > div {
    text-align: left;
  }
  .service-areas .two-col h3 {
    text-align: left;
  }
  .service-areas .two-col p {
    text-align: left;
  }
  .service-areas .container {
    text-align: center;
  }
  .service-areas .callout {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: inline-block;
    width: auto;
    max-width: 100%;
  }
}

/* Landscape orientation adjustments - use height to catch all landscape views */
@media (orientation: landscape) and (max-height: 600px) {
  .topbar {
    position: relative;
    top: auto;
    padding: 0;
  }
  .nav {
    padding: 0.5rem 0;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .logo-img {
    height: 28px;
  }
  .logo-text {
    font-size: 0.85rem;
  }
  .nav-links {
    flex-wrap: nowrap;
    width: auto;
    order: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 0.4rem;
  }
  .nav-links a {
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-width: 1.5px;
    flex-shrink: 0;
  }
  .cta-phone {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .cta-phone small {
    display: none;
  }
  .hero {
    padding: 1rem 0 1rem;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  section {
    padding: 1rem 0;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    text-align: left;
    gap: 0.8rem;
  }
  /* Make the "Find Us" column span 2 columns to give social links more room */
  .footer-grid > div:last-child {
    grid-column: span 2 !important;
  }
  .footer {
    padding: 1.5rem 0 1rem;
  }
  .footer-logo {
    justify-content: flex-start;
  }
  .social-links {
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    width: 100%;
  }
  .social-link {
    flex: 0 1 auto !important;
    min-width: fit-content;
    font-size: 0.8rem !important;
    padding: 0.45rem 0.7rem !important;
  }
  .footer .btn {
    width: auto;
  }
}


.theme-toggle {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.2s ease;
  color: var(--text-primary);
  padding: 0;
  line-height: 1;
}

.theme-toggle .sun,
.theme-toggle .moon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-align: center;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.theme-toggle .sun { 
  display: flex; 
  align-items: center;
  justify-content: center;
}
.theme-toggle .moon { 
  display: none; 
}

[data-theme="dark"] .theme-toggle .sun { 
  display: none; 
}
[data-theme="dark"] .theme-toggle .moon { 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Landscape orientation adjustments - use height to catch all landscape views */
@media (orientation: landscape) and (max-height: 600px) {
  .topbar {
    position: relative;
    top: auto;
    padding: 0;
  }
  .nav {
    padding: 0.5rem 0;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .logo-img {
    height: 28px;
  }
  .logo-text {
    font-size: 0.85rem;
  }
  .nav-links {
    flex-wrap: nowrap;
    width: auto;
    order: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 0.4rem;
  }
  .nav-links a {
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }
  .theme-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem;
    border-width: 1.5px;
    flex-shrink: 0;
  }
  .cta-phone {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .cta-phone small {
    display: none;
  }
  .hero {
    padding: 1rem 0 1rem;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  section {
    padding: 1rem 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    gap: 1rem;
  }
  .footer {
    padding: 1.5rem 0 1rem;
  }
  .footer-logo {
    justify-content: flex-start;
  }
  .social-links {
    justify-content: flex-start;
  }
  .footer .btn {
    width: auto;
  }
}
