/* Sun Circuit Tech, shared styles */

:root{
  --bg: #FFFBF0;
  --ink: #3A3121;
  --sub: #6B5F49;
  --brand: #A85F08;
  --brand-dark: #8F5007;
  --brand-ink: #FFFFFF;
  --sun: #F2B705;
  --panel: #FBF1D6;
  --line: #EBDDB6;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Verdana, "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
}

h1, h2, h3{
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  text-wrap: balance;
}

img{ max-width: 100%; }

a{ color: var(--brand-dark); }
a:focus-visible{ outline: 3px solid var(--sun); outline-offset: 2px; }

/* Header */
.sitehead{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.logo{
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
}
.logo svg{ flex: none; }
.nav{
  justify-self: center;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav a{
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 26px;
}
.nav a:hover{
  border-color: var(--sun);
  background: #F9EBC2;
}
.nav a[aria-current="page"]{
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.phonebtn{ justify-self: end; }
.phonebtn{
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  white-space: nowrap;
}
.phonebtn:hover{ background: var(--brand-dark); }

/* Buttons */
.btn{
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 10px;
  padding: 18px 30px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.btn:hover{ background: var(--brand-dark); }
.btn.alt{
  background: transparent;
  color: var(--brand-dark);
  border: 3px solid var(--brand);
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 10px;
}

/* "Serving Ocala, Florida" location line */
.serving{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 16px 7px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.05rem;
  color: var(--sub);
}
.serving .pin{ color: var(--brand); flex: none; }
.serving b{ color: var(--ink); font-weight: 700; }

/* Homepage hero */
.hero{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero h1{
  font-size: 2.7rem;
  margin: 0;
}
.hero p{
  font-size: 1.3rem;
  color: var(--sub);
  margin: 16px 0 26px;
  max-width: 48ch;
}
.btnrow{ display: flex; gap: 16px; flex-wrap: wrap; }
.heroimg{
  width: 100%;
  min-height: 260px;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

/* Trust pills */
.trust{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 28px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pill{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
}
.pill span{ color: var(--brand); margin-right: 8px; }

/* Service cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 54px 28px 64px;
  max-width: 1080px;
  margin: 0 auto;
}
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card h2{
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.card p{
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--sub);
}
.card a{ font-size: 1.15rem; font-weight: 700; }

/* Reviews */
.reviews{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 64px;
}
.reviews h2{
  font-size: 1.9rem;
  text-align: center;
  margin: 0 0 6px;
}
.subline{
  text-align: center;
  color: var(--sub);
  font-size: 1.15rem;
  margin: 0 0 32px;
}
.revgrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.revcard{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.stars{
  color: #DFA400;
  font-size: 1.35rem;
  letter-spacing: 3px;
  margin: 0 0 10px;
}
.revcard blockquote{
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.revcard cite{
  font-style: normal;
  font-weight: 700;
  color: var(--sub);
  font-size: 1rem;
}
.revcta{
  text-align: center;
  margin-top: 32px;
}

/* Phone stripe */
.stripe{
  background: var(--brand);
  color: var(--brand-ink);
  text-align: center;
  padding: 22px 28px;
  font-size: 1.35rem;
}
.stripe a{ color: #FFE9A8; font-weight: 800; text-decoration: underline; }
.stripe b{ color: #FFE9A8; }

/* Inner pages */
.pagebody{
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 28px 60px;
}
.pagebody.wide{ max-width: 1080px; }
.pagebody h1{ font-size: 2.4rem; margin: 0 0 10px; }
.lede{ font-size: 1.3rem; color: var(--sub); margin: 0 0 34px; max-width: 60ch; }

/* Services page groups */
.svcgroup{ margin-top: 48px; }
.svcgroup > h2{ font-size: 1.7rem; margin: 0 0 4px; }
.groupsub{ color: var(--sub); font-size: 1.15rem; margin: 0 0 20px; }
.svcgrid{ display: grid; gap: 18px; align-items: stretch; }
.svcgrid.cols2{ grid-template-columns: 1fr 1fr; }
.svcgrid.cols3{ grid-template-columns: repeat(3, 1fr); }
.svcgrid .card h3{
  margin: 12px 0 8px;
  font-size: 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
}
.svcgrid .card p{ margin: 0; font-size: 1.05rem; color: var(--sub); }
.imgtile{
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

/* How a house call works */
.steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.step{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.step p{ margin: 12px 0 0; font-size: 1.05rem; color: var(--sub); }
.step b{ color: var(--ink); }
.stepnum{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.3rem;
}

.sunicon{
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.4rem;
}

.pricebox{
  background: var(--panel);
  border: 2px solid var(--sun);
  border-radius: 12px;
  padding: 26px 30px;
  margin: 36px 0;
  font-size: 1.2rem;
}
.pricebox h2{ margin: 0 0 8px; font-size: 1.5rem; }
.pricebox p{ margin: 0; }

/* About page */
.aboutgrid{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 36px;
}
.portrait{
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sub);
  font-style: italic;
  font-size: 0.95rem;
  padding: 14px;
  flex: none;
}
.aboutgrid p{ font-size: 1.2rem; margin: 0 0 18px; max-width: 60ch; }
.logomark{ width: 190px; height: 190px; flex: none; display: block; }

/* Footer */
.sitefoot{
  padding: 26px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--sub);
  font-size: 1rem;
}
.sitefoot p{ margin: 6px 0; }
.sitefoot a{ font-weight: 700; }
.credit{ font-size: 0.85rem; margin-top: 14px; }

/* Small screens */
@media (max-width: 900px){
  .sitehead{ grid-template-columns: 1fr; justify-items: center; row-gap: 14px; }
  .logo, .nav, .phonebtn{ justify-self: center; }
}
@media (max-width: 760px){
  .hero{ grid-template-columns: 1fr; padding: 38px 28px 44px; }
  .hero h1{ font-size: 2.2rem; }
  .hero p{ font-size: 1.2rem; }
  .cards{ grid-template-columns: 1fr; padding-top: 40px; }
  .revgrid{ grid-template-columns: 1fr; }
  .svcgrid.cols2, .svcgrid.cols3, .steps{ grid-template-columns: 1fr; }
  .imgtile{ min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .photorow{ grid-template-columns: 1fr; }
  .aboutgrid{ grid-template-columns: 1fr; justify-items: center; }
  .aboutgrid p{ text-align: left; }
  .pagebody h1{ font-size: 2rem; }
  body{ font-size: 18px; }
}

/* Phones */
@media (max-width: 560px){
  body{ font-size: 17px; }

  /* Tighter side gutters so text isn't cramped */
  .sitehead{ padding: 16px 18px; }
  .hero{ padding: 30px 18px 36px; gap: 28px; }
  .trust{ padding: 24px 18px; gap: 10px; }
  .cards{ padding: 32px 18px 44px; }
  .reviews{ padding: 0 18px 48px; }
  .stripe{ padding: 20px 18px; font-size: 1.15rem; }
  .pagebody{ padding: 30px 18px 44px; }
  .sitefoot{ padding: 22px 18px; }

  /* Headings scale down so long words don't overflow */
  .hero h1{ font-size: 1.85rem; }
  .hero p{ font-size: 1.15rem; }
  .pagebody h1{ font-size: 1.75rem; }
  .lede{ font-size: 1.15rem; }
  .reviews h2{ font-size: 1.6rem; }
  .pricebox h2{ font-size: 1.3rem; }

  /* Nav pills wrap tighter and the phone button spans the width for easy tapping */
  .nav{ gap: 8px; }
  .nav a{ font-size: 1.1rem; padding: 9px 18px; }
  .phonebtn{
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Full width, thumb friendly call to action buttons */
  .btnrow{ flex-direction: column; align-items: stretch; }
  .btnrow .btn{ width: 100%; text-align: center; padding: 16px 20px; }

  .pricebox{ padding: 22px 20px; }
}

/* Very narrow phones */
@media (max-width: 380px){
  .hero h1{ font-size: 1.6rem; }
  .logo{ font-size: 1.35rem; }
  .logo svg{ width: 28px; height: 28px; }
}

/* ============================================================
   Booking form modal (js/booking.js injects the markup)
   ============================================================ */
.bk-overlay{
  position: fixed;
  inset: 0;
  background: rgba(58, 49, 33, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 100;
}
.bk-overlay[hidden]{ display: none; }

.bk-modal{
  background: var(--bg);
  border: 3px solid var(--line);
  border-radius: 14px;
  width: 100%;
  max-width: 470px;
  margin: auto;
  padding: 22px 24px;
  box-shadow: 0 18px 50px rgba(58, 49, 33, 0.28);
  animation: bk-rise 180ms ease-out;
}
@keyframes bk-rise{
  from{ transform: translateY(12px); opacity: 0; }
  to{ transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .bk-modal{ animation: none; }
}

.bk-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.bk-modal h2{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  margin: 0;
  text-wrap: balance;
}
.bk-x{
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--sub);
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
  font-family: inherit;
}
.bk-x:hover{ color: var(--ink); }

.bk-sub{ color: var(--sub); margin: 3px 0 14px; font-size: 0.92rem; }

.bk-field{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 11px; }
.bk-field label{ font-weight: 700; font-size: 0.95rem; }
.bk-field .bk-opt{ font-weight: 400; color: var(--sub); }
.bk-field input,
.bk-field textarea,
.bk-field select{
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
}
.bk-field textarea{ min-height: 84px; resize: vertical; }

/* Own arrow so the control matches the text inputs across browsers */
.bk-field select{
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5F49' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

.bk-field input:hover,
.bk-field textarea:hover,
.bk-field select:hover{ border-color: var(--brand); }
.bk-field input:focus-visible,
.bk-field textarea:focus-visible,
.bk-field select:focus-visible,
.bk-modal button:focus-visible,
.bk-modal a:focus-visible{
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

/* Hidden from people, catches naive bots that fill every field */
.bk-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-actions{ display: flex; gap: 10px; margin-top: 16px; }
.bk-actions .btn{ font-size: 1rem; padding: 12px 22px; cursor: pointer; font-family: inherit; }
.bk-actions .btn[disabled]{ opacity: 0.6; cursor: progress; }

.bk-fallback{
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  color: var(--sub);
  font-size: 0.92rem;
}
.bk-fallback a{ color: var(--brand-dark); font-weight: 700; }

.bk-msg{
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  border: 2px solid #A32C1B;
  color: #A32C1B;
  background: #FCEFEC;
}
.bk-msg[hidden]{ display: none; }
.bk-msg a{ color: #A32C1B; font-weight: 700; }

.bk-done{ text-align: center; padding: 12px 0 4px; }
.bk-check{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2F6B34;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 14px;
}
.bk-done h2{ margin-bottom: 8px; }
.bk-done p{ color: var(--sub); margin: 0 0 22px; }
.bk-done .btn{ cursor: pointer; font-family: inherit; }

@media (max-width: 520px){
  .bk-modal{ padding: 22px 18px; }
  .bk-actions{ flex-direction: column; }
  .bk-actions .btn{ width: 100%; text-align: center; }
}
