/* Benjamin Wardle Property Services
 * Vanilla CSS. Tavola-adjacent editorial serif + Inter body, adapted for
 * a Northumberland builder. Palette taken from client's own BWPS logo:
 * deep navy + rust orange on a warm cream ground.
 */

:root {
  --navy: #172a3a;
  --navy-dark: #0e1c28;
  --navy-90: rgba(23, 42, 58, 0.9);
  --rust: #c9622e;
  --rust-dark: #a84e21;
  --cream: #f7f2ea;
  --cream-soft: #efe9dd;
  --ink: #1a2331;
  --stone: #6b7280;
  --line: #e2ddd3;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(23, 42, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 42, 58, 0.1);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --container: 1180px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--rust-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--navy); color: var(--cream);
  padding: 8px 16px; z-index: 200;
}
.skip-link:focus { top: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--navy);
  font-family: var(--sans);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-first {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--navy); font-weight: 600;
}
.brand-last {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--rust);
  font-weight: 700;
  margin-top: 2px;
}
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 28px;
}
.nav-list a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-list a:hover {
  text-decoration: none;
  border-bottom-color: var(--rust);
}
.nav-cta a {
  padding: 8px 0;
  border-bottom: none !important;
}
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); transition: transform 0.2s ease;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--rust); color: var(--white);
  border-color: var(--rust);
}
.btn-primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--white); }

.btn-ghost {
  background: transparent; color: var(--cream);
  border-color: rgba(247, 242, 234, 0.4);
}
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }

.btn-phone {
  background: var(--navy); color: var(--cream);
  border-color: var(--navy);
  padding: 10px 18px; font-size: 14px;
}
.btn-phone:hover { background: var(--rust); border-color: var(--rust); color: var(--white); }

.btn-block { width: 100%; padding: 16px 22px; font-size: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-dark);
  color: var(--cream);
  overflow: hidden;
  padding: 100px 0 110px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 98, 46, 0.16), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(201, 98, 46, 0.10), transparent 50%),
    linear-gradient(135deg, #0e1c28 0%, #172a3a 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247, 242, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 234, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 820px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 20px;
}
.eyebrow-dark { color: var(--rust-dark); }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--cream);
}
.hero-title em {
  font-style: italic;
  color: var(--rust);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(247, 242, 234, 0.85);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.hero-trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 32px;
  color: rgba(247, 242, 234, 0.7);
  font-size: 14px;
}
.hero-trust li { position: relative; }
.hero-trust li:not(:last-child)::after {
  content: '';
  position: absolute; right: -18px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--rust);
  transform: translateY(-50%);
}

/* ---------- Section shared ---------- */

.section { padding: 90px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy);
}
.section-title-light { color: var(--cream); }
.section-lede {
  font-size: 1.05rem;
  color: var(--stone);
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-media { min-width: 0; }
.two-col-body { min-width: 0; }
.two-col .section-title { text-align: left; }

.text-link { color: var(--navy); border-bottom: 1px solid var(--rust); }
.text-link:hover { color: var(--rust); text-decoration: none; }

/* ---------- About ---------- */

.section-about {
  background: var(--white);
}
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--cream-soft);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 420px;
}
.portrait-placeholder svg { width: 100%; height: 100%; }
.about-signoff {
  margin-top: 28px;
  font-size: 1rem;
  color: var(--navy);
}

/* ---------- Services ---------- */

.section-services {
  background: var(--cream);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 32px 26px;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  color: var(--rust);
}
.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.service-desc {
  color: var(--stone);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Work ---------- */

.section-work {
  background: var(--white);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-tile {
  aspect-ratio: 4 / 3;
  background: var(--cream-soft);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.work-tile svg, .work-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.work-tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(23, 42, 58, 0.92) 0%, rgba(23, 42, 58, 0) 100%);
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

/* ---------- Trust strip ---------- */

.section-trust {
  background: var(--cream-soft);
  padding: 80px 0;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.trust-item h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 10px;
}
.trust-item p {
  color: var(--stone);
  margin: 0;
  font-size: 0.98rem;
}
.trust-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--rust);
  margin-bottom: 8px;
}

/* ---------- Contact ---------- */

.section-contact {
  background: var(--navy);
  color: var(--cream);
  padding: 100px 0 90px;
}
.two-col-contact { align-items: flex-start; }
.contact-lede {
  color: rgba(247, 242, 234, 0.8);
  margin: 0 0 32px;
}
.contact-facts {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
}
.contact-facts li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
}
.contact-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rust);
}
.contact-value {
  color: var(--cream);
  font-size: 1.05rem;
}
a.contact-value:hover {
  color: var(--rust);
  text-decoration: none;
}

.contact-form {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 4px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(201, 98, 46, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-row .field { margin-bottom: 20px; }
.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0;
}
.form-note {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--stone);
  text-align: center;
}
.form-note.error { color: #c02b1f; }
.form-note.success { color: #1f8a4c; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(247, 242, 234, 0.7);
  padding: 40px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: baseline; gap: 8px;
  color: var(--cream);
}
.footer-brand .brand-first { color: rgba(247, 242, 234, 0.9); }
.footer-brand .brand-last { color: var(--rust); font-size: 20px; margin: 0; }
.footer-tag {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(247, 242, 234, 0.6);
}
.footer-contact {
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center;
}
.footer-contact a { color: rgba(247, 242, 234, 0.85); }
.footer-contact a:hover { color: var(--rust); text-decoration: none; }
.footer-meta { color: rgba(247, 242, 234, 0.5); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-media { max-width: 480px; margin: 0 auto; }
  .trust-strip { grid-template-columns: 1fr; gap: 32px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 80px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .contact-facts li { grid-template-columns: 1fr; gap: 4px; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a {
    padding: 14px 24px;
    border-bottom: none;
    display: block;
  }
  .nav-cta { padding: 12px 24px; }
  .nav-cta a { width: 100%; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}
