/* Tarzan's AC & Handyman Service LLC — site styles */

:root {
  --green-950: #0a241c;
  --green-900: #0f3d32;
  --green-800: #145241;
  --green-700: #1a6b54;
  --green-100: #e6f4ef;
  --green-50: #f2faf6;
  --ice-500: #0ea5e9;
  --ice-400: #38bdf8;
  --ice-100: #e0f2fe;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --ink: #14201c;
  --ink-soft: #3d4f48;
  --muted: #5c6f67;
  --line: #d5e3dc;
  --white: #ffffff;
  --sand: #f7f6f2;
  --shadow: 0 18px 50px rgba(15, 61, 50, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 61, 50, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--green-800);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-700);
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--green-950);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--green-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 61, 50, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  max-width: min(320px, 55vw);
}

.logo:hover { color: inherit; }

.logo-img {
  display: block;
  height: auto;
  object-fit: contain;
}

.logo-img-mark {
  display: block;
  width: 44px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-900);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.logo-footer {
  max-width: none;
}

.logo-img-footer {
  width: 52px;
  height: 62px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  background: var(--green-50);
  color: var(--green-900);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
}

.phone-link:hover { color: var(--green-700); }

.phone-text-short {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover { color: inherit; }
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--amber-400), var(--amber-500));
  color: var(--green-950);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--amber-400), var(--amber-600));
  color: var(--green-950);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(14, 165, 233, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(26, 107, 84, 0.5), transparent 50%),
    linear-gradient(145deg, var(--green-950) 0%, var(--green-900) 45%, #0c4a6e 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-400);
  margin: 0 0 0.85rem;
}

.hero .eyebrow { color: var(--ice-400); }

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--ice-400);
}

.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.hero-badges li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.hero-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Forms */
label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

input,
select,
textarea {
  font: inherit;
  font-size: 16px; /* prevents iOS Safari zoom-on-focus */
  font-weight: 400;
  color: var(--ink);
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

select {
  -webkit-appearance: none;
  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='%235c6f67' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

textarea {
  min-height: 120px;
}

/* Honeypot — hidden from humans, left available to bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b7cdc2;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 107, 84, 0.18);
}

textarea { resize: vertical; }

.form-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.is-success { color: var(--green-800); }
.form-status.is-error { color: #b91c1c; }

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  color: var(--green-700);
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* Services */
.services {
  background: var(--sand);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--green-100), var(--ice-100));
  color: var(--green-800);
  margin-bottom: 1rem;
}

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

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.service-card li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice-500);
}

/* Why us */
.why {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-card {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.why-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Areas */
.areas {
  background:
    linear-gradient(180deg, var(--green-900), var(--green-950));
  color: var(--white);
}

.areas .eyebrow { color: var(--ice-400); }
.areas h2 { color: var(--white); }
.areas .section-lead { color: rgba(255, 255, 255, 0.78); }

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 48rem;
  margin-inline: auto;
}

.area-list li {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 0.95rem;
}

/* About */
.about {
  background: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
}

.about-visual {
  min-height: 280px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.22), transparent 55%),
    linear-gradient(160deg, var(--green-800), var(--green-950));
  border: 1px solid var(--green-900);
  display: grid;
  place-items: center;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.about-logo {
  width: min(100%, 280px);
  height: auto;
  background: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.about-copy p {
  color: var(--ink-soft);
}

.about-facts {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.about-facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.about-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--green-900);
}

/* Contact */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.contact-details li {
  display: grid;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-details a {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--green-900);
}

.contact-details a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.contact-form {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* Mobile sticky CTA bar */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 61, 50, 0.08);
}

.mobile-cta-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  font-size: 0.95rem;
  padding: 0.7rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-ghost-dark {
  background: var(--green-50);
  color: var(--green-900);
  border-color: var(--line);
}

.btn-ghost-dark:hover {
  background: var(--green-100);
  color: var(--green-950);
}

/* Footer */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo-name {
  color: var(--white);
}

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

.footer-brand .logo-text {
  display: flex;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
}

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

.footer-meta {
  text-align: right;
  font-size: 0.9rem;
}

.footer-meta p {
  margin: 0 0 0.35rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-meta {
    text-align: left;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav a {
    padding: 0.95rem 0.75rem;
    font-size: 1.08rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    min-width: 48px;
    min-height: 48px;
  }

  .header-actions .btn-sm {
    display: none;
  }

  /* Show Call chip in header on tablet/phone */
  .phone-text {
    display: none;
  }

  .phone-text-short {
    display: inline;
  }

  .phone-link {
    background: var(--green-50);
    border: 1px solid var(--line);
    padding: 0.35rem 0.75rem;
  }

  /* Sticky call/quote bar on small screens */
  .mobile-cta {
    display: flex;
  }

  /* Room for sticky bar so content isn't covered */
  .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .contact {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .logo {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .form-row,
  .why-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 2.75rem;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .section {
    padding: 3rem 0;
  }

  .about-facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .mobile-cta-btn {
    font-size: 0.85rem;
    padding: 0.65rem 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card,
  .btn {
    transition: none;
  }
}

/* Focus visibility for keyboard / a11y */
:focus-visible {
  outline: 3px solid var(--ice-500);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav a:focus-visible,
.phone-link:focus-visible {
  outline: 3px solid var(--ice-500);
  outline-offset: 2px;
}
