/*
Theme Name: Wood Floor Theme
Author: John Wilkinson
Version: 1.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    --brown-dark: #2c1f0e;
    --brown-mid: #3d2b14;
    --brown-light: #7a6145;
    --gold: #d4a85a;
    --gold-dark: #b07d35;
    --cream: #faf6ef;
    --cream-light: #f5ead8;
    --white: #ffffff;
    --border-light: #e8dcc8;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--brown-dark);
    background: var(--cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ============================================================
   WRAPPER
   ============================================================ */

.wf-wrap {
    font-family: var(--font-body);
    color: var(--brown-dark);
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.wf-nav {
    background: rgba(230, 222, 212, 0.85);
    background: transparent;
    backdrop-filter: blur(8px);
    display: flex;
    transition: background 0.3s ease;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: 120px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/*--nav scroll effect--*/
.wf-nav.scrolled {
    background: rgba(126, 119, 111, 0.85);

}

.wf-nav.scrolled .wf-nav-links a {
    color: rgba(250, 250, 250, 0.95);
}

.wf-nav.scrolled .wf-nav-links a:hover {
    color: var(--gold);
}

/*--nav scroll effect end--*/

.wf-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf-nav-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.wf-nav-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-left: 20px;
}

.wf-nav-links {
    display: flex;
    gap: 28px;
}

.wf-nav-links a {
    color: rgba(53, 34, 6, 0.8);
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.wf-nav-links a:hover {
    color: var(--gold);
}

.wf-nav-cta {
    background: var(--gold);
    color: var(--brown-dark);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 15px 18px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.wf-nav-cta:hover {
    opacity: 0.88;
    color: var(--cream);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.5);
}


/* ============================================================
   HERO
   ============================================================ */

.wf-hero {
    position: relative;
    height: 500px;
    display: grid;
    padding-top: 200px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* Left panel */
.wf-hero-left {
    background: var(--brown-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 40px;
    position: relative;
}

.wf-hero-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(88deg,
            rgba(255, 255, 255, 0.012) 0px,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 55px);
}

.wf-hero-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    position: relative;
}

.wf-hero h1 {
    font-family: var(--font-display);
    color: var(--cream-light);
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 8px;
    position: relative;
}

.wf-hero h1 em {
    font-style: italic;
    color: var(--gold);
    display: block;
}

.wf-hero-sub {
    color: rgba(245, 234, 216, 0.6);
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0 28px;
    max-width: 340px;
    position: relative;
}

.wf-hero-btns {
    display: flex;
    gap: 12px;
    position: relative;
}

.wf-hero-phone {
    position: absolute;
    bottom: 24px;
    left: 40px;
    color: rgba(245, 234, 216, 0.35);
    font-size: 11px;
    letter-spacing: 1px;
}

/* Right panel */
.wf-hero-right {
    background-image: url('/wp-content/themes/wood-floor-theme/images/service-repair.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.wf-hero-right img {
    object-position: center 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-hero-right-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(44, 31, 14, 0.5) 0%, transparent 40%);
}

/* Stat pills */
.wf-hero-stats {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
}

.wf-stat-pill {
    background: rgba(44, 31, 14, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 168, 90, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    text-align: center;
}

.wf-stat-pill strong {
    display: block;
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 20px;
}

.wf-stat-pill span {
    font-size: 10px;
    color: rgba(245, 234, 216, 0.55);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.wf-btn-gold {
    background: var(--gold);
    color: var(--brown-dark);
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: opacity 0.2s;
}

.wf-btn-gold:hover {
    opacity: 0.88;
}

.wf-btn-ghost {
    border: 1.5px solid rgba(212, 168, 90, 0.5);
    color: rgba(245, 234, 216, 0.8);
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: border-color 0.2s, color 0.2s;
}

.wf-btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}


/* ============================================================
   SECTION LABELS & TITLES
   ============================================================ */

.wf-section-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.wf-section-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--brown-dark);
    margin: 0 0 36px;
}

/*--slideshow--*/
.wf-card-slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 168, 90, 0.15);
}

.wf.card-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
}

.wf-slide.active {
    left: 0;
    opacity: 1;
}

.wf-slide.prev {
    left: -100%;
}

