/* ============================================
   Epoxy Floor Services Brisbane
   Industrial palette - charcoal & hi-vis orange
   ============================================ */

:root {
    --bg: #eef0f2;
    --bg-warm: #dde1e6;
    --ink: #0d1117;
    --ink-soft: #2a2f37;
    --muted: #6b727c;
    --rule: #c8ccd2;
    --accent: #f26b1f;        /* hi-vis safety orange */
    --accent-deep: #c44e0e;
    --accent-soft: #ffd9b8;
    --paper: #ffffff;
    --shadow-sm: 0 1px 2px rgba(14,17,22,.06), 0 2px 8px rgba(14,17,22,.04);
    --shadow-md: 0 6px 20px rgba(14,17,22,.08), 0 2px 6px rgba(14,17,22,.05);
    --radius: 2px;
    --radius-lg: 4px;
    --maxw: 1180px;
    --serif: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
    --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--accent-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; color: var(--ink-soft); }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 241, 234, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: var(--serif);
}
.brand:hover { color: var(--ink); }
.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--ink);
    color: var(--accent-soft);
    font-family: var(--serif);
    font-weight: 900;
    font-size: 22px;
    border-radius: var(--radius);
}
.brand__text {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.brand__text em { font-style: italic; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--serif); }

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}
.primary-nav a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius);
    position: relative;
}
.primary-nav a:hover { color: var(--ink); background: var(--bg-warm); }
.primary-nav a.is-active { color: var(--ink); }
.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease;
}

/* ============================================
   Hero (homepage)
   ============================================ */
.hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(242,107,31,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(242,107,31,.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    text-align: center;
}
.hero__eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 18px;
    padding: 6px 14px;
    background: var(--accent-soft);
    border-radius: 100px;
}
.hero__title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.4rem, 6.5vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 20px;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}
.hero__title em {
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}
.hero__sub {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 auto 50px;
}

/* Hero CTA grid: phone + form */
.hero__cta {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    align-items: stretch;
}
@media (max-width: 820px) {
    .hero__cta { grid-template-columns: 1fr; gap: 28px; }
}

.phone-card {
    background: var(--ink);
    color: var(--paper);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.phone-card::after {
    content: "";
    position: absolute;
    right: -40px; bottom: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.4;
}
.phone-card__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 14px;
    position: relative;
}
.phone-card__number {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 700;
    color: var(--paper);
    line-height: 1;
    letter-spacing: -0.005em;
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
}
.phone-card__number:hover { color: var(--accent-soft); }
.phone-card__hours {
    font-size: 14px;
    color: rgba(255, 250, 242, 0.7);
    position: relative;
}
.phone-card__hours strong { color: var(--paper); font-weight: 600; }

.form-card {
    background: var(--paper);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rule);
}
.form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.form-card__intro {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}

.form-row { margin-bottom: 16px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-row label .req { color: var(--accent-deep); }
.form-row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s, background .2s;
}
.form-row input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(242,107,31,.15);
}
.form-row input:invalid:not(:placeholder-shown) {
    border-color: #c44545;
}
.form-help {
    font-size: 12px;
    color: var(--muted);
    margin-top: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    width: 100%;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.form-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
}
.form-status.success { display: block; background: #e6f4ea; color: #1e6431; border: 1px solid #b8d9c4; }
.form-status.error   { display: block; background: #fbe9e9; color: #8a2f2f; border: 1px solid #e0b8b8; }

/* ============================================
   Section blocks
   ============================================ */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-warm); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: rgba(255,250,242,.8); }

.section__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 14px;
}
.section__lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 65ch;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.feature {
    padding: 28px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule);
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__num {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--accent-deep);
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 15px; margin: 0; }

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.gallery__item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-warm);
    position: relative;
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(14,17,22,.8) 100%);
    color: var(--paper);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Inner pages: page header
   ============================================ */
