/* Replacement Windows Brighton
   Regency stucco, slate roofs, Channel grey-green, ochre facades. */

:root {
  --paper:   #FFFFFF;
  --mist:    #EDF1F1;   /* sea mist, alternate sections */
  --slate:   #22313A;   /* text, slate roofs */
  --slate-2: #52626B;   /* secondary text */
  --sea:     #24566A;   /* Channel grey-green: links, rules, bands */
  --sea-2:   #1B4353;
  --ochre:   #D9A441;   /* Regency ochre: calls to action */
  --ochre-2: #C8922D;
  --rail:    #1C2A31;   /* iron railings: footer */
  --line:    #D5DDDF;
  --max:     1180px;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans:  'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--slate); line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); margin-bottom: .6em; max-width: 24ch; }
h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.25; color: var(--slate); }
h3 { font-size: 1.2rem; margin-bottom: .4em; }
p { margin-bottom: 1rem; color: var(--slate-2); max-width: 68ch; }
a { color: var(--sea); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-2); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-block; background: var(--ochre); color: var(--slate);
  padding: 14px 26px; border: 2px solid var(--ochre); border-radius: 2px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ochre-2); border-color: var(--ochre-2); color: var(--slate); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--ghost { background: transparent; color: var(--slate) !important; border-color: var(--slate) !important; }
.btn--ghost:hover { background: var(--slate); color: #fff !important; }
.muted { color: var(--slate-2); font-size: .95rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; max-width: var(--max); margin: 0 auto; }
.nav__logo, .nav__logo strong { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--slate); text-decoration: none; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__links a { color: var(--slate); font-weight: 600; font-size: 1rem; text-decoration: none; }
.nav__links a:hover { color: var(--sea); }
.has-dropdown { position: relative; }
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none; }
.has-dropdown:hover::after { display: block; }
.dropdown { display: none; position: absolute; top: calc(100% + 12px); left: -18px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--sea); min-width: 270px; padding: 8px 0; list-style: none; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 18px; font-weight: 500; }
.dropdown a:hover { background: var(--mist); }
.nav__call { background: var(--ochre); color: var(--slate) !important; padding: 10px 16px; border-radius: 2px; }
.nav__call:hover { background: var(--ochre-2); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--slate); }
@media (max-width: 960px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 9px 0; }
  .dropdown { position: static; display: block; border: 0; padding: 4px 0 0 14px; min-width: 0; }
  .nav__toggle { display: block; }
}

/* hero: photograph with a stucco plaque laid over its lower edge */
.hero { position: relative; padding-top: min(54vh, 520px); }
.hero__media { position: absolute; top: 0; left: 0; right: 0; height: min(66vh, 640px); background: var(--mist); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative; background: var(--paper);
  max-width: 660px; padding: 44px 48px 40px;
  margin-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  margin-right: 24px;
  outline: 1px solid var(--sea); outline-offset: -12px;
}
.hero__eyebrow { color: var(--sea); font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.hero h1 { margin-bottom: 14px; }
.hero p { font-size: 1.15rem; }
.hero__cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero { padding-top: 46vw; }
  .hero__media { height: 58vw; }
  .hero__inner { margin: 0 16px; padding: 30px 26px 28px; outline-offset: -8px; }
}

/* sections */
.section { padding: 72px 0; }
.section--alt { background: var(--mist); }
.section__lead { max-width: 68ch; }
.section__lead p { max-width: 68ch; }
.center { text-align: left; }
.center .section__lead { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* points: plain columns under a sea rule, no boxes */
.grid { display: grid; gap: 36px 48px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { border-top: 2px solid var(--sea); padding-top: 18px; }
.card p:last-child { margin-bottom: 0; }

/* area and service lists */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; list-style: none; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .linklist { grid-template-columns: 1fr; } }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: block; padding: 14px 0; color: var(--slate); font-weight: 600; text-decoration: none; }
.linklist a:hover { color: var(--sea); }
.section--alt .linklist, .section--alt .linklist li { border-color: #C9D3D5; }

/* photographs between sections */
.figure { padding: 8px 0 !important; }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; max-height: 640px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 1rem; }
th { font-weight: 700; border-bottom: 2px solid var(--sea); }

/* FAQ */
.faq { max-width: 820px !important; margin-left: 0 !important; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 18px 36px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--sea); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* call band */
.cta-band { background: var(--sea); color: #fff; text-align: left; padding: 64px 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; grid-column: 1; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.86); grid-column: 1; margin-bottom: 0; }
.cta-band p:has(.btn) { grid-column: 2; grid-row: 1 / span 2; margin-top: 0 !important; }
.cta-band .muted { grid-column: 2; color: rgba(255,255,255,.75) !important; margin-top: 8px !important; font-size: .9rem; }
.cta-band .btn:hover { background: #fff; border-color: #fff; }
@media (max-width: 760px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band p:has(.btn), .cta-band .muted { grid-column: 1; grid-row: auto; margin-top: 20px !important; }
}

/* forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--sea); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #B9C5C8; border-radius: 2px; font-family: var(--sans); font-size: 1rem; color: var(--slate); background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: var(--sea); }
.field textarea { min-height: 130px; resize: vertical; }

/* footer */
.site-footer { background: var(--rail); color: rgba(255,255,255,.78); padding: 60px 0 28px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer > .wrap > .footer-grid > div:first-child h4 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.site-footer p { color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.85); font-size: .95rem; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .85rem; color: rgba(255,255,255,.55) !important; margin-top: 10px; line-height: 1.5; }

/* text pages */
.article { max-width: 760px; }
.article h1 { margin-bottom: 16px; }
.article h2 { margin-top: 44px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article h3 { margin-top: 28px; }
.article ul, .article ol { margin: 0 0 1rem 1.3em; color: var(--slate-2); }
.article li { margin-bottom: .45rem; }
.faq-page h2 { font-size: 1.4rem; margin-top: 36px; }
.contact-list { list-style: none; margin: 22px 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

.wc-phone { font-weight: 700; }
.form-error { color: #9B2C1F; font-weight: 700; margin: 0 0 16px; }