.wf-slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.wf-dot {
    width: 5px;
    height: 5px;
    background: rgba(212, 168, 90, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.wf-dot.active {
    background: var(--gold);
}

/*--timer bar--*/
.wf-timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gold);
    z-index: 10;
    transition: none;
}

.wf-timer-bar.running {
    width: 100%;
    transition: width 5s linear;
}

/* ============================================================
   SERVICES
   ============================================================ */

.wf-services {
    background: var(--cream);
    padding: 72px 40px;
}

.wf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wf-card-scratch {
    background-image: url('images/scratch-texture.jpg');
    background-size: cover;
    background-position: center;
    width: 600px;
    height: 300px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    position: relative;
}

.wf-card-water {
    background-image: url('images/water-texture.jpg');
    background-size: cover;
    background-position: center;
    width: 600px;
    height: 300px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    position: relative;
}

.wf-card-termite {
    background-image: url('images/termite-texture.jpg');
    background-size: cover;
    background-position: center;
    width: 600px;
    height: 300px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    position: relative;
}

.wf-card-scratch:hover {
    border-top: 3px solid var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.5);
}

.wf-card-water:hover {
    border-top: 3px solid var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.5);
}

.wf-card-termite:hover {
    border-top: 3px solid var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.5);
}

.wf-card-icon {
    width: 38px;
    height: 38px;
    background: var(--cream-light);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-card-scratch h3 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--brown-dark);
    margin: 0 0 10px;
}

.wf-card-scratch p {
    font-size: 13px;
    color: var(--brown-light);
    line-height: 2;
    margin: 0;
}

.wf-card-water h3 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--brown-dark);
    margin: 0 0 10px;
}

.wf-card-water p {
    font-size: 13px;
    color: var(--brown-light);
    line-height: 2;
    margin: 0;
}

.wf-card-termite h3 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--brown-dark);
    margin: 0 0 10px;
}

.wf-card-termite p {
    font-size: 13px;
    color: var(--brown-light);
    line-height: 2;
    margin: 0;
}


/* ============================================================
   ABOUT
   ============================================================ */

.wf-about {
    background: var(--brown-dark);
    padding: 72px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.wf-about .wf-section-eyebrow {
    color: var(--gold);
}

.wf-about .wf-section-title {
    color: var(--cream-light);
    margin-bottom: 16px;
}

.wf-about p {
    color: rgba(245, 234, 216, 0.65);
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.wf-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.wf-checks li {
    color: rgba(245, 234, 216, 0.75);
    font-size: 13px;
    padding: 5px 0 5px 20px;
    position: relative;
}

.wf-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 3.5px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}


/* ============================================================
   PROCESS
   ============================================================ */

.wf-process {
    background: var(--cream);
    padding: 72px 40px;
}

.wf-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 36px;
    position: relative;
}

.wf-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-light);
}

.wf-step {
    text-align: center;
    padding: 0 12px;
    position: relative;
}

.wf-step-n {
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--brown-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

.wf-step h4 {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--brown-dark);
    margin: 0 0 8px;
}

.wf-step p {
    font-size: 12px;
    color: var(--brown-light);
    line-height: 1.6;
    margin: 0;
}


/* ============================================================
   REVIEWS
   ============================================================ */

.wf-reviews {
    background: var(--white);
    padding: 72px 40px;
}

.wf-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.wf-review-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    border: 1px solid var(--border-light);
}

