/* Lancashire Smiles — design direction: precision-mono
   Deep teal primary, coral accent, off-white base, near-black text.
   Monospace for labels/numbers, neutral sans for prose. Grid-visible layout. */

:root {
  --teal: #0f4c5c;
  --teal-dark: #0a343f;
  --coral: #e36414;
  --offwhite: #fdf6f0;
  --ink: #141414;
  --line: rgba(15, 76, 92, 0.18);
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --banner-h: 34px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--banner-h);
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Proposal banner (fixed, unremovable, offsets content) ---------- */
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-h);
  background: #141414;
  color: #fdf6f0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 0.5rem;
}

/* ---------- Watermark (fixed, sparse, low-opacity, non-interactive) ---------- */
.watermark {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  transform: rotate(-30deg) scale(1.5);
}
.watermark span {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 3.4rem;
  color: rgba(20, 20, 20, 0.06);
  white-space: nowrap;
  letter-spacing: 0.3em;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img {
  height: 34px;
  width: auto;
}
.brand-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tel-link {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid var(--teal);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.tel-link:hover { background: var(--teal); color: var(--offwhite); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--coral);
  color: var(--teal);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 380px;
  max-height: 620px;
  overflow: hidden;
  background: var(--teal-dark);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-caption {
  position: relative;
  margin-top: -140px;
  z-index: 2;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral);
  padding: 1.75rem 1.75rem 2rem;
}
.mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin: 0 0 0.6rem;
}
.hero-caption h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
}
.hero-caption p {
  margin: 0 0 1.25rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  border: 1px solid var(--coral);
}
.btn-primary {
  background: var(--coral);
  color: var(--ink);
}
.btn-primary:hover { background: #c9550e; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--offwhite); }

/* ---------- Sections / grid-visible layout ---------- */
.section {
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}
.section.alt-bg { background: #f4ece2; }
.section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin: 0 0 1rem;
}
.section > .container > p:not(.mono-label) {
  max-width: 68ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem;
}
.card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}
.card p { margin: 0 0 1rem; }
.card a {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.two-col-grid > div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem;
}
.two-col-grid h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.two-col-grid p { margin: 0; }

.cta-section {
  background: var(--teal);
  color: var(--offwhite);
  border-bottom: none;
}
.cta-section .mono-label { color: #bfe3ea; }
.cta-section h2 { color: var(--offwhite); }
.cta-section p { color: #e4f0f2; }

/* ---------- Service blocks (services.html) ---------- */
.service-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.service-block .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.service-block.reverse .container {
  grid-template-columns: 1.1fr 0.9fr;
}
.service-block.reverse figure { order: 2; }
.service-block figure {
  margin: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral);
  overflow: hidden;
}
.service-block figure img { width: 100%; height: 320px; object-fit: cover; }
.service-block h2 { margin: 0 0 0.75rem; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.service-index {
  font-family: var(--mono);
  font-size: 2.5rem;
  color: var(--line);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

/* ---------- Photo grid (about.html) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 1.75rem;
  border: 1px solid var(--line);
}
.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--offwhite);
}

/* ---------- Data table (facts / hours) ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
}
.data-table th {
  background: #f4ece2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  width: 40%;
}

/* ---------- Contact page / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.form-field {
  margin-bottom: 1.15rem;
}
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--teal);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.field-error {
  display: block;
  color: #9c2b0e;
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  min-height: 1em;
}
.form-status {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--teal);
  margin-top: 1rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { border-color: #17663f; color: #17663f; }
.form-status.error { border-color: #9c2b0e; color: #9c2b0e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: #e4f0f2;
}
.site-footer .container {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(228, 240, 242, 0.15);
}
.footer-grid img { height: 30px; margin-bottom: 0.9rem; }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.9rem;
  color: #bfe3ea;
}
.footer-grid nav a,
.footer-grid p, .footer-grid a {
  color: #e4f0f2;
  display: block;
  text-decoration: none;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}
.footer-grid nav a:hover, .footer-grid a:hover { color: var(--coral); }
.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #9fc4cb;
}
.proposal-note {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #f2c9a8;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .service-block .container,
  .service-block.reverse .container {
    grid-template-columns: 1fr;
  }
  .service-block.reverse figure { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .two-col-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
  .site-header .container { flex-wrap: wrap; position: relative; }
  .hero-caption { margin-top: -60px; margin-left: 1rem; margin-right: 1rem; }
  .hero-media { height: 46vh; min-height: 300px; }
  .watermark span { font-size: 2.1rem; }
}
