/* ============================================================
   DeadSet Fencing — site styles
   Palette: charcoal + orange accent. Fonts: Poppins + BreeSerif.
   ============================================================ */
:root {
    --dark: #141414;
    --dark-2: #202020;
    --accent: #ff8800;
    --accent-dark: #e67a00;
    --bg: #f6f6f4;
    --surface: #ffffff;
    --text: #333333;
    --muted: #6b6b6b;
    --border: #e6e6e3;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);
    --radius: 12px;
    --maxw: 1160px;
    --nav-h: 62px;
    /* legacy aliases */
    --main: #141414;
    --background: #f6f6f4;
}

@font-face {
    font-family: 'BreeSerif';
    src: url('fonts/BreeSerif.otf') format('opentype');
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: 'BreeSerif', Georgia, serif;
    line-height: 1.2;
}


/* ---- Navbar ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.navbar__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: 'BreeSerif', serif;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.navbar__brand img {
    height: 34px;
    width: auto;
}

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

.navbar__nav a {
    color: #e8e8e8;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar__nav a:hover {
    color: var(--accent);
}

.navbar__cta {
    background: var(--accent);
    color: var(--dark) !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.navbar__cta:hover {
    background: #fff;
    transform: translateY(-1px);
}


/* ---- Buttons ---- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 34px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 136, 0, 0.32);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 136, 0, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    padding: 13px 30px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}


/* ---- Hero ---- */
.hero {
    position: relative;
    /* Fill the screen right down to the bottom edge, minus the sticky navbar. */
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 90px 24px 130px;
    background: var(--dark);
    overflow: hidden;
}

/* Background photo carousel */
.hero__slides {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.28) 0%, rgba(20, 20, 20, 0.42) 55%, rgba(20, 20, 20, 0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

/* Carousel dots */
.hero__dots {
    position: absolute;
    right: 28px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}

.hero__dot.active {
    background: var(--accent);
    width: 26px;
    border-radius: 5px;
}

/* Scroll cue */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.6));
    transition: color 0.2s ease;
}

.hero__scroll:hover {
    color: var(--accent);
}

.hero__scroll-text {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.68rem;
    font-weight: 600;
}

.hero__scroll svg {
    animation: heroBounce 2s ease-in-out infinite;
}

@keyframes heroBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll svg {
        animation: none;
    }

    .hero__slide {
        transition: none;
    }
}

.hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    margin-bottom: 18px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f0f0f0;
    margin: 0 auto 34px;
    max-width: 620px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ---- Section scaffolding ---- */
.section {
    padding: 92px 24px;
    background: var(--surface);
}

.section--muted {
    background: var(--bg);
}

.section__inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.section__header h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--dark);
    margin: 10px 0 0;
}

.section__header h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
    margin: 18px auto 0;
}

.section__subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 18px;
}


/* ---- About ---- */
.about-text {
    max-width: 800px;
    margin: 0 auto 52px;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
}

.about-text p + p {
    margin-top: 18px;
}


/* ---- Contact layout ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 14px;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 26px;
}

.contact-details {
    list-style: none;
    display: grid;
    gap: 18px;
}

.contact-details li {
    display: flex;
    flex-direction: column;
}

.contact-details__label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.contact-details a:hover {
    color: var(--accent);
}


/* ---- Form ---- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label,
.field-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: #fbfbfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-card textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.6;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.15);
}

.form-card input:disabled {
    background: #f0f0ef;
    color: #9a9a9a;
    cursor: not-allowed;
}


.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 10px;
    margin: 6px 0 2px;
}

.color-circle {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.12);
}

.color-circle.selected {
    box-shadow: 0 0 0 3px var(--accent);
    transform: scale(1.12);
}

#Surfmist { background-color: #E4E2D5; }
#EveningHaze { background-color: #C5C2AA; }
#Paperbark { background-color: #CABFA4; }
#ShaleGrey { background-color: #BDBFBA; }
#Bluegum { background-color: #969799; }
#PaleEucalypt { background-color: #7C846A; }
#Wilderness { background-color: #64715E; }
#Domain { background-color: #E8DBAE; }
#Dune { background-color: #B1ADA3; }
#Riversand { background-color: #9D8D76; }
#Basalt { background-color: #5F615D; }
#Ironstone { background-color: #3E434C; }
#Monument { background-color: #323233; }
#Wollemi { background-color: #0A1C0D; }
#WoodlandGrey { background-color: #4B4C46; }

/* ---- Services (alternating feature rows) ---- */
.services-list {
    display: grid;
    gap: 40px;
}

