/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/*** FONTS AND VARIABLES ***/
:root {
    --primary-color: #dad1d1;
    --secondary-color: #ff5722;
    --background-color: #e7e5e5; 
    --text-color: #4f4b4b;
    --font-family: 'Lato', sans-serif;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


/*** BASE STYLES ***/
body {
    font-family: var(--font-family);
    background: var(--background-color);
    padding: var(--spacing-md) 0;
}


/*** SUCCESS MODAL (Fully Responsive) ***/
.newsletter__email-modal {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 90vw, 500px); /* Min 280px, max 500px, scales in between */
    height: auto; /* Content defines height (no overflow) */
    padding: var(--spacing-lg) var(--spacing-xl);
    background: white;
    border-radius: 50px;
    z-index: 1000;
    box-sizing: border-box; /* Padding included in width */
}

.newsletter__email-modal img {
    max-width: 100%;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

.newsletter__email-modal h1 {
    font-size: clamp(1.2rem, 4vw, 2rem); /* Smooth responsive text */
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.newsletter__email-modal p {
    font-size: clamp(0.9rem, 3vw, 1.2rem); /* Smooth responsive text */
    color: var(--text-color);
    text-align: center;
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.newsletter__modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.25rem;
    line-height: 1;
}

.newsletter__modal-close:hover {
    color: var(--secondary-color);
}


/*** BLOCK: .newsletter (Main Component) ***/
.newsletter {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


/*** ELEMENTS: .newsletter__hero (Hero Section) ***/
.newsletter__hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.newsletter__hero-image-container {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-lg);
}

.newsletter__hero-image {
    display: block;
    width: 100%;
    height: auto;
    border: 2px inset rgba(231, 229, 229, 0.9);
    border-radius: 8px;
}

.newsletter__hero-image-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    background: linear-gradient(to top, rgba(231, 229, 229, 0.9), transparent);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.newsletter__hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-color);
    text-transform: capitalize;
    margin-bottom: var(--spacing-md);
}

.newsletter__hero-desc {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.5;
    max-width: 50rem;
    margin: 0 auto;
}


/*** ELEMENT: .newsletter__container (Centered Content Wrapper) ***/
.newsletter__container {
    max-width: 75rem;
    margin: 0 auto;
    width: 90%;
}


/*** ELEMENT: .newsletter__form (Subscription Form) ***/
.newsletter__form {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.newsletter__form-input {
    width: 100%;
    max-width: 40rem;
    padding: var(--spacing-lg);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: var(--font-family);
}

/* Responsive Error Message */
.newsletter__form-input--error {
    display: none;
    position: relative;
    top: -1.25rem;
    left: 0;
    margin: 0 auto; /* Centers under input */
    width: fit-content; /* Prevents weird wrapping */
    color: var(--secondary-color);
    font-family: var(--font-family);
    font-size: clamp(0.8rem, 2vw, 1rem); /* Smooth responsive text */
    font-weight: bold;
}

.newsletter__form-button {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    padding: var(--spacing-lg) var(--spacing-xl);
    border: none;
    border-radius: 50px;
    background: black;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    cursor: pointer;
    white-space: nowrap;
}


/*** ELEMENT: .newsletter__info (Privacy Text) ***/
.newsletter__info {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.newsletter__info-text {
    color: var(--text-color);
    line-height: 1.5;
    font-size: clamp(0.9rem, 2vw, 1rem);
    max-width: 35rem;
    margin: 0 auto;
}


/*** ELEMENT: .newsletter__logos (Logo Section) ***/
.newsletter__logos {
    margin-bottom: var(--spacing-xl);
}

.newsletter__logos-background {
    position: relative;
    padding: var(--spacing-md) 0;
}

.newsletter__logos-background::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 10%;
    background: linear-gradient(to right, rgba(236, 233, 233, 0.9), transparent);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.newsletter__logos-background::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 10%;
    background: linear-gradient(to left, rgba(236, 233, 233, 0.9), transparent);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.newsletter__logos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.newsletter__logos-item {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-color);
}

.newsletter__logos-icon {
    width: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.newsletter__logos-name {
    font-size: 1rem;
}


/*** RESPONSIVE BREAKPOINTS (Cleaned Up) ***/
/* Tablet (768px and below) */
@media only screen and (max-width: 768px) {
    .newsletter__logos-background::after,
    .newsletter__logos-background::before {
        width: 15%;
    }

    .newsletter__form-button {
        padding: var(--spacing-md) var(--spacing-lg);
        right: 8%;
        top: 42%;
    }

    .newsletter__logos-grid {
        gap: var(--spacing-lg);
    }
}

/* Mobile (480px and below) */
@media only screen and (max-width: 480px) {
    .newsletter__form {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .newsletter__form-button {
        position: static;
        transform: none;
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    /* Tweak error message spacing for stacked button */
    .newsletter__form-input--error {
        top: -0.75rem;
    }

    .newsletter__logos-background::after,
    .newsletter__logos-background::before {
        width: 12%;
    }

    .newsletter__logos-icon {
        width: 16px;
    }

    .newsletter__hero-heading {
        margin-bottom: var(--spacing-sm);
    }
}

/* Extra Small Mobile (375px and below) */
@media only screen and (max-width: 375px) {
    .newsletter__logos-grid {
        gap: var(--spacing-sm);
    }

    .newsletter__form-input {
        padding: var(--spacing-md);
    }

    .newsletter__logos-icon {
        width: 14px;
    }
}