/* =========================================
   VARIABLES
========================================= */

:root {
    --color-primary: #2B9498;
    --color-primary-dark: #153031;
    --color-secondary: #EDB60C;
    --color-text: #153031;
    --color-text-light: #FFFFFF;
    --color-white: #FFFFFF;
    --color-border: rgba(255, 255, 255, 0.2);

    --font-primary: 'Poppins', sans-serif;
    --font-heading: var(--font-primary);
    --font-body: var(--font-primary);

    --fs-900: clamp(3rem, 6vw, 5rem);
    --fs-800: clamp(2.5rem, 5vw, 4rem);
    --fs-700: clamp(2rem, 4vw, 3rem);
    --fs-600: 2rem;
    --fs-500: 1.5rem;
    --fs-400: 1.125rem;
    --fs-300: 1rem;
    --fs-200: 0.875rem;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    --section-padding: 100px;
    --container-width: 1200px;

    --border-radius-sm: 8px;
    --border-radius-md: 16px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);

    --transition: 0.3s ease;
}


/* =========================================
   RESET
========================================= */

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: var(--font-body);
    font-size: var(--fs-300);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

ul,
ol {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
}


/* =========================================
   GLOBAL
========================================= */

.container {
    width: min(90%, var(--container-width));
    margin-inline: auto;
}

section {
    padding: 5rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: var(--fs-700);
}

h2 {
    font-size: var(--fs-600);
    margin-bottom: 4rem;
}

h3 {
    font-size: var(--fs-500);
}

p {
    color: inherit;
}


/* =========================================
   BUTTONS
========================================= */

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--fw-medium);
    transition: var(--transition);
    max-height: 60px;
    border-radius: 40px;
}

.primary-btn:hover {
    background-color: var(--color-primary-dark);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    transition: var(--transition);
    border-radius: 40px;
    font-weight: var(--fw-medium);
}

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


/* =========================================
   HEADER / NAV
========================================= */

.nav {
    padding: 20px 0;
}

.nav__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav__logo-img {
    width: 150px;
}

.nav__buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__buttons img {
    height: 80px;
    width: auto;
}


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

