/* =========================================
   ARTA HANDYMAN SERVICES
   MAIN STYLESHEET
========================================= */

:root {
    /* Color Palette */
    --navy: #061b2d;
    --dark-navy: #031421;
    --blue: #0c2b45;
    --yellow: #ffb800;
    --yellow-dark: #d99300;
    --yellow-hover: #ffc62e;
    --white: #ffffff;
    --light: #f7f8fb;
    --text: #172337;
    --text-muted: #526074;
    --muted: #667085;
    --border: #e7eaf0;
    --green: #25d366;
    --green-hover: #20bd5a;

    /* Elevation & Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(20, 35, 50, 0.06);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.25);

    /* Transitions & Layout */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: min(1180px, 92%);
    --header-height: 76px;
}

/* =========================================
   RESET & BASE STYLES
========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    color-scheme: light;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

address {
    font-style: normal;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--yellow-dark);
    outline-offset: 3px;
}

.container {
    width: var(--container-width);
    margin-inline: auto;
}

.section {
    padding-block: 60px;
}

/* =========================================
   TOP BAR
========================================= */

.top-bar {
    background-color: var(--dark-navy);
    color: var(--white);
    font-size: 0.8125rem;
}

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

.top-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-item span:first-child {
    color: var(--yellow);
}

.top-item a:hover {
    color: var(--yellow);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */

.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo img {
    width: 170px;
    height: auto;
}

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

nav a {
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    padding: 27px 0;
}

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

nav a.active::after {
    content: "";
    position: absolute;
    height: 3px;
    background-color: var(--yellow);
    left: 0;
    right: 0;
    bottom: 17px;
    border-radius: 2px;
}

/* Buttons */

.quote-btn,
.primary-btn {
    background-color: var(--yellow);
    color: var(--navy);
    font-weight: 700;
    border-radius: 5px;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.quote-btn {
    padding: 12px 22px;
    font-size: 0.8125rem;
}

.quote-btn:hover,
.primary-btn:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.6875rem;
    cursor: pointer;
    color: var(--navy);
    padding: 4px;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    position: relative;
    min-height: 535px;
    overflow: hidden;
    background:
        linear-gradient(90deg,
        rgba(3, 20, 33, 0.98) 0%,
        rgba(5, 28, 45, 0.92) 45%,
        rgba(5, 28, 45, 0.35) 100%),
        url("https://images.unsplash.com/photo-1581244277943-fe4a9c777189?auto=format&fit=crop&w=1800&q=85")
        center/cover no-repeat;
}

.hero-content {
    min-height: 535px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    width: 57%;
    color: var(--white);
    padding-block: 55px;
}

.eyebrow {
    display: inline-block;
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero .eyebrow {
    border: 1px solid rgba(255, 184, 0, 0.45);
    padding: 6px 11px;
    border-radius: 4px;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.875rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 17px;
}

.hero h1 span {
    color: var(--yellow);
}

.hero-description {
    max-width: 530px;
    font-size: 1rem;
    color: #f1f4f8;
    margin-bottom: 22px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border-radius: 5px;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    border: none;
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    background: transparent;
}

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

.features {
    display: flex;
    gap: 0;
}

.feature {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-inline: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    line-height: 1.4;
}

.feature:first-child {
    padding-left: 0;
}

.feature:last-child {
    border-right: 0;
}

.feature strong {
    color: var(--yellow);
    font-size: 1.4375rem;
}

.hero-image {
    position: absolute;
    right: -2%;
    top: 0;
    width: 47%;
    height: 100%;
}

.hero-card {
    position: absolute;
    right: 5%;
    bottom: 40px;
    background: rgba(5, 29, 47, 0.94);
    color: var(--white);
    border-radius: 15px;
    padding: 18px 24px;
    min-width: 125px;
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.hero-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
    color: var(--navy);
    width: 37px;
    height: 37px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.hero-card strong {
    display: block;
    font-size: 1.5625rem;
}

.hero-card span {
    font-size: 0.8125rem;
    line-height: 1.3;
}

/* =========================================
   SECTION HEADINGS
========================================= */

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.section-heading p {
    color: var(--muted);
    font-size: 0.875rem;
}

.yellow {
    color: var(--yellow-dark);
}

/* =========================================
   SERVICES SECTION
========================================= */

.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(20, 35, 50, 0.1);
}

.service-card > h3,
.service-card > p,
.service-card > .service-icon {
    margin-inline: 15px;
}

.service-icon {
    color: var(--yellow-dark);
    font-size: 1.6875rem;
    margin-top: 15px;
}

.service-card h3 {
    font-size: 0.875rem;
    margin-top: 5px;
    margin-bottom: 4px;
}

.service-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-height: 57px;
    line-height: 1.5;
}

.service-image {
    height: 90px;
    margin-top: 10px;
    background-size: cover;
    background-position: center;
}

.general { background-image: url("https://images.unsplash.com/photo-1558008258-3256797b43f3?auto=format&fit=crop&w=600&q=80"); }
.painting { background-image: url("https://images.unsplash.com/photo-1562259949-e8e7689d7828?auto=format&fit=crop&w=600&q=80"); }
.plumbing { background-image: url("https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&w=600&q=80"); }
.electrical { background-image: url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=600&q=80"); }
.maintenance { background-image: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=600&q=80"); }

.service-link {
    display: block;
    padding: 12px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: auto;
}

.service-link:hover {
    color: var(--yellow-dark);
}

.center-btn {
    text-align: center;
    margin-top: 24px;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about {
    background-color: var(--navy);
    color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    height: 300px;
    border-radius: 8px;
    background: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1000&q=85") center/cover no-repeat;
    position: relative;
}

.happy-card {
    position: absolute;
    bottom: 20px;
    left: -15px;
    background-color: var(--white);
    color: var(--navy);
    padding: 15px 22px;
    border-radius: 9px;
    box-shadow: var(--shadow-lg);
}

.happy-card strong {
    font-size: 1.5rem;
    display: block;
}

.happy-card span {
    font-size: 0.6875rem;
}

.about-text h2 {
    font-size: 1.875rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.about-text p {
    font-size: 0.8125rem;
    color: #d7e0e9;
    max-width: 500px;
    margin-bottom: 18px;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.check-list li {
    font-size: 0.75rem;
}

/* =========================================
   PROJECTS SECTION
========================================= */

.projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 15px;
}

.project {
    height: 280px;
    border-radius: 9px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.project > div {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 20px;
}

.project span {
    color: var(--yellow);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project h3 {
    font-size: 1.125rem;
}

.project-one { background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1000&q=80"); }
.project-two { background-image: url("https://images.unsplash.com/photo-1562259949-ccfbbd6e7f03?auto=format&fit=crop&w=800&q=80"); }
.project-three { background-image: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=800&q=80"); }

/* =========================================
   REVIEWS SECTION
========================================= */

.reviews {
    background-color: var(--light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.review-card {
    background-color: var(--white);
    padding: 24px;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--yellow);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-card p {
    color: #4c5767;
    font-size: 0.8125rem;
    min-height: 65px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    color: var(--yellow);
    font-weight: 700;
}

.reviewer strong {
    font-size: 0.8125rem;
    display: block;
}

.reviewer small {
    color: #8a94a3;
    font-size: 0.6875rem;
    display: block;
}

/* =========================================
   CONTACT / CTA SECTION
========================================= */

.contact {
    background-color: var(--white);
    padding-block: 40px;
}

.contact-box {
    background: linear-gradient(110deg, #ffb400, #ffc52d);
    border-radius: 9px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-box .eyebrow {
    color: var(--navy);
    margin-bottom: 2px;
}

.contact-box h2 {
    color: var(--navy);
    font-size: 1.5625rem;
}

.contact-box p {
    color: #24364a;
    font-size: 0.8125rem;
}

.contact-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.contact-phone,
.whatsapp-btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.contact-phone {
    background-color: var(--white);
    color: var(--navy);
}

.contact-phone:hover {
    background-color: #f0f4f8;
}

.whatsapp-btn {
    background-color: var(--navy);
    color: var(--white);
}

.whatsapp-btn:hover {
    background-color: #0b3a55;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    background-color: var(--dark-navy);
    color: var(--white);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 45px;
    padding-bottom: 40px;
}

.footer-logo {
    width: 165px;
    height: auto;
    background-color: var(--white);
    padding: 6px;
    border-radius: 5px;
    margin-bottom: 12px;
}

.footer p {
    color: #abb8c6;
    font-size: 0.75rem;
    max-width: 280px;
    margin-bottom: 8px;
}

.footer h3 {
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 14px;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer a {
    color: #b9c4cf;
    font-size: 0.75rem;
}

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #8493a2;
    font-size: 0.6875rem;
    padding: 20px;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
========================================= */

.whatsapp-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    background-color: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-floating:hover {
    transform: translateY(-4px);
    background-color: var(--green-hover);
}

.whatsapp-icon {
    font-size: 1.375rem;
}

.whatsapp-label {
    white-space: nowrap;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
========================================= */

@media (max-width: 1000px) {
    nav {
        gap: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-text {
        width: 65%;
    }

    .hero-image {
        width: 42%;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        flex-wrap: wrap;
        padding-block: 8px;
        gap: 6px 15px;
    }

    .top-item:last-child {
        display: none;
    }

    .nav-container {
        min-height: 68px;
    }

    .logo img {
        width: 145px;
    }

    .quote-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--white);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        padding: 10px 5%;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease-out, opacity 0.2s ease, visibility 0.2s;
    }

    nav.show,
    nav.nav-open {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }

    nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
    }

    nav a.active::after {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: 500px;
        align-items: flex-end;
    }

    .hero-image {
        display: none;
    }

    .hero-text {
        width: 100%;
        padding-block: 50px 40px;
    }

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

    .features {
        flex-wrap: wrap;
        gap: 15px 0;
    }

    .feature {
        width: 50%;
        border-right: none;
        padding: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .projects-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .happy-card {
        left: 15px;
    }

    .contact-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 500px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.125rem;
        letter-spacing: -0.5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .feature {
        width: 100%;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-phone,
    .whatsapp-btn {
        text-align: center;
    }

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

    .whatsapp-floating {
        right: 15px;
        bottom: 15px;
        padding: 10px 16px;
    }
    
    .whatsapp-label {
        display: none;
    }
}