@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');

/* Core styles for the HandyMan website template (responsive enhanced) */
/* Variables */
:root {
    --primary-color: #f7c948;
    /* golden-yellow accent */
    --secondary-color: #333333;
    /* dark grey for text and footer */
    --light-color: #ffffff;
    /* white */
    --muted-color: #666666;
    /* muted text color */
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --text: #e8eef6;
    --accent: #2dd4bf;
    --accent2: #4f46e5;
    --chip: #1f2a44;
    --line: #1a2540;
    --header-h: 0px;
    /* dynamically updated */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #fafafa;
    padding-top: var(--header-h);
    /* offset for fixed header */
}

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

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

/* Containers */
.container {
    width: min(92%, 1200px);
    margin: 0 auto;
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px;
    background: #000;
    color: #fff;
}

/* Top bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.campany-group {
    font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial;
    font-weight: 700;
}

.top-bar .tagline {
    margin-right: 0.5rem;
    font-weight: 700;
}

.top-bar .phone-number {
    font-weight: 700;
}

/* Header */
.site-header {
    background-color: var(--secondary-color);
    color: var(--light-color);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1040;
    isolation: isolate;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.logo {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .brand-highlight {
    color: var(--primary-color);
    margin-right: 6px;
}

/* Navigation */
.navigation {
    display: block;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

.navigation a {
    color: var(--light-color);
    font-weight: 600;
    font-size: 1rem;
}

.navigation a:hover,
.navigation a:focus {
    color: var(--primary-color);
}

/* Mobile menu button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header text sizing tweaks for small screens */
/* XS (<=576px) */
@media (max-width: 576px) {
    .top-bar .campany-group {
        font-size: 0.5rem;
        line-height: 1.15;
    }

    .logo {
        font-size: 0.7rem;
        /* tighter to fit beside hamburger */
        letter-spacing: 0.5px;
    }
}

/* SM (577px–768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .top-bar .campany-group {
        font-size: 0.7rem;
        line-height: 1.8;
    }

    .logo {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .top-bar .tagline {
        font-size: 0.5rem;
        line-height: 1.15;
    }

    .logo {
        font-size: 0.7rem;
        /* tighter to fit beside hamburger */
        letter-spacing: 0.5px;
    }
}

/* SM (577px–768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .top-bar .tagline {
        font-size: 0.7rem;
        line-height: 1.8;
    }

    .logo {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .top-bar .phone-number {
        font-size: 0.5rem;
        line-height: 1.15;
    }

    .logo {
        font-size: 0.7rem;
        /* tighter to fit beside hamburger */
        letter-spacing: 0.5px;
    }
}

/* SM (577px–768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .top-bar .phone-number {
        font-size: 0.7rem;
        line-height: 1.8;
    }

    .logo {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}




/* Hero section */
.hero {
    position: relative;
    min-height: 60vh;
    text-align: center;
    color: var(--light-color);
}

.hero-overlay {
    background-color: #F6C948;
    padding: 10px 12px;
    width: 100%;
    max-width: min(95vw, 900px);
    margin: 12px auto 0 auto;
    border-radius: var(--border-radius);
}

.hero h2 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border: 2px solid #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e5b73d;
    color: #000;
    border-color: #000;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* Section */
.section {
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: clamp(1rem, 2vw, 2rem);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

/* Grid 2 columns */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Welcome section */
.welcome-text h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 0.2rem;
}

.welcome-text p {
    margin-bottom: 1rem;
    color: var(--muted-color);
}

.features-list {
    list-style: none;
    margin-top: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.features-list i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.welcome-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-quotation {
    font-family: "Roboto", system-ui, Arial;
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
    text-align: center;
    margin-top: 10px;
    font-weight: 700;
}

.team-image {
    width: 100%;
    height: clamp(360px, 65vh, 900px);
    /* bigger min/mid/max */
    object-fit: content;
    /* fill frame cleanly */
    display: block;
}

/* Contact section */
.contact-info h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

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

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.contact-list i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.contact-form-wrapper {
    background-color: var(--light-color);
    padding: clamp(1rem, 2vw, 2rem);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 0.5rem;
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--light-color);
    margin: 0 0.5rem;
    font-size: 1.25rem;
    transition: color var(--transition-speed);
}

.social-links a:hover,
.social-links a:focus {
    color: var(--primary-color);
}


/* Responsive navigation (<= 768px) */
@media (max-width: 768px) {
    .header-inner {
        position: relative;
    }

    /* Hide inline nav by default on small screens */
    #nav.navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        display: none;
        transform: translateY(0);
        /* no slide-in if hidden */
        z-index: 999;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    }

    #nav.navigation.open {
        display: block;
        /* show only when hamburger toggled */
    }

    #nav.navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0.75rem 0;
    }

    #nav.navigation li {
        margin: 0.4rem 0;
    }

    .menu-btn {
        display: block;
    }
}


/* Carousel tweaks */
.carousel-title {
    color: #06010f;
    font-family: "Roboto", system-ui, Arial;
    font-weight: 700;
    font-size: 16px;
    padding: 10px;
    background-color: #e5b73d;
    border-radius: 6px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(72%) sepia(95%) saturate(748%) hue-rotate(2deg) brightness(105%) contrast(105%);
}

.carousel-item img {
    width: 100%;
    height: 50vh;
    object-fit: content;
}

@media (min-width: 768px) {
    .carousel-item img {
        height: 60vh;
    }
}

@media (min-width:1200px) {
    .carousel-item img {
        height: 70vh;
    }
}

#carouselExampleCaptions {
    position: relative;
    z-index: 0;
}

/* Anchors compensate for fixed header */
html {
    scroll-padding-top: calc(var(--header-h) + 8px);
}

/* Spacing below header */
.slide-style {
    margin-top: 10px;
}

.q-title {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
}

.about-mission-title {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.speciality-heading {
    font-family: "Roboto", system-ui, Arial;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

.clients-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}