.page-head {
    background: var(--ink);
    color: var(--paper);
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(242,107,31,.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(242,107,31,.1) 0%, transparent 60%);
}
.page-head__inner { position: relative; }
.page-head h1 {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.005em;
    color: var(--paper);
    margin-bottom: 14px;
}
.page-head h1 em { font-style: normal; font-weight: 700; color: var(--accent); }
.page-head p {
    color: rgba(255,250,242,.75);
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    max-width: 820px;
    margin: 0 auto;
}
.faq__item {
    border-bottom: 1px solid var(--rule);
}
.faq__item:first-child { border-top: 1px solid var(--rule); }
.faq__q {
    padding: 24px 50px 24px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent-deep);
    font-family: var(--sans);
    transition: transform .3s ease;
}
details[open] .faq__q::after { content: "−"; }
.faq__q:hover { color: var(--accent-deep); }
.faq__a {
    padding: 0 50px 24px 0;
    color: var(--ink-soft);
}
.faq__a p { margin-bottom: 0.8rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* ============================================
   Epoxy types
   ============================================ */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.type-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.type-card__price {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-deep);
    margin-bottom: 4px;
    display: block;
}
.type-card__price-unit {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
}
.type-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}
.type-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-warm);
    color: var(--ink-soft);
    border-radius: 100px;
    font-weight: 500;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cost-table th, .cost-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
}
.cost-table th {
    background: var(--bg-warm);
    font-family: var(--serif);
    font-weight: 700;
    color: var(--ink);
}
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table td:last-child { font-weight: 600; color: var(--accent-deep); white-space: nowrap; }

/* ============================================
   Resources
   ============================================ */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 40px;
    list-style: none;
}
.resource-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: block;
    color: inherit;
}
.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    color: inherit;
}
.resource-card__host {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 8px;
}
.resource-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.resource-card p { font-size: 14px; margin: 0; color: var(--ink-soft); }
.resource-card__arrow {
    margin-top: 14px;
    font-size: 14px;
    color: var(--accent-deep);
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--ink);
    color: rgba(255,250,242,.8);
    padding: 60px 0 24px;
    margin-top: 80px;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,250,242,.1);
}
.site-footer__col h3, .site-footer__col h4 {
    color: var(--paper);
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col a {
    color: rgba(255,250,242,.7);
    font-size: 15px;
}
.site-footer__col a:hover { color: var(--accent-soft); }
.footer-phone {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--paper) !important;
}
.site-footer__base {
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,250,242,.5);
    text-align: center;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 820px) {
    .site-header__inner { padding: 14px 20px; }
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .primary-nav.is-open { max-height: 400px; }
    .primary-nav ul {
        flex-direction: column;
        padding: 12px;
        gap: 0;
    }
    .primary-nav a { padding: 14px 16px; width: 100%; }
    .primary-nav a.is-active::after { display: none; }

    .hero { padding: 50px 0 40px; }
    .section { padding: 56px 0; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
    .form-card, .phone-card { padding: 28px 22px; }
}

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


/* ============================================
   Blog
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 20px; }
.blog-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card__image-link { display: block; }
.blog-card__image { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
.blog-card__title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 0 0 10px; }
.blog-card__title a { color: var(--ink); text-decoration: none; }
.blog-card__title a:hover { color: var(--accent-deep); }
.blog-card__excerpt { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; flex: 1; }
.blog-card__more { color: var(--accent-deep); font-weight: 600; font-size: 14px; text-decoration: none; }
.blog-card__more:hover { text-decoration: underline; }
.blog-post__head { padding: 56px 0 24px; background: var(--bg-warm); border-bottom: 1px solid var(--rule); }
.blog-post__crumb { margin: 0 0 18px; font-size: 14px; }
.blog-post__crumb a { color: var(--accent-deep); text-decoration: none; font-weight: 500; }
.blog-post__crumb a:hover { text-decoration: underline; }
.blog-post__title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 12px; max-width: 30ch; }
.blog-post__meta { font-size: 14px; color: var(--muted); margin: 0; }
.blog-post__feature { margin: 40px auto 24px; max-width: 820px; }
.blog-post__feature img { width: 100%; border-radius: var(--radius-lg); display: block; }
.blog-post__feature figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; font-style: italic; }
.blog-post__body { max-width: 720px; margin: 32px auto; font-size: 1.06rem; line-height: 1.65; color: var(--ink-soft); }
.blog-post__body h2, .blog-post__body h3 { color: var(--ink); margin: 1.6em 0 0.6em; }
.blog-post__body h2 { font-size: 1.5rem; }
.blog-post__body h3 { font-size: 1.2rem; }
.blog-post__body p { margin: 0 0 1.1em; }
.blog-post__body ul, .blog-post__body ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.blog-post__body li { margin-bottom: 0.4em; }
.blog-post__body a { color: var(--accent-deep); text-decoration: underline; }
.blog-post__body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 20px 0; }
.blog-post__source { max-width: 720px; margin: 30px auto; padding: 16px 20px; background: var(--bg-warm); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 14px; color: var(--ink-soft); font-style: italic; }
.blog-post__source a { color: var(--accent-deep); font-weight: 500; }
.blog-post__back { text-align: center; margin: 40px 0 80px; }
