/*
==============================================
  Roofing Quotes Landing Page - Clean CSS
==============================================
  Table of Contents:
  1. CSS Reset & Base Styles
  2. Typography
  3. Layout & Container
  4. Header & Navigation
  5. Hero Section
  6. Form Styles
  7. Icons Section
  8. About Section
  9. Footer
  10. Animations
  11. Media Queries
==============================================
*/

/* ==========================================
   1. CSS Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #2e3e7e;
    --accent-orange: #fc884a;
    --light-blue: #ebf4ff;
    --blue-tint: #e6f3ff;
    --orange-secondary: #d35400;
    --white: #ffffff;
    --text-dark: #343434;
    --text-black: #000000;

    /* Typography */
    --font-family: 'Lexend', sans-serif;

    /* Spacing */
    --container-padding: 20px;
    --section-padding: 5.5em;

    /* Border Radius */
    --radius-small: 1rem;
    --radius-medium: 1.1em;
    --radius-large: 2.8em;
    --radius-xlarge: 3em;

    /* Shadows */
    --shadow-small: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-orange: 0 13px 21px rgba(252, 136, 74, 0.5);
    --shadow-image: 5px 10px 10px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ==========================================
   2. Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    line-height: 1.4;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-blue);
    font-weight: 400;
}

h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    color: var(--primary-blue);
    line-height: 1.6;
}

h3 {
    font-size: 1.5em;
    color: var(--primary-blue);
}

h4 {
    font-size: 22px;
    color: var(--orange-secondary);
    font-weight: 400;
}

p {
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.unique {
    color: var(--accent-orange);
    font-weight: 700;
}

/* ==========================================
   3. Layout & Container
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

/* ==========================================
   4. Header & Navigation
   ========================================== */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--white);
    height: auto;
    width: 100%;
    padding: 1rem 0;
    position: relative;
    z-index: 100;
    transition: all 0.35s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    column-gap: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    width: 100px;
    height: auto;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 1.6rem;
    height: 1.15rem;
    position: relative;
    z-index: 10;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 1rem;
    position: absolute;
    left: 0;
    transition: 0.25s ease-in-out;
}

.burger-line:first-child {
    top: 0;
}

.burger-line:nth-child(2) {
    top: 0.5rem;
    width: 70%;
}

.burger-line:nth-child(3) {
    top: 1rem;
}

.burger.is-active .burger-line:first-child {
    top: 0.5rem;
    transform: rotate(135deg);
}

.burger.is-active .burger-line:nth-child(2) {
    opacity: 0;
    visibility: hidden;
}

.burger.is-active .burger-line:nth-child(3) {
    top: 0.5rem;
    transform: rotate(-135deg);
}

/* ==========================================
   5. Hero Section
   ========================================== */
#hero {
    background: url('../images/banner.CwIK3m5r.webp') center center / cover no-repeat;
    padding: 13rem 0 7rem;
    position: relative;
}

#hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4em;
}

.text-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5em;
    width: 100%;
    margin: 0 auto;
}

/* Hero Text Box */
#hero-text {
    background-color: var(--white);
    border-radius: var(--radius-xlarge);
    flex-grow: 1;
    overflow: hidden;
    padding: 2rem 0 0;
    max-width: 38.5em;
}

.hero-content {
    padding: 1rem 2.5rem 2rem;
    text-align: center;
}

#hero-text h1 {
    margin-bottom: 1rem;
}

.sub-title {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding-bottom: 17px;
}

/* ==========================================
   6. Form Styles
   ========================================== */
.form-container {
    background-color: var(--white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    padding: 3em 3.5em;
    max-width: 38em;
    width: 100%;
    flex-basis: 46%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-arrow {
    display: none;
}

#form-heading {
    color: var(--accent-orange);
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 1rem;
}

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

.question {
    display: block;
    font-size: 1.5rem;
    line-height: 2;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

#zip-code {
    width: 100%;
    padding: 1em;
    font-size: 1.2em;
    background-color: var(--light-blue);
    border: 1px solid var(--light-blue);
    border-radius: var(--radius-small);
    color: var(--primary-blue);
    outline: none;
    transition: all 0.2s ease;
}

#zip-code:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
}

#zip-code::placeholder {
    color: var(--primary-blue);
    opacity: 0.6;
}

.controls {
    display: flex;
    justify-content: center;
    padding: 30px 0 0;
}

button.cta,
a.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.9em 2em;
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-orange);
    transition: all 0.3s ease;
}

button.cta:hover,
a.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px rgba(252, 136, 74, 0.6);
}

button.cta svg {
    width: 1.2em;
    height: 1.2em;
    fill: none;
    stroke: currentColor;
}

/* ==========================================
   7. Icons Section
   ========================================== */
.icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    background-color: var(--blue-tint);
    border-top: 2px dashed var(--primary-blue);
    border-bottom-left-radius: var(--radius-xlarge);
    border-bottom-right-radius: var(--radius-xlarge);
    padding: 2rem 10%;
    width: 100%;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0 10px;
}

