/* Maplewoods — modernised local site styles */

:root {
  --color-bg: #f7f4ef;
  --color-surface: #ffffff;
  --color-text: #1c262b;
  --color-text-muted: #5a6770;
  --color-accent: #a84f2e;
  --color-accent-hover: #8c3f24;
  --color-accent-soft: #f3e8e1;
  --color-border: #e2ddd4;
  --color-hero-overlay: rgba(22, 32, 38, 0.62);
  --shadow-sm: 0 1px 2px rgba(28, 38, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 38, 43, 0.1);
  --radius: 12px;
  --radius-lg: 18px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --header-height: 4.5rem;
  --container: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.brand img {
  height: 7rem;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
  font: inherit;
  color: var(--color-text);
}

.nav-toggle-bars {
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.6rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(28rem, 72vh, 40rem);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--color-hero-overlay), var(--color-hero-overlay)),
    url("../images/background/banner.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  padding-block: 5rem 4rem;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
section {
  padding-block: 4.5rem;
  padding-top: 8rem;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-header p,
.lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Services */
.services {
  margin-top: -3rem;
  padding-top: 4rem;
  position: relative;
  z-index: 2;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.service-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* About */
.about {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Coverage */
.coverage {
  background: var(--color-text);
  color: #fff;
}

.coverage .section-title {
  color: #fff;
}

.coverage-inner > p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

.postcode-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

@media (min-width: 520px) {
  .postcode-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.postcode-list div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.postcode-list dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.postcode-list dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* Gallery */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.project-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e4de;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 1.25rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.project-body > p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.project-link {
  font-weight: 600;
}

/* Contact */
.contact {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.contact-inner {
  max-width: 36rem;
}

.contact-email {
  display: inline-block;
  margin: 1rem 0 2rem;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.opening-hours h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.opening-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.opening-hours li span:first-child {
  color: var(--color-text);
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Ashford video page */
.video-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #161f26;
  color: #fff;
}

.video-header {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.video-header a:hover {
  color: var(--color-accent-soft);
}

.video-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 2rem;
}

.video-wrap {
  width: var(--container);
  max-height: calc(100vh - 8rem);
}

.video-wrap video {
  width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: var(--radius);
  background: #000;
}

.video-caption {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
