/* Latona Contracting brand — royal navy, bright blue, yellow accent, silver.
   Matches the colors and condensed-italic headings of their existing site. */
:root {
  --ink: #14163a;
  --ink-soft: #4b4f6b;
  --paper: #f3f3f5;
  --paper-2: #e6e7ec;
  --line: #d4d6de;
  --navy: #01016f;          /* their royal navy */
  --navy-deep: #0b0d33;     /* footer navy */
  --navy-mid: #1c2456;      /* textured contact band */
  --blue: #2e8ffc;          /* their "Free Estimates" button */
  --blue-dark: #1a74db;
  --yellow: #f5de2b;        /* their accent */
  --wood: var(--blue); --wood-dark: var(--blue-dark); /* aliases used by admin.html */
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(10, 12, 50, .08), 0 10px 28px rgba(10, 12, 50, .12);
  --head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --serif: var(--head);
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; line-height: 1.02; margin: 0 0 .45em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--navy); }
h3 { font-size: 1.45rem; color: var(--navy); }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--head); font-weight: 700; font-style: italic; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: .4rem; }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 4px; font-family: var(--head); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: #000050; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #ffe94a; }

/* Top info bar + header */
.topbar-info { background: var(--navy); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar-info .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; padding: .45rem 0; }
.topbar-info a { text-decoration: none; color: var(--white); font-weight: 600; }
.topbar-info .hl { color: var(--yellow); font-weight: 700; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(#fdfdfd, #e9eaee); border-bottom: 3px solid var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,40,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.08rem; color: var(--navy); letter-spacing: .02em; }
.nav a:hover { color: var(--blue); }
.nav .btn { color: var(--white); padding: .55rem 1.1rem; font-size: 1.05rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--navy); }

/* Hero */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(90deg, rgba(1,1,80,.92) 0%, rgba(1,1,80,.78) 42%, rgba(1,1,80,.15) 75%, rgba(1,1,80,0) 100%), url("img/brand/pic-home-1.jpg") center / cover no-repeat;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4.5rem, 10vw, 8rem);
}
.hero h1 { max-width: 13ch; text-shadow: 0 2px 12px rgba(0,0,40,.35); }
.hero h1 em { color: var(--yellow); font-style: italic; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.hero-badges li::before { content: "✓"; color: var(--yellow); font-weight: 800; margin-right: .4rem; }

/* Navy special strip (from their "Web Special" banner) */
.special { background: var(--navy); color: var(--white); text-align: center; padding: .9rem 0; }
.special p { margin: 0; font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(1.25rem, 3vw, 1.9rem); line-height: 1.15; }
.special span { color: var(--yellow); }
.special small { display: block; font-family: var(--sans); font-style: normal; text-transform: none; font-weight: 400; font-size: .82rem; color: rgba(255,255,255,.75); margin-top: .2rem; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-head { margin-bottom: 2.2rem; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.textured { background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 9px), linear-gradient(180deg, #f1f2f5, #e3e5ea); }
.alt { background: var(--paper-2); }

/* Intro */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.framed { background: var(--white); padding: 6px; box-shadow: var(--shadow); border-radius: 2px; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat-row div { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--navy); font-size: 1rem; line-height: 1.1; }
.stat-row b { display: block; font-size: 2.6rem; color: var(--blue); }

/* Service cards with real photos */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.service { background: var(--white); padding: 6px 6px 1.1rem; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .2s; border-radius: 2px; }
.service:hover { transform: translateY(-3px); }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service h3 { text-align: center; margin: .8rem 0 .2rem; font-size: 1.5rem; }
.service p { text-align: center; color: var(--ink-soft); font-size: .9rem; margin: 0 .6rem; }
.also { text-align: center; margin-top: 1.8rem; color: var(--ink-soft); }
.also strong { color: var(--navy); }

/* Why / process */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-item { border-top: 4px solid var(--blue); padding-top: 1rem; }
.why-item .n { font-family: var(--head); font-weight: 700; font-style: italic; color: var(--yellow); background: var(--navy); display: inline-block; padding: 0 .55rem; margin-bottom: .5rem; }
.why-item p { color: var(--ink-soft); font-size: .95rem; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.05rem; padding: .4rem 1rem; border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 4px; cursor: pointer; }
.filters button.on { background: var(--navy); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gallery button { padding: 0; border: 0; background: var(--white); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
.more { text-align: center; margin-top: 1.4rem; }
.lightbox { position: fixed; inset: 0; background: rgba(5,6,30,.94); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9rem; }

/* FAQ + area */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
details { background: var(--white); border-left: 4px solid var(--blue); padding: .9rem 1.1rem; margin-bottom: .7rem; box-shadow: 0 1px 2px rgba(0,0,40,.06); }
summary { font-weight: 700; color: var(--navy); cursor: pointer; }
details p { margin: .6rem 0 0; color: var(--ink-soft); }
.towns { font-size: .9rem; color: var(--ink-soft); columns: 3; column-gap: 1.2rem; padding: 0; list-style: none; margin: 0; }
.towns li { break-inside: avoid; }
.towns-wrap { max-height: 300px; overflow: hidden; position: relative; }
.towns-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(228,230,235,0), #e4e6eb); }
.towns-wrap.open { max-height: none; }
.towns-wrap.open::after { display: none; }
.linkish { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: .4rem 0; font: inherit; font-weight: 700; }

/* Estimate band */
.estimate-band { background: var(--navy); text-align: center; padding: 0; }
.estimate-band .tab { display: inline-block; background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 2rem; padding: .7rem 2.6rem; }
.estimate {
  color: var(--white);
  background: linear-gradient(rgba(20,28,75,.92), rgba(20,28,75,.92)), url("img/brand/bg-texture.png") center / cover, var(--navy-mid);
}
.estimate h2, .estimate h3 { color: var(--yellow); }
.estimate .lead { color: rgba(255,255,255,.8); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 2rem; }
.hours td { padding: .38rem 0; border-bottom: 1px solid rgba(255,255,255,.15); text-transform: uppercase; }
.hours td:last-child { text-align: right; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; font-size: .92rem; }
.people strong { display: block; font-size: 1.05rem; color: var(--white); }
.people a { color: rgba(255,255,255,.85); text-decoration: none; display: block; word-break: break-word; }
.people a:hover { color: var(--yellow); }
form.card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2rem); box-shadow: var(--shadow); }
form.card h3 { color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .3rem; margin-bottom: .9rem; }
.field label { font-size: .86rem; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; padding: .65rem .8rem; border: 1px solid #c4c7d3; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-msg { display: none; padding: 1rem; border-radius: 4px; background: #e6f4ea; color: #1e5a30; font-weight: 600; margin-top: 1rem; }
.form-msg.show { display: block; }
.badge-line { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }

/* Footer */
.site-footer { background: #0a0b2a; color: rgba(255,255,255,.65); padding: 2.6rem 0 2rem; text-align: center; font-size: .86rem; }
.site-footer .logo { width: 230px; margin: 0 auto 1.4rem; }
.social { display: flex; justify-content: center; gap: .8rem; margin-bottom: 1.2rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem; }
.social a:hover { background: var(--blue); }
.social svg { width: 20px; height: 20px; }
.site-footer a { color: rgba(255,255,255,.85); }

/* legacy classes used by admin.html */
.brand-mark { width: 38px; height: 38px; border-radius: 6px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--head); font-style: italic; font-weight: 700; font-size: 1.4rem; }
.brand-name { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: .68rem; letter-spacing: .12em; color: var(--ink-soft); }

@media (max-width: 980px) {
  .services, .why { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .intro, .two-col, .estimate-grid { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #f4f4f7; border-bottom: 3px solid var(--navy); padding: 1rem 16px 1.4rem; gap: .9rem; }
  .nav.open { display: flex; }
  .hero { background: linear-gradient(rgba(1,1,80,.82), rgba(1,1,80,.82)), url("img/brand/pic-home-1.jpg") center / cover; }
}
@media (max-width: 600px) {
  .services, .why, .people { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .towns { columns: 2; }
  .brand img { height: 54px; }
  .topbar-info .wrap { justify-content: center; text-align: center; }
  .topbar-info .hide-sm { display: none; }
  .estimate-band .tab { font-size: 1.6rem; padding: .6rem 1.6rem; }
}

.sms-consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; color: var(--ink-soft); margin: 0 0 .9rem; line-height: 1.4; }
.sms-consent input { margin-top: .15rem; flex: none; }
