/* 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; }
.credit{ font-size: 0.85rem; }

/* 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; }
}
