/* =====================================================================
   M DESIGNS & DRAFTING — STYLESHEET
   =====================================================================
   HOW TO EDIT
   - Colours and fonts are set once in :root below. Change them there
     and the whole site updates.
   - Sections are labelled with numbered banners, e.g. "4. HEADER & MENU".
   ===================================================================== */


/* ===== 1. COLOURS, FONT AND SIZES ===== */

:root {
    --navy:         #17303d;   /* headings, icon tiles, hero and footer */
    --navy-band:    #1b3a48;   /* contact band                          */
    --blue:         #1e4555;   /* main buttons                          */
    --copper:       #984e32;   /* small labels on light backgrounds     */
    --copper-light: #efab89;   /* small labels on dark backgrounds      */
    --accent:       #c47550;   /* ticks, step numbers, icon base        */
    --cream:        #f7f6f2;   /* alternate section background          */
    --white:        #ffffff;
    --ink:          #192a31;   /* main text                             */
    --muted:        #52636a;   /* secondary text                        */
    --light-text:   #d0dde0;   /* text on dark backgrounds              */
    --line:         #dce2e1;   /* card borders                          */

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --max-width: 1140px;
    --radius: 12px;
}


/* ===== 2. BASICS ===== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}

img { max-width: 100%; }

a { color: inherit; }

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

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

h1, h2, h3 {
    margin: 0 0 .6em;
    line-height: 1.2;
    letter-spacing: -.01em;
    font-weight: 600;
    color: var(--navy);
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

/* Small copper label above headings */
.eyebrow {
    display: block;
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--copper);
}


/* ===== 3. BUTTONS ===== */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 13px 24px;
    border-radius: 8px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.btn:hover { background: var(--navy); border-color: var(--navy); }

/* Light button (used on dark backgrounds) */
.hero .btn,
.cta .btn,
.contactbox .btn {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--navy);
}

.hero .btn:hover,
.cta .btn:hover,
.contactbox .btn:hover { background: #dbe4e3; border-color: #dbe4e3; }

/* Outline button (used on dark backgrounds) */
.btn.outline {
    background: transparent !important;
    border-color: #a8babe !important;
    color: var(--cream) !important;
}

.btn.outline:hover { background: #294a58 !important; }

/* Text link with arrow */
.link {
    color: var(--copper);
    font-weight: 600;
    text-decoration: none;
}

.link:hover { text-decoration: underline; }


/* ===== 4. HEADER & MENU ===== */

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

.top .container {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo: square "M" mark plus name */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--navy);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: inset 0 -4px 0 var(--accent);
}

.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;
}

.brand-name small {
    display: block;
    margin-top: 3px;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.nav a:hover,
.nav a.active { color: var(--copper); }

.nav .navcta {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

.nav .navcta:hover,
.nav .navcta.active { background: var(--blue); color: var(--white); }

/* Mobile menu button (hidden on desktop) */
.menu {
    display: none;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: none;
    color: var(--navy);
    font: inherit;
    font-size: .9rem;
}


/* ===== 5. HERO (dark band at the top of each page) ===== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    color: var(--light-text);
    background: var(--navy);
}

/* Home page: faint photo behind the title.
   To change the photo, replace assets/hero-bg.jpg.
   To make it stronger or fainter, change the .86 / .72 values. */
.hero.photo {
    background:
        linear-gradient(90deg, rgba(23, 48, 61, .96) 0%, rgba(23, 48, 61, .86) 55%, rgba(23, 48, 61, .72) 100%),
        url("assets/hero-bg.jpg") center 40% / cover no-repeat,
        var(--navy);
}

.hero h1 { color: var(--white); max-width: 760px; }

.hero .eyebrow { color: var(--copper-light); }

.hero .lead {
    max-width: 640px;
    font-size: 1.12rem;
    color: var(--light-text);
}

/* Smaller hero for inner pages */
.hero.small { padding: 72px 0 64px; }

.breadcrumb {
    margin-bottom: 18px;
    font-size: .85rem;
    color: #a8babe;
}

.breadcrumb a { color: inherit; }

/* Pill tags under the hero buttons */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50px;
    font-size: .85rem;
    color: var(--light-text);
}


/* ===== 6. SECTIONS ===== */

.section { padding: 88px 0; }

.section.alt { background: var(--cream); }

/* Centred heading block at the top of a section */
.section-head {
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-head p { color: var(--muted); }


/* ===== 7. CARDS AND ICONS ===== */

.grid {
    display: grid;
    gap: 22px;
}

.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four  { grid-template-columns: repeat(4, 1fr); }
.grid.two   { grid-template-columns: repeat(2, 1fr); }

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.card h3 { margin: 18px 0 8px; }

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

.card .link { display: inline-block; margin-top: 16px; font-size: .92rem; }

/* Navy icon tile with copper base */
.icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--navy);
    box-shadow: inset 0 -4px 0 var(--accent);
}

.icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Price line on pricing cards */
.price {
    margin: 4px 0 10px !important;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy) !important;
}

/* Numbered step cards */
.step-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.step h3 { margin-top: 14px; }


/* ===== 8. TWO-COLUMN LAYOUTS ===== */

.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: start;
}

.split > * { min-width: 0; }

/* Shaded panel */
.panel {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid var(--line);
}

.section.alt .panel { background: var(--white); }

.panel h3 { margin-bottom: 14px; }

/* Ticked list */
.ticks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding: 7px 0 7px 30px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 16px;
    height: 9px;
    border-left: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg);
}

/* ===== 9. TABLE (what you send / what you get) ===== */

.table-wrap { overflow-x: auto; }

table.simple {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .97rem;
}

table.simple th,
table.simple td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

table.simple th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

table.simple tr:last-child td { border-bottom: 0; }


/* ===== 10. FAQ ===== */

details {
    margin: 0 0 12px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
}

details p { margin: 10px 0 0; color: var(--muted); }


/* ===== 11. CONTACT BOX ===== */

.contactbox {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--light-text);
}

.contactbox h3 { color: var(--white); }

.contactbox .email {
    display: block;
    margin: 6px 0 18px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--copper-light);
    overflow-wrap: anywhere;
    user-select: all;
}

.note { font-size: .88rem; color: var(--muted); }

.contactbox .note { color: #a8babe; margin-top: 14px; }


/* ===== 12. CALL TO ACTION BAND ===== */

.cta {
    padding: 64px 0;
    background: var(--navy-band);
    color: var(--light-text);
}

.cta .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta h2 { color: var(--white); margin-bottom: .3em; }

.cta p { margin: 0; }

.cta .actions { margin-top: 0; }


/* ===== 13. FOOTER ===== */

.footer {
    padding: 48px 0;
    background: var(--navy);
    color: var(--light-text);
    font-size: .93rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
}

.footer strong { display: block; margin-bottom: 8px; color: var(--white); }

.footer a { color: var(--cream); }

.footer a:hover { color: var(--copper-light); }

.footer p { margin: 0; }


/* ===== 14. TABLET ===== */

@media (max-width: 900px) {
    .grid.three,
    .grid.four { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 36px; }
}


/* ===== 15. PHONE ===== */

@media (max-width: 680px) {
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .top .container { min-height: 64px; }

    .menu { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px 18px 20px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .nav.open { display: flex; }
    .nav a { padding: 8px 4px; }
    .nav .navcta { text-align: center; }

    .hero { padding: 64px 0 56px; }
    .hero.small { padding: 52px 0 44px; }
    .section { padding: 60px 0; }

    .grid.three,
    .grid.four,
    .grid.two { grid-template-columns: 1fr; }

    .panel,
    .contactbox,
    .card { padding: 24px; }
}


/* ===== 16. PRICING ===== */

/* Small label under each service title, e.g. "Quoted per drawing" */
.quote-tag {
    display: inline-block;
    margin: 0 0 12px !important;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--copper) !important;
    font-size: .8rem !important;
    font-weight: 600;
}


/* ===== 17. LOGO IN HEADER ===== */

.brand-logo {
    display: block;
    width: 40px;
    height: 40px;
}
