/* Clover Home Repairs — site styles. Colours come from the logo badge. */
:root {
  --green: #09350C;        /* badge green */
  --green-2: #1E5A24;      /* lighter green for hovers */
  --brown: #8B571B;        /* badge brown */
  --brown-2: #A86C28;
  --cream: #FAF6EE;        /* page background */
  --paper: #FFFFFF;
  --ink: #1F2620;          /* body text */
  --muted: #5B6559;
  --line: #E4DCCB;
  --radius: 14px;
  --head: "Alegreya", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 18px/1.65 var(--body); color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: 64px; }
.brand span { font: 700 1.35rem/1.1 var(--head); color: var(--green); }
.brand small { display: block; font: 600 .78rem/1.2 var(--body); letter-spacing: .14em; color: var(--brown); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--green); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: #EEF3EC; }
.nav a.btn { color: #fff; }

/* Buttons */
.btn { display: inline-block; background: var(--brown); color: #fff; padding: 13px 24px; border-radius: 10px; border: 0;
       text-decoration: none; font: 700 1rem/1 var(--body); cursor: pointer; }
.btn:hover { background: var(--brown-2); }
.btn.alt { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn.alt:hover { background: rgba(255,255,255,.12); }

/* Hero */
.hero { background: var(--green); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font: 700 clamp(2.1rem, 4.6vw, 3.3rem)/1.1 var(--head); margin: 0 0 14px; color: #fff; }
.hero p { font-size: 1.15rem; margin: 0 0 24px; color: #E8F0E6; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .badge { background: #fff; border-radius: 50%; padding: 18px; max-width: 320px; justify-self: center;
               box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* Sections */
section { padding: 56px 0; }
h1, h2, h3 { font-family: var(--head); color: var(--green); line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: #EEF3EC; display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; padding: 0; list-style: none; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 64px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
                    border-radius: 50%; background: var(--brown); color: #fff; font-weight: 700; display: grid; place-items: center; }
.alt-bg { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.promise div { border-left: 4px solid var(--brown); padding: 4px 0 4px 16px; }
.promise strong { display: block; color: var(--green); font-family: var(--head); font-size: 1.15rem; }

.cta { background: var(--brown); color: #fff; border-radius: var(--radius); padding: 34px; display: flex; flex-wrap: wrap;
       gap: 18px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin: 0; }
.cta .btn { background: var(--green); }
.cta .btn:hover { background: var(--green-2); }

/* Pages */
.page-head { background: var(--green); color: #fff; padding: 40px 0; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-head p { margin: 6px 0 0; color: #E8F0E6; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.note { font-size: .95rem; color: var(--muted); }

/* Forms */
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 600; display: grid; gap: 6px; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #C9C2B2; border-radius: 10px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid #CFE0CB; border-color: var(--green); }
.hidden { display: none; }

/* Footer */
.site-footer { background: var(--green); color: #DCE7DA; padding: 36px 0; margin-top: 56px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer img { width: 54px; height: 54px; background: #fff; border-radius: 50%; padding: 4px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero .wrap, .two, .row { grid-template-columns: 1fr; }
  .hero .badge { max-width: 220px; order: -1; }
  .brand img { width: 52px; height: 52px; }
  .brand small { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 8px; font-size: .95rem; }
}

/* Veteran & senior discount band (home page) */
.discount { margin: 32px 0 0; background: #FFF8EC; border: 2px solid var(--brown); border-radius: var(--radius); padding: 20px 24px;
            display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.discount strong { font: 700 1.35rem/1.2 var(--head); color: var(--green); }
.discount span { flex: 1 1 320px; color: var(--ink); }

/* Urgent / after-hours band (under What we do) */
.urgent { margin-top: 20px; background: var(--green); color: #fff; border-radius: var(--radius); padding: 20px 24px;
          display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.urgent > div:nth-child(2) { flex: 1 1 360px; }
.urgent strong { display: block; font: 700 1.35rem/1.2 var(--head); color: #fff; margin-bottom: 4px; }
.urgent span { color: #E8F0E6; }
.urgent .icon { background: rgba(255,255,255,.15); }
.urgent .icon svg { stroke: #fff; }

/* Underline under section headings (What we do, How it works, ...) */
section h2 { display: inline-block; padding-bottom: 6px; border-bottom: 4px solid var(--brown); margin-bottom: 14px; }
.cta h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

/* Discount banner: thin and simple */
.discount { padding: 10px 20px; justify-content: center; text-align: center; }
.discount strong { font-size: 1.2rem; }

/* About: "Good to know" heading bigger and underlined */
.panel.good h3 { font-size: 1.6rem; display: inline-block; margin: 0 0 12px; padding-bottom: 4px; border-bottom: 3px solid var(--brown); }

/* Contact: preferred contact method choice */
fieldset.choice { border: 1px solid #C9C2B2; border-radius: 10px; padding: 10px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
fieldset.choice legend { font-weight: 600; padding: 0 6px; }
fieldset.choice label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
fieldset.choice input { width: auto; }
input[type=file] { padding: 10px; background: #FAF6EE; }
.site-footer small { color: #DCE7DA; }

/* Quote preference disclosure (red, small) */
.disclose { display: block; width: 100%; color: #B3261E; font-weight: 400; font-size: .7rem; line-height: 1.35; margin-top: -6px; }

.row { align-items: start; }

.opt { color: #B3261E; font-weight: 400; font-size: .7rem; margin-left: 4px; }

.lbl { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.lbl .opt { margin-left: 0; }

/* About: single column now that "Good to know" is gone */
.about > div { max-width: 760px; }

/* Phone view tweaks */
@media (max-width: 760px) {
  .brand span { display: none; }                 /* logo alone, so the menu fits on one line */
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 6px 7px; font-size: .9rem; white-space: nowrap; }
  .nav a.btn { padding: 7px 10px; margin-left: 2px; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .card .icon { grid-row: 1; }
  .card h3 { margin: 0; }
  .card p { grid-column: 1 / -1; margin-top: 10px; }
}

/* Hero headline and buttons centered */
.hero .wrap > div:first-child { text-align: center; }
.hero .actions { justify-content: center; }

/* Celtic knotwork border on the green banners (delicate, a shade lighter than the banner) */
.hero, .page-head, .site-footer { position: relative; }
.hero::after, .page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 32px;
  background: url("knotwork.svg") repeat-x center / auto 100%; pointer-events: none; opacity: .9; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 32px;
  background: url("knotwork.svg") repeat-x center / auto 100%; pointer-events: none; opacity: .9; }
.hero .wrap { padding-bottom: 76px; }
.page-head { padding-bottom: 62px; }
.site-footer { padding-top: 64px; }

/* Matching knotwork border along the opposite edge of each green banner */
.hero::before, .page-head::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 32px;
  background: url("knotwork.svg") repeat-x center / auto 100%; pointer-events: none; opacity: .9; }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 32px;
  background: url("knotwork.svg") repeat-x center / auto 100%; pointer-events: none; opacity: .9; }
.hero .wrap { padding-top: 76px; }
.page-head { padding-top: 62px; }
.site-footer { padding-bottom: 64px; }