.hero {
    background-image: url("assets/images/hero-image.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--color-text);
    min-height: 700px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(32, 32, 32, 0.5);
    z-index: 1;
}

.hero__column.right {
    display: flex;
    justify-content: flex-end; /* pushes form to the right */
    align-items: center; /* vertically centres form */
}


.hero__content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero__column {
    width: 100%;
}

.hero__title {
    margin: 2rem 0;
}

.hero__text-box {
    background-color: var(--color-white);
    max-width: 500px;
    padding: 0 2rem;
    font-size: var(--fs-400);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero__text {
    margin-bottom: 2rem;
}

.hero__trust-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.hero__trust-badges img {
    max-height: 90px;
    width: auto;
}

.hero__form {
    background-color: var(--color-secondary);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 360px;
    margin-left: auto;
}

.hero__form-text {
    font-size: var(--fs-500);
    font-weight: var(--fw-medium);
    text-align: center;
}

.hero__form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.form-field {
    width: 100%;
}

.hero__form input,
.hero__form textarea {
    width: 100%;
    padding: 14px 16px;
    border: none;
    font-size: var(--fs-300);
    font-family: var(--font-body);
    outline: none;
}

.hero__form input::placeholder,
.hero__form textarea::placeholder {
    color: #888;
}

.hero__form input:focus,
.hero__form textarea:focus {
    outline: 2px solid var(--color-white);
}

.submit-button-div {
    margin-top: 8px;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    font-weight: var(--fw-bold);
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.hero__text-box .primary-btn {
    align-self: flex-start;
}

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

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

.services__title,
.services__text {
    text-align: center;
}

.services__text {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.services__card {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: 20px;
    text-align: center;
}

.services__card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.services__card-title {
    margin: 2rem 2rem 1rem;
}

.services__card-text {
    padding: 0 2rem 2rem;
}


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

.about {
    padding-bottom: 2rem;
}

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

.about__text {
    margin-bottom: 2rem;
}

.about-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
}


/* =========================================
   GALLERY
========================================= */

.gallery {
    background-color: var(--color-light-grey);
    padding-top: 2rem;
}

.gallery__title,
.gallery__text {
    text-align: center;
}

.gallery__text {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}


/* =========================================
   WHY US
========================================= */

.why-us {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.why-us__title,
.why-us__text {
    text-align: center;
}



/* =========================================
   CONTACT
========================================= */

.contact__title,
.contact__text {
    text-align: center;
}

.contact__text {
    max-width: 1000px;
    margin: 0 auto;
}

.contact {
    padding-bottom: 4rem;
}

.hero__form.contact {
    margin: 4em auto 0 auto;
    width: 100%;
    max-width: 600px;
}


/* =========================================
   ROOF TYPES
========================================= */

.roof-types__title {
    text-align: center;
}

/* Matches the typo in your HTML: types-types__grid */
.types-types__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.roof-card {
    padding: 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 20px;
}

.roof-card__title {
    margin-bottom: 16px;
}

.roof-types {
    padding-top: 2rem;
}


/* =========================================
   FAQS
========================================= */

.faqs {
    padding-bottom: 0;
}

.faqs__title {
    text-align: center;
}

.faqs__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faqs__item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    color: var(--color-white);
    transition: var(--transition);
    background-color: #153031;
}

.faqs__question {
    padding: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--fs-400);
    font-weight: var(--fw-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faqs__question::-webkit-details-marker {
    display: none;
}

.faqs__question::after {
    content: "+";
    font-size: 1.5rem;
    transition: var(--transition);
}

.faqs__item[open] .faqs__question::after {
    content: "−";
}

.faqs__answer {
    padding: 0 20px 20px;
    line-height: 1.6;
}

.faqs__item[open] {
    box-shadow: var(--shadow-sm);
}


/* =========================================
   GOOGLE MAPS
========================================= */

.google-maps {
    padding: 5rem 0 0;
}


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

.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 4rem 0;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo-img {
    width: 220px;
    margin-bottom: 16px;
}

.footer__heading {
    margin-bottom: 16px;
    font-size: var(--fs-400);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--color-white);
    opacity: 0.85;
    transition: var(--transition);
}

.footer__link:hover {
    opacity: 1;
}

.footer__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__address {
    margin-top: 16px;
    font-style: normal;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer__copyright {
    font-size: var(--fs-200);
    opacity: 0.7;
}


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

@media screen and (max-width: 992px) {
    .hero {
        min-height: auto;
    }

    .hero__content {
        flex-direction: column;
        gap: 3rem;
    }

    .hero__title {
        margin: 3rem 0;
        text-align: center;
    }

    .hero__text-box {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .hero__form {
        min-width: 0;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .services__grid,
    .about__content,
    .gallery__grid,
    .types-types__grid {
        grid-template-columns: 1fr;
    }

    .hero .primary-btn {
        margin: 0 auto;
    }
}


@media screen and (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    section {
        padding: var(--section-padding) 0;
    }

    h1,
    h2,
    h3,
    p {
        text-align: center;
    }

    .nav__content {
        flex-direction: column;
    }

    .nav__buttons {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: auto;
        min-width: 210px;
    }

    .nav__buttons {
        display: flex;
        flex-direction: row;
        justify-content:center;

    }

    .hero__trust-badges {
        justify-content: center;
    }


    .about__column:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-btn {
        display: inline-flex;
        margin: 0 auto;
    }

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

    .footer__col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav__trust-badge {
        display: none;
    }

    .nav__content {
        gap: 1rem;
    }
}


@media screen and (max-width: 576px) {
    :root {
        --section-padding: 40px;
    }

    section {
        padding: var(--section-padding) 0;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero__title {
        margin: 1.5rem 0 2rem;
    }

    .nav__logo-img {
        width: 150px;
    }

    .services__card img,
    .gallery__image,
    .about-img {
        height: 300px;
    }

    .primary-btn,
    .secondary-btn {
        padding-right: 1rem;
        padding-left: 1rem;
        min-width: 180px;
    }

    .hero__form.contact {
    width: 360px;
}
}