.service-row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Alternate the image to the right on every second row. */
.service-row:nth-child(even) .service-row__media {
    order: 2;
}

.service-row__media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-row__media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.service-row__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.service-row__text h3 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--dark);
    margin-bottom: 14px;
}

.service-row__text > p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.service-row__points {
    list-style: none;
    display: grid;
    gap: 11px;
}

.service-row__points li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-weight: 500;
}

.service-row__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}


/* ---- Quote form extras ---- */
.options-fieldset {
    border: none;
    margin-bottom: 20px;
}

.options-fieldset legend {
    padding: 0;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfbfa;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.option:hover {
    border-color: var(--accent);
}

.option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex: none;
}

.option label {
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

/* Info tooltip trigger */
.info {
    margin-left: auto;
    width: 20px;
    height: 20px;
    flex: none;
    border: none;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    font-family: 'BreeSerif', Georgia, serif;
    font-size: 0.72rem;
    font-style: italic;
    line-height: 1;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.info:hover,
.info:focus-visible {
    background: var(--accent);
    color: var(--dark);
    outline: none;
}

.info__bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: max(220px, 100%);
    background: var(--dark);
    color: #f0f0f0;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 5;
}

.info__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 8px;
    border: 7px solid transparent;
    border-top-color: var(--dark);
}

.info:hover .info__bubble,
.info:focus .info__bubble,
.info:focus-within .info__bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.selected-color {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.selected-color span {
    color: var(--dark);
    font-weight: 600;
}

.estimate-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--dark);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 6px 0 12px;
}

.estimate-box__label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #bfbfbf;
}

.estimate-box__value {
    font-family: 'BreeSerif', serif;
    font-size: 1.25rem;
    color: var(--accent);
    text-align: right;
}

/* Notes, callouts and disclaimers */
.form-note {
    display: block;
    background: #fff7ee;
    border: 1px solid #ffe0bd;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 26px;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
}

.form-note strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

.form-note a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: underline;
}

.form-optional-note {
    font-size: 0.86rem;
    color: var(--muted);
    margin: -6px 0 22px;
}

.optional-tag {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.82rem;
}

.estimate-disclaimer {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 22px;
}

.estimate-disclaimer strong {
    color: var(--text);
}

.form-privacy-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.form-privacy-note a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: underline;
}

.g-recaptcha {
    margin: 4px 0 20px;
}

.form-status {
    display: block;
    margin-top: 14px;
    color: var(--dark);
    font-weight: 600;
}

.thank-you {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    text-align: center;
}

.thank-you h3 {
    color: var(--dark);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.thank-you p {
    color: var(--muted);
}


/* ---- Legal / Privacy page ---- */
.legal {
    max-width: 800px;
}

.legal__updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.legal > p {
    color: var(--text);
    margin-bottom: 16px;
}

.legal h3 {
    color: var(--dark);
    font-size: 1.35rem;
    margin: 34px 0 12px;
}

.legal ul {
    margin: 0 0 18px 22px;
    color: var(--text);
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: var(--accent-dark);
    text-decoration: underline;
}

.legal__back {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal__back a {
    font-weight: 600;
    text-decoration: none;
}


/* ---- Footer ---- */
.footer {
    background: var(--dark);
    color: #bcbcbc;
    padding: 58px 24px 28px;
}

.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: 'BreeSerif', serif;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.footer__brand img {
    height: 32px;
    width: auto;
}

.footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.footer__links {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__bottom {
    max-width: var(--maxw);
    margin: 40px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.85rem;
    color: #8a8a8a;
}


/* ---- Responsive ---- */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-row,
    .service-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service-row:nth-child(even) .service-row__media {
        order: 0;
    }

    .service-row__media img {
        height: 280px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .section {
        padding: 64px 20px;
    }

    .navbar__brand span {
        display: none;
    }

    .navbar__nav {
        gap: 16px;
    }

    .hero {
        padding: 70px 20px 120px;
    }

    .hero__dots {
        right: 50%;
        transform: translateX(50%);
        bottom: 92px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .form-row,
    .options-grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
