/* Handyman Sevierville — site stylesheet
   Palette and type are matched to the original Duda site:
   header/buttons #59a3d4, tagline #075c93, dark strips #424242,
   button text #463939, Montserrat body/headings, Yeseva One nav. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Yeseva One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/yeseva-one-latin.woff2') format('woff2');
}

:root {
  --blue: #59a3d4;
  --blue-deep: #075c93;
  --dark: #424242;
  --brown: #463939;
  --ink: #020202;
  --paper: #ececec;
  --white: #ffffff;
  --shadow: 0 3px 11px rgba(2, 2, 2, 0.35);
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-nav: 'Yeseva One', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--blue); position: sticky; top: 0; z-index: 100; }
.header-inner {
  max-width: 1560px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.header-logo { flex: 0 0 auto; }
.header-logo img { width: 300px; height: auto; }
.header-center { flex: 1 1 auto; text-align: center; }
.tagline {
  color: var(--blue-deep); font-size: 24px; font-weight: 700;
  text-shadow: 0 0 15px #fff; margin-bottom: 6px;
}
.main-nav { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.main-nav a {
  font-family: var(--font-nav); font-size: 24px; color: var(--ink);
  text-decoration: none; padding: 2px 4px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.main-nav .sep { font-family: var(--font-nav); font-size: 22px; color: var(--ink); }
.nav-services { position: relative; }
.nav-services > a .caret { font-size: 15px; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); min-width: 250px; box-shadow: var(--shadow);
  border-radius: 8px; padding: 8px 0; z-index: 50; list-style: none; text-align: left;
}
.nav-services:hover .dropdown, .nav-services:focus-within .dropdown { display: block; }
.dropdown a {
  display: block; font-family: var(--font-body); font-size: 16px;
  padding: 9px 18px; border-bottom: none;
}
.dropdown a:hover { background: var(--paper); }
.header-call { flex: 0 0 auto; }
.btn { display: inline-block; text-decoration: none; text-align: center;
  border-radius: 50px; padding: 13px 30px; font-family: var(--font-body);
  font-size: 18px; font-weight: 500; box-shadow: var(--shadow); border: none; cursor: pointer; }
.btn-white { background: var(--white); color: var(--brown); }
.btn-blue { background: var(--blue); color: var(--brown); }
.btn:hover { filter: brightness(1.05); }
.header-phone { display: none; color: var(--white); }
.header-phone svg { width: 30px; height: 30px; display: block; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 6px;
  padding: 6px 10px; cursor: pointer; }
.nav-toggle svg { display: block; width: 24px; height: 24px; }

/* ---------- Hero (home) ---------- */
.hero-home {
  background: url('../images/hero-home.jpg') center 30% / cover no-repeat;
  text-align: center; padding: 130px 20px 90px;
  position: relative; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-home .kicker { font-size: 34px; font-weight: 700; color: var(--ink); }
.hero-home h1 {
  font-size: clamp(48px, 7vw, 80px); font-weight: 700; color: var(--blue);
  line-height: 1.1; margin: 6px 0 24px;
}
.hero-home .lead { max-width: 720px; margin: 0 auto 40px; font-size: 20px; font-weight: 600; }
.hero-actions { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 240px; text-transform: uppercase; }
.hero-actions .btn.plain { text-transform: none; }

/* ---------- Split hero (service pages) ---------- */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.hero-split .hero-img { background-size: cover; background-position: center; min-height: 320px; }
.hero-split .hero-copy {
  background: url('../images/texture-wall.jpg') center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 60px 32px; gap: 28px;
}
.hero-split h1 { font-size: clamp(34px, 4vw, 50px); font-weight: 700; line-height: 1.15; max-width: 480px; }
.hero-split .hero-actions { gap: 18px; }
.hero-split .btn { text-transform: uppercase; font-size: 18px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-center { text-align: center; }
.section-center .cta-row { justify-content: center; }
.section-center p { max-width: 880px; margin-left: auto; margin-right: auto; }
.icon-tools { width: 44px; height: 44px; margin: 0 auto 10px; display: block; color: #22303c; }
.accent-bar { width: 150px; height: 5px; background: var(--blue); border-radius: 3px; margin-bottom: 20px; }
.section-texture { background: url('../images/texture-wall.jpg') center / cover no-repeat; }
.section-paper { background: var(--paper); }
.section-blue { background: var(--blue); }
.section-dark { background: var(--dark); color: var(--white); }
.section-imgbg { background-size: cover; background-position: center; position: relative; color: var(--white); }
.section-imgbg .veil { position: absolute; inset: 0; background: rgba(13, 19, 26, 0.68); }
.section-imgbg--light { color: var(--ink); }
.section-imgbg .wrap { position: relative; z-index: 1; }
.bg-roof { background-image: url('../images/roof-bg.jpg'); }
.bg-appliance { background-image: url('../images/appliance-bg.jpg'); }

h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; margin-bottom: 12px; }
.section-body p { margin-bottom: 16px; }
.section-body ul { margin: 0 0 16px 24px; }
.section-body li { margin-bottom: 8px; }
.center { text-align: center; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.cta-row.center { justify-content: center; }
.cta-row .btn { text-transform: uppercase; }
.section-img { border-radius: 10px; box-shadow: var(--shadow); }

/* Quick-links strip on home */
.quick-links { background: var(--dark); display: flex; justify-content: space-evenly; align-items: center;
  flex-wrap: wrap; gap: 14px; padding: 30px 20px; }
.quick-links a.btn { background: var(--white); color: var(--brown); min-width: 150px; flex: 0 1 200px; padding: 10px 20px; }

/* Deck style cards */
.style-strip { font-family: var(--font-nav); font-size: clamp(20px, 2.6vw, 30px); text-align: center;
  color: var(--brown); margin-bottom: 34px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card .card-body { padding: 20px 22px 26px; }

/* ---------- Form ---------- */
.form-card {
  background: var(--blue); color: var(--white); border-radius: 20px;
  box-shadow: var(--shadow); padding: 34px 36px 40px; max-width: 520px; width: 100%;
}
.form-badge { width: 176px; height: auto; margin: 0 auto 6px; display: block; }
.form-card h3 { text-align: center; font-size: 28px; }
.form-card .form-sub { text-align: center; }
.form-card h3 { margin-bottom: 4px; }
.form-card .form-sub { font-size: 15px; margin-bottom: 20px; }
.form-card label { display: block; font-size: 17px; font-weight: 600; margin: 16px 0 0; }
.form-card input, .form-card textarea {
  width: 100%; padding: 8px 2px; font-family: var(--font-body); font-size: 16px; color: var(--white);
  border: none; border-bottom: 1px solid rgba(255, 252, 250, 0.75); border-radius: 0; background: transparent;
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-bottom: 2px solid var(--white); }
.form-card button { width: 100%; margin-top: 26px; background: var(--white); color: var(--brown); letter-spacing: 1px; }
.form-note { display: none; margin-top: 14px; font-size: 15px; }
.form-note.ok { display: block; color: #eafff0; font-weight: 600; }
.form-note.err { display: block; color: #ffe1e1; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- How it works ---------- */
.hiw { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hiw-right { color: var(--white); }
.hiw-right h2 { color: var(--white); font-size: clamp(34px, 4vw, 46px); margin-bottom: 26px; }
.steps-acc details { border-bottom: 1px solid rgba(255, 255, 255, 0.65); }
.steps-acc details:first-of-type { border-top: 1px solid rgba(255, 255, 255, 0.65); }
.steps-acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; padding: 20px 4px; font-size: 26px; font-weight: 500; }
.steps-acc summary::-webkit-details-marker { display: none; }
.steps-acc summary::after { content: "+"; font-size: 28px; font-weight: 300; }
.steps-acc details[open] summary::after { content: "\2212"; }
.steps-acc p { padding: 0 4px 20px; max-width: 420px; }

/* ---------- Before / After ---------- */
.ba-cols { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 10px; align-items: center; }
.ba-card { max-width: 420px; }
.ba-wrap { margin: 0; }
.ba-slider { position: relative; overflow: hidden; }
.ba-slider img { width: 100%; display: block; }
.ba-top { position: absolute; inset: 0; width: 100%; overflow: hidden; }
.ba-top img { max-width: none; height: 100%; object-fit: cover; } /* width set by JS to match slider */
.ba-handle { position: absolute; top: 0; bottom: 0; left: 100%; width: 3px; background: var(--white); }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue); box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 6l-6 6 6 6'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat; }
.ba-range { width: 100%; margin-top: 14px; accent-color: var(--blue); }
.ba-labels { display: flex; justify-content: space-between; font-weight: 700; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 30px auto 0; }
.faq-title { color: #4c9cd3; }
.faq-list details { background: #f1f1f1; border: none; border-radius: 4px; margin-bottom: 16px; }
.faq-list summary { cursor: pointer; padding: 22px 70px 22px 24px; font-size: 22px; font-weight: 400; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 20px; background-position: center; background-repeat: no-repeat;
  transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-list details p { padding: 0 24px 22px; color: #555; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--dark); color: var(--white); padding: 56px 20px; }
.cta-strip .cta-inner { max-width: 1150px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.cta-strip h3 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.25; }
.cta-strip h3 .blue { color: #4c9cd3; }
.cta-side { text-align: center; }
.cta-strip .phone { display: inline-block; color: var(--white); font-size: 21px;
  font-weight: 600; text-decoration: underline; margin-bottom: 20px; }
.cta-strip .btn { background: var(--blue); color: var(--white); text-transform: none; display: block; max-width: 240px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); padding: 54px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 40px; text-align: center; }
.footer-grid h3 { font-size: 26px; margin-bottom: 24px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; font-weight: 600; }
.footer-grid li::after { content: ""; display: block; width: 16px; height: 2px;
  background: rgba(2, 2, 2, 0.35); margin: 10px auto 12px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-logo img { width: 190px; margin: 0 auto; }
.site-footer address { font-style: normal; font-weight: 600; }
.site-footer address p { margin-bottom: 14px; }
.site-footer address a { font-weight: 700; text-decoration: underline; }
.footer-bar { background: var(--white); padding: 20px 24px; font-size: 15px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 20px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 28px 0 10px; }
.legal p { margin-bottom: 14px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 100px 20px; }
.notfound h1 { font-size: 60px; color: var(--blue); }

/* ---------- Mobile call bar ---------- */
.mobile-call-bar { display: none; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.info-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 30px; }
.info-card h4 { font-size: 22px; margin-bottom: 6px; }
.hours { list-style: none; margin: 12px 0; }
.hours li { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dashed #d1d1d1; padding: 6px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .header-logo img { width: min(250px, 20vw); }
  .main-nav a { font-size: 21px; }
  .tagline { font-size: 21px; }
}
@media (max-width: 1060px) {
  .header-inner { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
    padding: 8px 18px; gap: 0; }
  .nav-toggle { display: block; grid-column: 1; grid-row: 1; }
  .header-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-logo img { width: min(300px, 42vw); }
  .header-phone { display: block; grid-column: 3; grid-row: 1; justify-self: end; }
  .header-call { display: none; }
  .tagline { display: none; }
  .header-center { grid-column: 1 / -1; grid-row: 2; }
  .main-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 0; }
  .main-nav.open { display: flex; }
  .main-nav .sep { display: none; }
  .dropdown { position: static; transform: none; display: block; box-shadow: none;
    background: transparent; padding: 0; text-align: center; }
  .dropdown a { padding: 6px 10px; }
}
@media (max-width: 900px) {
  .cols-2, .contact-layout, .hiw, .ba-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .cta-strip .cta-inner { grid-template-columns: 1fr; }
  .cta-side { text-align: left; }
  .ba-card { margin: 0 auto; }
  .mobile-call-bar {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--blue-deep); text-align: center; padding: 13px 16px;
  }
  .mobile-call-bar a { color: var(--white); font-size: 19px; font-weight: 700; text-decoration: none; }
  body { padding-bottom: 56px; }
}
@media (max-width: 540px) {
  .footer-grid, .quick-links { grid-template-columns: 1fr; }
  .hero-home { padding: 90px 16px 70px; }
  section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Contact page (stacked, centered like original) ---------- */
.contact-title { font-size: clamp(38px, 5vw, 60px); color: #2e6da4; text-align: center;
  font-weight: 700; margin-bottom: 30px; }
.contact-intro { text-align: center; max-width: 980px; margin: 0 auto 40px; }
.contact-intro h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 26px; }
.contact-intro .covered { color: #2e6da4; font-size: 26px; margin: 10px 0 24px; }
.contact-page .form-card { max-width: none; }
.located { margin-top: 56px; }
.located h4 { font-size: clamp(26px, 3vw, 34px); color: #2e6da4; font-weight: 700; margin-bottom: 6px; }
.located-list { list-style: none; margin-top: 26px; }
.located-list li { display: flex; align-items: flex-start; gap: 26px; margin-bottom: 26px; font-size: 18px; }
.located-list svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--ink); }
.located-list a { color: var(--ink); font-weight: 600; }

/* ---------- Overlay + plain heroes (service pages) ---------- */
.hero-overlay { position: relative; background-size: cover; background-position: center;
  color: var(--white); min-height: 520px; display: flex; align-items: center; padding: 70px 0; }
.hero-overlay::before { content: ""; position: absolute; inset: 0; background: rgba(15, 22, 30, 0.5); }
.hero-overlay .wrap { position: relative; z-index: 1; width: 100%; }
.hero-overlay h1 { font-size: clamp(38px, 4.5vw, 55px); font-weight: 700; margin-bottom: 18px; }
.hero-overlay p { max-width: 660px; font-size: 18px; font-weight: 600; }
.hero-plain { background-size: cover; background-position: center; min-height: 620px; padding: 0; }

/* Deck style accordions */
.style-list summary { font-weight: 700; }
.style-body { padding: 0 24px 22px; }
.style-body img { border-radius: 8px; margin-bottom: 14px; max-width: 560px; width: 100%; }
.rotate-word { color: var(--blue); font-weight: 700; }

/* ---------- Scroll reveal (mirrors the original Duda entrance animations) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Coraline form (inside the blue estimate card) ---------- */
.coraline-form { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.coraline-form__placeholder { text-align: center; padding: 40px 10px; }
.coraline-form__placeholder .btn { background: var(--white); color: var(--brown); }
.coraline-form__placeholder noscript p { color: var(--white); margin-top: 14px; }