.icon-svg {
    width: 50px;
    height: 50px;
    margin: 0 auto 1em;
}

.icon span {
    display: block;
    color: var(--primary-blue);
    font-size: 0.85em;
    font-weight: 500;
}

.icons-design {
    display: none;
}

/* ==========================================
   8. About Section
   ========================================== */
.about-section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.about-section .row {
    gap: 40px;
}

.content-left {
    width: 100%;
}

#promotional-img {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7)),
                url('../images/about.8NrolZ4N.webp') center / cover;
    background-color: var(--primary-blue);
    border-radius: var(--radius-xlarge);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18rem 3rem 2rem;
    min-height: 450px;
}

.promotional-text {
    color: var(--white);
    font-size: 2.7em;
    line-height: 1.5;
    text-align: center;
    align-self: flex-end;
}

.content-right {
    width: 100%;
    padding-top: 0;
    padding-bottom: 1rem;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.content h4 {
    margin-bottom: 0.5rem;
}

.content h2 {
    margin-bottom: 1rem;
}

/* ==========================================
   9. Footer
   ========================================== */
.footer {
    background-color: var(--white);
    padding: 2rem 0;
    border-top: 1px solid #efefef;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.text-black {
    color: var(--text-black);
    font-size: 0.85em;
}

.text-black:hover {
    color: var(--accent-orange);
}

.copy {
    font-size: 0.85em;
}

.copy p {
    margin: 0;
}

/* ==========================================
   10. Animations
   ========================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-right {
    animation: slideInRight 1s ease forwards;
}

.slide-up {
    animation: slideInUp 1s ease forwards;
}

/* ==========================================
   11. Media Queries
   ========================================== */

/* Desktop Large (1400px and below) */
@media screen and (max-width: 1400px) {
    #hero .container {
        width: 100%;
        gap: 3em;
    }

    .hero-content h1 {
        line-height: 1.4;
        padding: 0.5em 2.5rem;
    }
}

/* Tablet Large (998px and below) */
@media screen and (max-width: 998px) {
    .burger {
        display: block;
    }

    #hero {
        padding: 5rem 0 3rem;
    }

    .text-wrapper {
        flex-direction: column;
        gap: 2em;
        width: 100%;
        padding: 0;
    }

    .form-container {
        max-width: 100%;
        flex-basis: 100%;
    }

    #hero-text {
        max-width: 100%;
    }

    .about-section .row {
        flex-wrap: wrap;
    }

    #promotional-img {
        padding: 10rem 4rem 4rem;
    }

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

    .footer-links {
        justify-content: center;
    }
}

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    #hero {
        padding: 3rem 0;
    }

    #hero .container {
        padding: 0;
        max-width: 100%;
    }

    .about-section .container,
    .footer .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    #hero-text {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    #hero-text .icons {
        display: none;
    }

    .hero-content {
        padding: 1rem 1.5rem 1rem;
        text-align: left;
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        color: var(--white);
        font-size: 2.2rem;
        font-weight: 400;
        line-height: 1.25;
        margin-bottom: 0.8rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-content h1 .unique {
        color: var(--white);
        font-weight: 400;
    }

    .sub-title {
        color: var(--white);
        font-size: 0.95rem;
        font-weight: 300;
        line-height: 1.4;
        padding-bottom: 0;
        margin-bottom: 0;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    .form-container {
        padding: 1.5em 1.8em;
        flex-basis: 100%;
        max-width: 90%;
        margin: 0 auto;
        border-radius: 2rem;
    }

    #form-heading {
        font-size: 1.3em;
        margin-bottom: 0.5rem;
    }

    .question {
        font-size: 1.1rem;
        color: var(--text-black);
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .icons-design {
        display: none;
    }

    .promotional-text {
        font-size: 1.7em;
    }

    #promotional-img {
        padding: 4rem 3rem 3rem;
        min-height: 300px;
    }

    button.cta {
        font-size: 1em;
        padding: 0.9em 2em;
    }

    #zip-code {
        padding: 0.8em;
    }

    .content {
        align-items: center;
    }

    a.cta-link {
        margin: 0 auto;
    }
}

/* Mobile (600px and below) */
@media screen and (max-width: 600px) {
    #hero {
        padding: 0.5rem 0 3rem;
    }

    .container {
        gap: 1em;
    }

    .text-wrapper {
        gap: 2em;
    }

    .header {
        padding: 0.5rem 0;
    }

    .logo {
        width: 80px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-container {
        padding: 2em 1.5em;
    }

    .question {
        font-size: 1.2rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Mobile Small (479px and below) */
@media screen and (max-width: 479px) {
    .hero-content {
        padding: 1rem 1.5rem;
    }

    .form-container {
        padding: 1.5em 1.2em;
    }

    #form-heading {
        font-size: 1.2em;
    }

    .icon-svg {
        width: 35px;
        height: 35px;
    }

    .icon span {
        font-size: 0.75em;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.hidden {
    display: none;
}

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

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

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}
