/* Crownseal Inc. - site styles
   Layout follows the Hadley-Irvine pattern: contact bar, logo + nav, photo banner,
   centred section heads, photo cards, "why choose" row, centred call to action, navy footer. */
:root {
  --red: #b3121d;        /* crown red from the logo */
  --red-deep: #8f0e17;
  --ink: #1f2429;        /* headings */
  --text: #4f5961;       /* body copy */
  --line: #e3e5e7;
  --mist: #f4f5f6;       /* light panel */
  --navy: #22263a;       /* footer */
  --paper: #ffffff;

  --display: "Teko", "Oswald", "Arial Narrow", sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --max: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.75rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Top contact bar ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: .88rem; }
.topbar .wrap { max-width: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 6px; }
.topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--red); }
.topbar .ic { color: var(--red); margin-right: 6px; }
.topbar .btn { padding: 8px 16px; font-size: .9rem; color: #fff; }
@media (max-width: 700px) {
  .topbar .area, .topbar .mail { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- Header ---------- */
.site-header { background: var(--paper); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.logo img { width: 230px; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--text); text-decoration: none; line-height: 1;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.menu-btn {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 5px;
  font: 500 1.2rem var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding: 4px 12px 2px; cursor: pointer;
}
@media (max-width: 920px) {
  .menu-btn { display: inline-block; }
  .logo img { width: 180px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--paper); padding: 4px var(--gutter) 16px; border-bottom: 4px solid var(--red);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
}

/* ---------- Banner ---------- */
.banner {
  position: relative; min-height: clamp(200px, 30vw, 360px); display: flex; align-items: center;
  background: var(--navy) url("../img/banner-home.jpg") center / cover no-repeat;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 30, .55); }
.banner .wrap { position: relative; }
.banner-title {
  font-family: var(--display); font-weight: 500; color: #fff; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); line-height: .95; text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.banner.small { min-height: clamp(150px, 18vw, 220px); }
.banner.small .banner-title { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; background: var(--red); color: #fff; border: 0; border-radius: 5px;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .03em; line-height: 1; padding: 16px 26px 12px; cursor: pointer;
}
.btn:hover { background: var(--red-deep); color: #fff; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 6vw, 64px); }
.section + .section { border-top: 1px solid var(--line); }
.wrap > .section { padding-inline: 0; }
.center { text-align: center; }
.head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: 32px; }
.head p { max-width: 62ch; }
.intro { display: grid; gap: 18px; justify-items: center; text-align: center; }
.intro p { max-width: 64ch; font-size: 1.1rem; }
.foot-link { text-align: center; margin-top: 28px; }

/* ---------- Photo cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--navy); text-decoration: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 17, 24, .85) 0%, rgba(15, 17, 24, .15) 55%, rgba(15, 17, 24, 0) 100%); }
.card span {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff;
  font-family: var(--display); font-size: 1.6rem; line-height: 1;
}
.card:hover img { transform: scale(1.04); }
@media (max-width: 480px) { .card span { font-size: 1.3rem; left: 12px; right: 12px; } }
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: 6px; width: 100%; }
.split .txt { display: grid; gap: 16px; align-content: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.feature { background: var(--mist); border-top: 5px solid var(--red); }
.section.feature + .section { border-top: 0; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 13px; height: 7px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}

/* ---------- Service rows (services page) ---------- */
.svc { display: grid; gap: clamp(40px, 6vw, 64px); }
.svc .split img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Area tiles ---------- */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.areas li {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 92px; padding: 12px;
  border-radius: 6px; background: var(--mist); border-bottom: 4px solid var(--red);
  font-family: var(--display); font-size: 1.6rem; color: var(--ink); line-height: 1;
}

/* ---------- Why choose ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; text-align: center; }
.why > div { display: grid; gap: 10px; align-content: start; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: 28px; background: var(--mist); border-radius: 6px; display: grid; gap: 16px; align-content: start; }
.quote blockquote { margin: 0; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--display); font-size: 4rem; line-height: .6; color: var(--red); margin-bottom: 6px; }
.quote figcaption { font-family: var(--display); font-size: 1.4rem; color: var(--ink); line-height: 1.1; }
.quote figcaption span { display: block; font-family: var(--body); font-size: .92rem; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0 12px; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--display); font-size: 1.55rem; color: var(--ink); line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 20px; margin: 0; }
.contact-list dt { font-family: var(--display); font-size: 1.4rem; color: var(--ink); line-height: 1; }
.contact-list dd { margin: 4px 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }

form.quote-form { display: grid; gap: 16px; background: var(--mist); padding: clamp(20px, 3vw, 32px); border-radius: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #c9ced3; border-radius: 5px; padding: 11px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(179, 18, 29, .15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { font-weight: 700; }
.form-status.ok { color: #1d6b35; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9bdc9; text-align: center; padding-block: 40px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 6px; justify-items: center; }
.site-footer a { color: #ff5a63; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 10px; }
.foot-contact a { color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stars { color: #e8a317; letter-spacing: 2px; margin-right: 6px; }
.foot-contact span { color: #b9bdc9; }
/* Window well cover gallery */
.gallery-title { text-align: center; margin: clamp(40px, 6vw, 56px) 0 20px; font-size: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
