/* ===================================================
   JEM Property Maintenance — Stylesheet
   Dark theme  ·  Deep-red accent  ·  Roboto
   =================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --clr-bg:        #121212;
    --clr-surface:   #1a1a1a;
    --clr-panel:     #1f1f1f;
    --clr-accent:    #7A2020;
    --clr-accent-lt: #a03030;
    --clr-text:      #e0e0e0;
    --clr-text-dim:  #9e9e9e;
    --clr-border:    rgba(224, 224, 224, 0.1);
    --clr-glass:     rgba(255, 255, 255, 0.06);

    --ff-body:  'Roboto', sans-serif;
    --fs-base:  1rem;
    --fs-sm:    0.9rem;
    --fs-lg:    1.25rem;
    --fs-xl:    2rem;
    --fs-hero:  clamp(2rem, 5vw, 3.5rem);

    --radius:    10px;
    --radius-sm: 6px;
    --shadow:    0 4px 24px rgba(0, 0, 0, 0.30);
    --transition: 0.25s ease;
    --page-pad:  1.5rem;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul { list-style: none; }
a  { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Navigation ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--clr-panel);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
    padding: 0;
    margin: 0;
}

/* Top bar: logo + hamburger button */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem var(--page-pad);
}

/* Links row (desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0 var(--page-pad) 0.65rem;
    margin: 0;
}

/* On desktop, merge bar and links into one horizontal row */
@media (min-width: 769px) {
    .nav-bar {
        padding-bottom: 0.65rem;
    }

    .nav-links {
        /* Sit inline to the right of the logo */
        display: flex;
        padding: 0;
    }

    .nav-wrapper {
        display: flex;
        align-items: center;
        padding: 0.65rem var(--page-pad);
        gap: 1.5rem;
    }

    .nav-bar {
        padding: 0;
        flex: 0 0 auto;
    }

    .nav-links {
        flex: 1;
        justify-content: flex-end;
    }
}

.nav-links a {
    position: relative;
    font-weight: 500;
    font-size: var(--fs-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--clr-text-dim);
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #fff;
}

/* Animated underline on nav links */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--clr-accent-lt);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

/* "Winter Services" plain text item */
.nav-links li:not(:has(a)) {
    font-weight: 500;
    font-size: var(--fs-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--clr-text-dim);
}

/* ---------- Hamburger Button ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--clr-text-dim);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.nav-toggle:hover span {
    background: #fff;
}

/* Animate to X when open */
.nav-wrapper.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-wrapper.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-wrapper.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Main / Layout ---------- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--page-pad);
    padding-top: 0.75rem;
}

.main-content {
    flex: 1;
    background: var(--clr-accent);
    background-image:
        radial-gradient(ellipse at top left,  rgba(255,255,255,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(0,0,0,0.20) 0%, transparent 60%);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    animation: fadeSlideUp 0.5s ease both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding-bottom: 2rem;
}

.hero h1 {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.72);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Text Content ---------- */
.text-content {
    text-align: center;
    margin-bottom: 2rem;
}

.text-content h1 {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.text-content p {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-content ul {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    margin: 1rem auto 0;
    padding-left: 1.2rem;
    list-style: disc;
}

/* ---------- Placeholder ---------- */
.placeholder {
    flex: 1;
    min-height: 55vh;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%),
        var(--clr-accent);
}

/* ---------- Forms ---------- */
.form {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form label {
    font-weight: 500;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: -0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    background: var(--clr-glass);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    outline: none;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

input[type="file"] {
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    color: var(--clr-text-dim);
    padding: 0.5rem 0;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-button {
    display: inline-block;
    background: var(--clr-panel);
    color: var(--clr-text);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.8rem 2rem;
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    text-align: center;
}

.submit-button:hover,
.submit-button:focus-visible {
    background: var(--clr-accent-lt);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--clr-glass);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    min-height: 150px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.30);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.services-cta {
    margin-top: 2rem;
    text-align: center;
}

.services-cta .submit-button {
    background: var(--clr-panel);
}

.image-content {
    /*background: var(--clr-accent);
    border-radius: var(--radius);*/
    padding: 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    min-height: 150px;
}

.image-content img {
    border-radius: var(--radius);
    object-fit: cover;
    width: 450px;
    height: 300px;
    max-width: 100%;
}

/* ---------- Footer ---------- */
footer {
    margin-top: auto;
}

.footer-content {
    background: var(--clr-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem var(--page-pad);
    margin: var(--page-pad);
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--clr-text-dim);
}

/* ---------- reCAPTCHA tweak ---------- */
.g-recaptcha {
    margin-top: 0.25rem;
}

/* ===================================================
   Responsive  ·  ≤ 768 px
   =================================================== */
@media (max-width: 768px) {
    :root {
        --page-pad: 0.75rem;
    }

    /* Hamburger visible, links hidden by default */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0 var(--page-pad) 0.75rem;
        border-top: 1px solid var(--clr-border);
    }

    .nav-wrapper.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.6rem 0;
        border-radius: var(--radius-sm);
        transition: background var(--transition), color var(--transition);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.06);
        padding-left: 0.5rem;
    }

    /* Disable underline on mobile (taps don't linger) */
    .nav-links a::after {
        display: none;
    }

    .nav-links li:not(:has(a)) {
        padding: 0.6rem 0;
    }

    /* Main content */
    .main-content {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-sm);
    }

    .hero h1  { font-size: 1.75rem; }
    .hero p   { font-size: 1rem; }

    .text-content h1 { font-size: 1.5rem; }

    /* Forms */
    .form {
        max-width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: var(--fs-sm);
        padding: 0.65rem 0.85rem;
    }

    .submit-button {
        padding: 0.65rem 1.25rem;
        font-size: var(--fs-sm);
        width: 100%;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .service-card {
        min-height: auto;
        padding: 1rem;
    }

    .service-icon {
        font-size: 1.5rem;
        width: 42px;
        height: 42px;
    }

    /* Placeholder */
    .placeholder {
        min-height: 35vh;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Images */
    .image-content {
        flex-direction: column;
    }

    .image-content img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }
}

/* ===================================================
   Extra-small  ·  ≤ 400 px
   =================================================== */
@media (max-width: 400px) {
    .main-content {
        padding: 1.5rem 0.85rem;
    }

    .hero h1 { font-size: 1.4rem; }

    .nav-bar img {
        width: 80px;
    }

  
}
