/* Design tokens taken from the original Lovable build (styles-BhTOGSWQ.css) */
:root {
    --background: #fcfaf6;
    --foreground: #2b221c;
    --secondary: #f3f0e9;
    --muted-foreground: #6d625b;
    --accent: #9f5436;
    --accent-foreground: #fcfaf6;
    --border: #e1dcd4;
    --radius-sm: 2px;
    --font-sans: Arial, Helvetica, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
}

html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; color: inherit; font: inherit; cursor: pointer; }
svg { display: block; flex-shrink: 0; }

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.main { flex: 1; }

.label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-foreground);
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.75rem; height: 0.75rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 90%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Reference logo: cream ring and bars on a terracotta square (assets/logo/icons/icon-d-ring-and-bars.svg). */
.brand-mark {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Wordmark: POLY bold, MESTER regular, so it is not misread as "polyester". */
.brand-name {
    font-size: 0.95rem;
    line-height: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--foreground);
}

.brand-name strong { font-weight: 700; }

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav a {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--muted-foreground);
    transition: color 0.15s ease;
}

.nav a:hover { color: var(--foreground); }

.nav a.active {
    color: var(--foreground);
    font-weight: 700;
}

.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Mobile dropdown */
.nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
}

.nav.open a { padding: 0.625rem 0; }

@media (min-width: 768px) {
    .nav, .nav.open {
        display: flex;
        flex-direction: row;
        position: static;
        padding: 0;
        border: 0;
        gap: 2rem;
        background: none;
    }
    .nav.open a { padding: 0; }
    .nav-toggle { display: none; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
}

.btn-accent {
    background: var(--accent);
    color: var(--accent-foreground);
    transition: opacity 0.15s ease;
}

.btn-accent:hover { opacity: 0.9; }

.btn-outline {
    border: 1px solid var(--border);
    color: var(--foreground);
    transition: background-color 0.15s ease;
}

.btn-outline:hover { background: var(--background); }

.btn-outline-accent {
    display: inline-flex;
    margin-top: 1rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
}

.hero-inner { position: relative; padding-top: 4rem; padding-bottom: 4rem; }

/* Large pale logo symbol behind the right side of the hero, running off the edge. */
.hero-mark {
    display: none;
    position: absolute;
    top: 50%;
    right: -14rem;
    width: 46rem;
    transform: translateY(-50%);
}

.hero-mark .mark-ring,
.hero-mark .mark-bar { stroke: #E7DED3; }
.hero-mark .mark-halo { stroke: var(--secondary); }

@media (min-width: 900px) {
    .hero-mark { display: block; }
}

.eyebrow {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
}

.hero-title {
    margin-top: 1rem;
    max-width: 48rem;
    font-size: 1.875rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--foreground);
}

.hero-lead {
    margin-top: 1.25rem;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

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

@media (min-width: 640px) {
    .hero-inner { padding-top: 5rem; padding-bottom: 5rem; }
    .hero-title { font-size: 3rem; }
}

/* Services */
.section-services { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.section-head h2 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.section-head p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--muted-foreground);
}

.service-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--border);
}

@media (min-width: 640px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .service-card:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (min-width: 1024px) {
    .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-card {
    display: block;
    background: var(--background);
    padding: 1.5rem;
    transition: background-color 0.15s ease;
}

.service-card:hover { background: var(--secondary); }

.service-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.service-card p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.card-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.card-link svg { transition: transform 0.15s ease; }
.service-card:hover .card-link svg { transform: translateX(0.125rem); }

/* Industries */
.industries {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
}

.industries-inner { padding-top: 3rem; padding-bottom: 3rem; }

.industries .label { letter-spacing: 0.2em; }

.chips {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chips li {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--foreground);
}

/* CTA */
.section-cta { padding-top: 4rem; padding-bottom: 4rem; }

.cta-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
}

.cta-box h2 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.cta-box p {
    margin-top: 0.75rem;
    max-width: 42rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.cta-box .btn { margin-top: 1.5rem; }

@media (min-width: 640px) {
    .cta-box { padding: 2.5rem; }
    .cta-box h2 { font-size: 1.5rem; line-height: 2rem; }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--secondary);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer-text {
    margin-top: 0.75rem;
    max-width: 20rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.footer-links {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { color: var(--foreground); }
.footer-links a:hover { color: var(--accent); }

.footer-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--muted-foreground);
}

.footer-bottom { border-top: 1px solid var(--border); }

.footer-bottom .container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--muted-foreground);
}

/* Shared inner-page building blocks */
.page-hero {
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
}

.page-hero .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.page-hero h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.page-hero p {
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .page-hero h1 { font-size: 2.25rem; line-height: 2.5rem; }
}

.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.band {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
}

.section-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

/* Services page */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
}

.service-item {
    scroll-margin-top: 5rem;
    background: var(--background);
    padding: 2.5rem 0;
}

.service-item:first-child { padding-top: 0; }

@media (min-width: 640px) {
    .service-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        gap: 2.5rem;
    }
}

.service-item h2 {
    margin-top: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.service-summary p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--muted-foreground);
}

.service-detail { margin-top: 1.25rem; }

@media (min-width: 640px) {
    .service-detail { margin-top: 0; }
}

.service-detail > p {
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--foreground);
}

.service-detail .label { margin-top: 1.25rem; }

.check-list { margin-top: 0.75rem; }

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--muted-foreground);
}

.check-list li + li { margin-top: 0.5rem; }

.check-list svg {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

.plan-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.plan {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    padding: 1.5rem;
}

.plan-tag {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.plan h3 {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.plan p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.band .btn { margin-top: 2rem; }

/* About page */
.feature-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--border);
}

@media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.feature {
    background: var(--background);
    padding: 1.5rem;
}

.feature h3 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.feature p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.two-col { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.two-col > div + div { margin-top: 2.5rem; }

@media (min-width: 640px) {
    .two-col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }
    .two-col > div + div { margin-top: 0; }
}

.rule-list { margin-top: 1.5rem; }

.rule-list li {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.rule-list li + li { margin-top: 0.75rem; }

.two-col .note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.two-col .btn { margin-top: 1.5rem; }

/* Contact page */
.contact-layout {
    display: grid;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
    .contact-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.enquiry-form > * + * { margin-top: 1.25rem; }

.field-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.enquiry-form label {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    display: block;
    margin-top: 0.375rem;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    color: var(--foreground);
    outline: none;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus { border-color: var(--accent); }

.form-status {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--muted-foreground);
}

.contact-aside > * + * { margin-top: 1.5rem; }

.info-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.info-box.tinted { background: var(--secondary); }

.info-box h2 {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.info-box ul {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.info-box li + li { margin-top: 0.5rem; }

.info-box p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.info-box .info-box-next { margin-top: 1.25rem; }

.form-note {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* Ten service cards: let the last one fill its row on wide screens. */
@media (min-width: 1024px) {
    .service-card:last-child:nth-child(3n + 1) { grid-column: span 3; }
}

@media (min-width: 640px) {
    .plan-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.section-tight { padding-top: 0; }

/* About: "Who we are" paragraphs */
.prose {
    margin-top: 1.25rem;
    max-width: 46rem;
}

.prose p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

.prose p + p { margin-top: 0.875rem; }
