:root {
    --green: #173b2f;
    --green-dark: #0b2119;
    --green-light: #24513f;
    --cream: #f7f4ed;
    --white: #ffffff;
    --text: #17201b;
    --muted: #46534c;
    --border: #c9d2cc;
    --accent: #9a6500;
    --max-width: 1180px;
    --radius: 14px;
    --shadow: 0 12px 35px rgba(16, 43, 32, .10);

    /* Text colours for use on dark green backgrounds */
    --on-dark: #ffffff;
    --on-dark-muted: #f1f4f2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    z-index: 9999;
    padding: 12px 18px;
    background: var(--white);
    color: var(--green);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--green);
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--white);
    border-radius: 10px;
    font-weight: 800;
}

.logo strong,
.logo small {
    display: block;
}

.logo small {
    color: var(--muted);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
}

.main-navigation a:hover {
    color: var(--green-light);
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--green);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 7px;
    font-weight: 700;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.nav-cta,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    background: var(--green);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
}

.button:hover,
.nav-cta:hover {
    background: var(--green-dark);
}

.button.secondary {
    background: var(--white);
    color: var(--green) !important;
    border: 2px solid var(--green);
}

.button.secondary:hover {
    background: var(--green);
    color: var(--white) !important;
}

/* =========================================================
   TYPOGRAPHY (light-background default)
   ========================================================= */

h1,
h2,
h3 {
    line-height: 1.15;
    color: var(--green);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    margin: 12px 0 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
    color: var(--green-light);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .82rem;
    font-weight: 800;
}

/* =========================================================
   HERO (light background)
   ========================================================= */

.hero {
    background: var(--cream);
    padding: 90px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 72px;
    align-items: start;
}

.hero-lead,
.hero p {
    font-size: 1.15rem;
    max-width: 680px;
    line-height: 1.8;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        text-align: center;
    }
}

/* =========================================================
   DARK CARD (hero-card / hero-grid > .card / any .card-dark)
   These share one rule set so light text always applies.
   ========================================================= */

.hero-card,
.hero-grid > .card,
.card-dark {
    background: var(--green);
    color: var(--on-dark);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-color: var(--green);
}

.hero-grid > .card {
    position: sticky;
    top: 30px;
}

.hero-card h2,
.hero-card h3,
.hero-grid > .card h2,
.hero-grid > .card h3,
.card-dark h2,
.card-dark h3 {
    color: var(--on-dark);
    margin-top: 0;
}

.hero-card p,
.hero-grid > .card p,
.card-dark p,
.hero-card .check-list li,
.hero-grid > .card .check-list li,
.card-dark .check-list li {
    color: var(--on-dark-muted);
}

.hero-card .check-list li::before,
.hero-grid > .card .check-list li::before,
.card-dark .check-list li::before {
    color: var(--on-dark);
}

@media (max-width: 900px) {
    .hero-grid > .card {
        position: static;
    }
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 96px 0;
}

.section-alt {
    padding: 96px 0;
    background: #f1f4f1;
    border-top: 1px solid #dfe5e1;
    border-bottom: 1px solid #dfe5e1;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 52px;
}

.section-heading h2 {
    margin-top: 12px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 700px;
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 0;
    color: var(--muted);
}

/* =========================================================
   CARDS (light background, e.g. service cards grid)
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid #d4ddd7;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 28px rgba(23, 59, 47, .055);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.card p {
    margin-bottom: 0;
    line-height: 1.72;
    color: var(--muted);
}

.card .check-list {
    margin-bottom: 0;
}

.cards .card a {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    color: #0f5138;
}

/* =========================================================
   CHECK LIST (default: dark text for light backgrounds)
   ========================================================= */

.check-list {
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 9px 0 9px 30px;
    line-height: 1.55;
    color: #26332d;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #0f5a3d;
    font-weight: 900;
}

/* =========================================================
   CTA (dark background band)
   ========================================================= */

.cta {
    background: var(--green-dark);
    color: var(--on-dark);
    padding: 88px 0;
}

.cta .container {
    max-width: 900px;
}

.cta h2 {
    color: var(--on-dark);
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.cta p {
    color: var(--on-dark-muted);
    max-width: 700px;
    margin-bottom: 28px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */

.page-header {
    background: var(--cream);
    padding: 88px 0 78px;
    border-bottom: 1px solid #d9dfda;
}

.page-header .container {
    max-width: 900px;
}

.page-header h1 {
    max-width: 850px;
    margin: 14px 0 22px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-header p {
    max-width: 760px;
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--muted);
}

/* =========================================================
   CONTENT (long-form page copy, light background)
   ========================================================= */

.content {
    max-width: 850px;
}

.content h2 {
    margin-top: 54px;
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    margin-top: 38px;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.content p {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: 1.05rem;
    line-height: 1.82;
    color: #34413a;
}

.content p + p {
    margin-top: 0;
}

.content li {
    color: #34413a;
}

.content ul {
    margin: 24px 0 30px;
}

.content a:not(.button) {
    color: #0f5138;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.content a:not(.button):hover {
    color: var(--green-dark);
}

.content .button {
    margin-top: 14px;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-item {
    padding: 30px 0;
    border-bottom: 1px solid #d5ddd8;
}

.faq-item:first-child {
    border-top: 1px solid #d5ddd8;
}

.faq-item h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.faq-item p {
    max-width: 900px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5750;
}

/* =========================================================
   FORM
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 80px;
    align-items: start;
}

.form {
    display: grid;
    gap: 18px;
    padding: 38px;
    border: 1px solid #d4ddd7;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 12px 36px rgba(23, 59, 47, .07);
}

.form > div {
    margin-bottom: 22px;
}

.form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #68756e;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font: inherit;
}

.form input::placeholder,
.form textarea::placeholder {
    color: #4b5851;
    opacity: 1;
}

.form textarea {
    min-height: 170px;
    resize: vertical;
}

.form button {
    border: 0;
    cursor: pointer;
}

.form .button {
    margin-top: 8px;
}

/* =========================================================
   FOOTER (dark background)
   ========================================================= */

.site-footer {
    background: var(--green-dark);
    color: var(--on-dark-muted);
    padding: 60px 0 20px;
}

.site-footer h2 {
    color: var(--on-dark);
    font-size: 1.2rem;
}

.site-footer p,
.site-footer span {
    color: var(--on-dark-muted);
}

.site-footer a {
    color: var(--on-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: #f4d58a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 8px 0;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom a {
    margin-left: 15px;
}

/* =========================================================
   FOCUS STATES
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .main-navigation {
        gap: 14px;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation a {
        padding: 10px 0;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 60px 0 52px;
    }

    .section,
    .section-alt {
        padding: 64px 0;
    }

    .cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 26px;
    }

    .form {
        padding: 24px;
    }
}

.cta .eyebrow {
    color: var(--on-dark-muted);
}

/* =========================================================
   HERO IMAGE (full-width banner above .hero text section)
   ========================================================= */

.hero-image {
    line-height: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 30px auto;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: block;
}

.gallery-caption {
  margin-top: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .gallery-grid {
    gap: 15px;
  }
  .gallery-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 10px;
  }
  .gallery-caption {
    font-size: 0.8rem;
  }
}

/* Based in Bodmin */
.based-in-bodmin {
  font-size: 1.1rem;
  color: #27ae60;
  font-weight: 500;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}


/* Hero subtitle contrast badge (canonical) */
.hero-subtitle-badge {
    display: inline-block;
    background: #ffffff;
    color: #173b2f;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 0.5rem 0 1rem;
}
