/*
Theme Name: Nova Concept Maintenance
Theme URI: https://novaconceptbuild.uk/
Author: Nova Concept Maintenance
Description: Bespoke, lightweight WordPress theme for Nova Concept Maintenance.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: nova-concept
*/

:root {
  --ink: #162321;
  --ink-soft: #344541;
  --forest: #1e332f;
  --forest-deep: #13231f;
  --gold: #c99b52;
  --gold-dark: #a87831;
  --sand: #f5f1e9;
  --sand-deep: #ebe3d6;
  --paper: #fffdf9;
  --white: #ffffff;
  --line: #ded8cd;
  --danger: #9e2a2b;
  --success: #246b49;
  --shadow: 0 18px 45px rgba(19, 35, 31, 0.12);
  --radius: 18px;
  --content: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; z-index: 100000; top: 16px; left: 16px;
  width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; background: var(--white); color: var(--ink); border-radius: 8px;
}

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--sand { background: var(--sand); }
.section--dark { color: var(--white); background: var(--forest-deep); }
.eyebrow {
  display: inline-block; margin: 0 0 10px; color: var(--gold-dark);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.section--dark .eyebrow { color: #e0ba7d; }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading--center { margin-inline: auto; text-align: center; }
h1, h2, h3, h4 { margin: 0 0 0.55em; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.35rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.25em; }
.lead { color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.section--dark .lead { color: rgba(255,255,255,.78); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 23px; border: 2px solid transparent;
  border-radius: 999px; background: var(--gold); color: var(--forest-deep);
  font-weight: 800; line-height: 1.1; text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); background: #d8ad68; }
.button--outline { border-color: rgba(255,255,255,.65); background: transparent; color: var(--white); }
.button--outline:hover { border-color: var(--white); background: var(--white); color: var(--forest-deep); }
.button--dark { background: var(--forest-deep); color: var(--white); }
.button--dark:hover { background: var(--forest); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.site-header {
  position: sticky; z-index: 1000; top: 0; color: var(--white);
  background: rgba(19,35,31,.97); box-shadow: 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; min-height: 82px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; color: var(--white); text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { display: block; font-size: 1.06rem; font-weight: 900; line-height: 1.05; }
.brand-sub { display: block; color: #e0ba7d; font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: rgba(255,255,255,.88); font-size: .95rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #e0ba7d; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button { min-height: 44px; padding: 10px 17px; font-size: .9rem; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: var(--white); }
.menu-toggle span { display: block; width: 27px; height: 2px; margin: 6px 0; background: currentColor; transition: .2s; }

.hero {
  position: relative; display: grid; min-height: 720px; align-items: center;
  color: var(--white); background: var(--forest-deep); overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,28,24,.96) 0%, rgba(12,28,24,.75) 48%, rgba(12,28,24,.2) 100%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 110px 0; }
.hero h1 span { color: #e0ba7d; }
.hero .lead { max-width: 680px; color: rgba(255,255,255,.82); }
.hero .button-row { margin-top: 30px; }

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgba(19,35,31,.07); }
.card-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 26px; }
.card-body p { color: var(--ink-soft); }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); font-weight: 800; text-decoration: none; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card-link:hover::after { transform: translateX(4px); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(42px, 7vw, 90px); }
.split-media { overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.split-media img { width: 100%; min-height: 500px; object-fit: cover; }
.check-list { display: grid; gap: 14px; padding: 0; margin: 26px 0 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.check-list li::before { content: "✓"; display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--sand-deep); color: var(--gold-dark); }
.stat { position: absolute; right: -22px; bottom: 28px; min-width: 160px; padding: 22px; border-radius: 16px; background: var(--gold); color: var(--forest-deep); box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2rem; line-height: 1; }
.media-wrap { position: relative; }

.project-card { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--radius); color: var(--white); }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(10,25,21,.9)); }
.project-card-content { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 25px; }
.project-card:hover img { transform: scale(1.035); }
.location { color: #e8c894; font-size: .88rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.area-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.area-pill { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 800; }
.testimonial { padding: 30px; border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgba(19,35,31,.07); }
.stars { color: var(--gold-dark); letter-spacing: .13em; }
.testimonial blockquote { margin: 18px 0; color: var(--ink-soft); font-size: 1.05rem; }

.cta { padding: 70px 0; color: var(--white); background: var(--forest); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta h2 { max-width: 720px; margin-bottom: 10px; }

.page-hero { padding: 105px 0 75px; color: var(--white); background: linear-gradient(135deg, var(--forest-deep), var(--forest)); }
.page-hero .lead { max-width: 720px; color: rgba(255,255,255,.78); }
.prose { max-width: 800px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.45em; }

.service-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 590px; color: var(--white); background: var(--forest-deep); }
.service-hero-content { display: flex; align-items: center; }
.service-hero-content-inner { max-width: 610px; padding: 80px 50px max(80px, 8vw) max(24px, calc((100vw - var(--content))/2)); }
.service-hero-image { width: 100%; height: 100%; object-fit: cover; }
.service-inclusions { columns: 2; column-gap: 30px; padding: 0; list-style: none; }
.service-inclusions li { break-inside: avoid; margin: 0 0 13px; padding-left: 28px; position: relative; }
.service-inclusions li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 900; }

.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.contact-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #bfc7c3; border-radius: 10px; padding: 13px 14px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-status { margin-bottom: 22px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.form-status--success { background: #e4f3ea; color: var(--success); }
.form-status--error { background: #f8e6e6; color: var(--danger); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { display: grid; gap: 18px; padding: 0; list-style: none; }
.contact-list li { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; margin-bottom: 3px; }

.site-footer { padding: 70px 0 25px; color: rgba(255,255,255,.76); background: var(--forest-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 42px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: #e0ba7d; }
.footer-bottom { margin-top: 45px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

.empty-state { padding: 50px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.pagination { margin-top: 42px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination a, .pagination span { display: grid; min-width: 42px; min-height: 42px; place-items: center; border-radius: 8px; background: var(--sand); text-decoration: none; }
.pagination .current { background: var(--forest); color: var(--white); }

@media (max-width: 1040px) {
  .primary-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.is-open {
    position: fixed; display: block; top: 82px; right: 0; bottom: 0; left: 0;
    padding: 35px 24px; background: var(--forest-deep); overflow: auto;
  }
  .primary-nav.is-open ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav.is-open a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.15rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 30px), var(--content)); }
  .section { padding: 64px 0; }
  .hero { min-height: 650px; }
  .hero::after { background: rgba(12,28,24,.78); }
  .hero-content { padding: 80px 0; }
  .grid--3, .grid--4, .split, .contact-layout, .service-hero { grid-template-columns: 1fr; }
  .split-media img { min-height: 380px; }
  .stat { right: 14px; }
  .service-hero-image { min-height: 380px; order: -1; }
  .service-hero-content-inner { padding: 58px 24px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .service-inclusions { columns: 1; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-inner { min-height: 72px; }
  .brand { min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: .95rem; }
  .brand-sub { font-size: .68rem; }
  .primary-nav.is-open { top: 72px; }
  .button-row .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 23px; }
  .project-card { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
