/* Idaho Custom Landscapes homepage preview.
   Colors from their logo: royal blue #2354D4 (darkened to #1B3F9E for text contrast), white.
   Fonts: Montserrat (logo style) for headings, Inter for body. */

:root {
  --blue: #2354d4;
  --blue-dark: #1b3f9e;
  --navy: #0f1f4d;
  --ink: #16203a;
  --slate: #4a5468;
  --bg: #f5f7fc;
  --tint: #e8eefb;
  --green: #2f7d32;
  --white: #fff;
  --head: "Montserrat", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 2.5rem;
  --section: 6rem;
  --radius: 10px;
  --radius-lg: 18px;
  --ribbon: 26px;
}
@media (max-width: 991px) { :root { --pad: 2rem; --section: 4.5rem; } }
@media (max-width: 479px) { :root { --pad: 1.25rem; --section: 3.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; padding-top: var(--ribbon); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--head); line-height: 1.12; color: var(--navy); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--slate); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* Preview ribbon */
.ribbon {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--ribbon);
  display: flex; align-items: center; justify-content: center;
  padding-inline: .75rem; background: #111827; color: #e5e7eb;
  font-size: .75rem; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: var(--white); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-lg { min-height: 3.5rem; padding: .9rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.75rem; padding: .5rem 1.15rem; font-size: .9375rem; }
.btn-white { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.btn-white:hover { background: var(--tint); border-color: var(--tint); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.nav { position: sticky; top: var(--ribbon); z-index: 50; background: rgb(255 255 255 / .96); border-bottom: 1px solid rgb(15 31 77 / .08); backdrop-filter: blur(10px); }
.nav-bar { max-width: 76rem; margin-inline: auto; padding: .7rem var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--blue); }
.logo-mark { width: 1.6rem; height: 2.5rem; flex: none; }
.logo-word { display: flex; flex-direction: column; font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
.logo-name { font-size: 1rem; color: var(--blue); }
.logo-sub { font-size: 1.32rem; color: var(--navy); }
.logo.on-dark, .logo.on-dark .logo-name, .logo.on-dark .logo-sub { color: var(--white); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { font-weight: 500; font-size: .9375rem; text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--blue); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 400px) { .nav-call span { display: none; } .nav-call { width: 2.75rem; padding: 0; } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(44rem, calc(100svh - 7rem)); display: flex; align-items: flex-end; color: var(--white); background: var(--navy); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(10 20 50 / .78) 0%, rgb(10 20 50 / .45) 50%, rgb(10 20 50 / .1) 100%), linear-gradient(0deg, rgb(10 20 50 / .55) 0%, rgb(10 20 50 / 0) 50%); }
.hero-inner { padding-block: 6rem 4rem; display: flex; flex-direction: column; gap: 1.25rem; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 4.1rem); max-width: 14ch; letter-spacing: -0.015em; text-shadow: 0 2px 18px rgb(0 0 0 / .3); }
.hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 36rem; color: rgb(255 255 255 / .95); }
.hero .btn-row { margin-top: .5rem; }
.eyebrow { font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: #cfdcff; }

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid rgb(15 31 77 / .08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 2rem 1rem; text-align: center; text-decoration: none; }
.trust-item + .trust-item { border-left: 1px solid rgb(15 31 77 / .1); }
.trust-value { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.trust-label { font-size: .9375rem; color: var(--slate); }
.trust-google:hover .trust-label { color: var(--blue); text-decoration: underline; }
.stars { color: #e3a21a; letter-spacing: .05em; font-size: 1.1rem; }
@media (max-width: 767px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 1.25rem .5rem; }
  .trust-item + .trust-item { border-left: 0; }
  .trust-item:nth-child(even) { border-left: 1px solid rgb(15 31 77 / .1); }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgb(15 31 77 / .1); }
  .trust-value { font-size: 1.2rem; }
  .trust-label { font-size: .8125rem; }
}

/* Sections */
.section { padding-block: var(--section); }
.s-tint { background: var(--tint); }
.s-dark { background: var(--navy); color: var(--white); }
.s-dark h2 { color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2.75rem; max-width: 44rem; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.tagline { font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.tagline.on-dark { color: #a9c0ff; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 2px rgb(15 31 77 / .06), 0 8px 24px rgb(15 31 77 / .06); }
.svc-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.svc-body p { color: var(--slate); font-size: .975rem; }
.svc-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.more-card { padding: 1.4rem; border-radius: var(--radius-lg); border: 1.5px solid rgb(35 84 212 / .25); display: flex; flex-direction: column; gap: .4rem; }
.more-card p { color: var(--slate); font-size: .975rem; }
@media (max-width: 991px) { .svc-grid, .svc-more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid, .svc-more { grid-template-columns: 1fr; } }

/* Work */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba { margin: 0; background: var(--white); border-radius: var(--radius-lg); padding: .75rem; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ba-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: absolute; top: .5rem; left: .5rem; padding: .15rem .6rem; border-radius: 999px; background: rgb(17 24 39 / .82); color: var(--white); font-size: .8125rem; font-weight: 600; }
.ba-tag.is-after { background: var(--blue); }
.ba figcaption { padding: .75rem .25rem .25rem; font-weight: 600; color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .ba-grid { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 1px 2px rgb(15 31 77 / .06); }
.step-num { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 800; font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--slate); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* Area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.s-dark p { color: rgb(255 255 255 / .85); }
.towns { display: flex; flex-wrap: wrap; gap: .6rem; }
.towns li { padding: .5rem 1rem; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); font-weight: 500; }
.towns li:first-child { background: var(--white); color: var(--navy); font-weight: 700; }
@media (max-width: 767px) { .area-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: .4rem; font-size: 1.0625rem; }
.contact-list a { color: var(--blue-dark); text-decoration: none; overflow-wrap: anywhere; }
.contact-list strong { font-size: 1.4rem; font-family: var(--head); }
.quote-logo { width: 9rem; border-radius: var(--radius-lg); margin-top: .5rem; }
.quote-form { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 12px 36px rgb(15 31 77 / .1); }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea { font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid #c5cde0; border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(35 84 212 / .18); }
.form-note { padding: .85rem 1rem; border-radius: var(--radius); background: #e7f4e8; color: #1e5a21; font-weight: 500; }
@media (max-width: 767px) { .quote-grid { grid-template-columns: 1fr; gap: 2rem; } .field-row { grid-template-columns: 1fr; } .quote-form { padding: 1.4rem; } .quote-logo { display: none; } }

/* Footer */
.footer { background: #0a1638; color: rgb(255 255 255 / .85); padding-block: 3.5rem 1.5rem; font-size: .975rem; }
.footer h3 { color: var(--white); font-size: 1rem; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .875rem; color: rgb(255 255 255 / .65); }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
    position: fixed; inset: auto 0 0; z-index: 40;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgb(10 22 56 / .92); backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgb(10 22 56 / .25);
  }
  .call-bar a { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; border-radius: .625rem; font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
  .call-bar-call { background: var(--blue); color: var(--white); }
  .call-bar-quote { border: 1.5px solid rgb(255 255 255 / .85); color: var(--white); }
  :root { --ribbon: 32px; }
  .ribbon { font-size: .6875rem; white-space: normal; line-height: 1.2; }
  .hero { min-height: 0; }
  .hero-inner { padding-block: 3rem 2.25rem; }
  .hero .btn-row .btn { width: 100%; }
}