.wf-stars {
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.wf-review-card p {
    font-size: 12px;
    color: #5a4530;
    line-height: 1.7;
    margin: 0 0 14px;
    font-style: italic;
}

.wf-review-author {
    font-size: 11px;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* ============================================================
   CONTACT
   ============================================================ */

.wf-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.wf-map-box {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

.wf-map-info {
    padding: 16px 18px;
    font-size: 13px;
    color: var(--brown-light);
    line-height: 1.7;
}

.wf-map-info strong {
    color: var(--brown-dark);
    font-family: var(--font-display);
}



.wf-contact {
    background: var(--brown-mid);
    padding: 72px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.wf-contact .wf-section-eyebrow {
    color: var(--gold);
}

.wf-contact .wf-section-title {
    color: var(--cream-light);
    margin-bottom: 24px;
}

.wf-cdetail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.wf-cicon {
    width: 34px;
    height: 34px;
    background: rgba(212, 168, 90, 0.15);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wf-cdetail-text .clabel {
    font-size: 10px;
    color: rgba(212, 168, 90, 0.65);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 2px;
    display: block;
}

.wf-cdetail-text .cval {
    font-size: 13px;
    color: var(--cream-light);
    margin: 0;
    display: block;
}

/* Contact form */
.wf-form-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 168, 90, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.wf-form-box h3 {
    font-family: var(--font-display);
    color: var(--cream-light);
    font-size: 18px;
    margin: 0 0 20px;
}

.wf-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.wf-finput {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 168, 90, 0.2);
    border-radius: 5px;
    padding: 10px 13px;
    font-size: 12px;
    color: var(--cream-light);
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.wf-finput::placeholder {
    color: rgba(245, 234, 216, 0.3);
}

.wf-ftextarea {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 168, 90, 0.2);
    border-radius: 5px;
    padding: 10px 13px;
    font-size: 12px;
    color: var(--cream-light);
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    resize: vertical;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.wf-ftextarea::placeholder {
    color: rgba(245, 234, 216, 0.3);
}


/* ============================================================
   FOOTER
   ============================================================ */
.wf-footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.wf-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.wf-social-icon:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 125, 53, 0.3);
}
.wf-footer {
    background: #1a100a;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wf-footer-logo {
    font-family: var(--font-display);
    color: rgba(212, 168, 90, 0.45);
    font-size: 13px;
}

.wf-footer p {
    color: rgba(245, 234, 216, 0.25);
    font-size: 11px;
    margin: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .wf-hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .wf-hero-right {
        height: 280px;
    }

    .wf-hero-left {
        padding: 100px 24px 48px;
    }

    .wf-about {
        grid-template-columns: 1fr;
    }

    .wf-contact {
        grid-template-columns: 1fr;
    }

    .wf-services-grid {
        grid-template-columns: 1fr;
    }

    .wf-reviews-grid {
        grid-template-columns: 1fr;
    }

    .wf-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .wf-steps::before {
        display: none;
    }

    .wf-nav {
        padding: 0 20px;
    }

    .wf-nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .wf-steps {
        grid-template-columns: 1fr;
    }

    .wf-contact-wrapper {
        grid-template-columns: 1fr;
    }

    .wf-hero h1 {
        font-size: 34px;
    }

    .wf-hero-btns {
        flex-direction: column;
    }

    .wf-row2 {
        grid-template-columns: 1fr;
    }
}

/*=====Form====*/
.wf-field-pill {
    position: relative;
    margin-bottom: 14px;
}

.wf-field-pill input,
.wf-field-pill textarea {
    width: 100%;
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--brown-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wf-field-pill textarea {
    border-radius: 16px;
    resize: none;
    height: 100px;
}

.wf-field-pill label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--brown-light);
    background: var(--white);
    padding: 0 6px;
    border-radius: 999px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.wf-field-pill textarea~label {
    top: 18px;
    transform: none;
}

/* Floating state on focus or when filled */
.wf-field-pill input:focus~label,
.wf-field-pill input:not(:placeholder-shown)~label,
.wf-field-pill textarea:focus~label,
.wf-field-pill textarea:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--gold);
    background: var(--white);
}

/* Gold border on focus */
.wf-field-pill input:focus,
.wf-field-pill textarea:focus {
    border-color: var(--gold);
}

/* Success message */
.wf-success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cream-light);
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--brown-dark);
    margin-bottom: 16px;
}

/* General error message */
.wf-error-msg {
    background: #fff0f0;
    border: 1.5px solid #e05c5c;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 16px;
}

/* Field level error */
.wf-field-error {
    display: block;
    font-size: 11px;
    color: #c0392b;
    padding-left: 20px;
    margin-top: 4px;
    min-height: 16px;
}

/* Red border on invalid field */
.wf-field-pill input[aria-invalid="true"],
.wf-field-pill textarea[aria-invalid="true"] {
    border-color: #e05c5c;
}

/* Red floating label on invalid */
.wf-field-pill input[aria-invalid="true"]~label,
.wf-field-pill textarea[aria-invalid="true"]~label {
    color: #e05c5c;
}

/* Disabled submit button while sending */
.wf-btn-gold[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}