/* ============================================
   AMERICAN REALTORS — Hamtramck
   Bold Editorial Style | Terracotta + Sand
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terra-950: #3D1C0E;
    --terra-900: #5C2A14;
    --terra-800: #7A3A1C;
    --terra-700: #944A24;
    --terra-600: #B85C38;
    --terra-500: #C96E4A;
    --terra-400: #D4896A;
    --terra-300: #E0A892;
    --terra-200: #EBC4B4;
    --terra-100: #F5DDD5;
    --terra-50:  #FBF0EC;

    --sand-950:  #1A1714;
    --sand-900:  #2A2420;
    --sand-800:  #3D352F;
    --sand-700:  #544B43;
    --sand-600:  #6E6359;
    --sand-500:  #8A7E72;
    --sand-400:  #A89B8E;
    --sand-300:  #C4B8AA;
    --sand-200:  #DDD2C5;
    --sand-100:  #EDE6DC;
    --sand-50:   #F7F4F0;
    --sand-25:   #FBF9F7;
    --sand-0:    #FDFCFA;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--sand-900);
    background: var(--sand-0);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: 1rem;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--sand-950);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-headline-accent {
    color: var(--terra-600);
    font-style: italic;
}

.section-headline br + .section-headline-accent {
    display: block;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--terra-600);
    color: #fff;
    border-color: var(--terra-600);
}

.btn--primary:hover {
    background: var(--terra-700);
    border-color: var(--terra-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 92, 56, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--sand-900);
    border-color: var(--sand-300);
}

.btn--ghost:hover {
    border-color: var(--terra-600);
    color: var(--terra-600);
    transform: translateY(-2px);
}

.btn--light {
    background: #fff;
    color: var(--terra-700);
    border-color: #fff;
}

.btn--light:hover {
    background: var(--sand-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sand-100);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(42, 36, 32, 0.08);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sand-950);
    transition: color 0.2s;
}

.nav__brand:hover {
    color: var(--terra-600);
}

.nav__brand-icon {
    color: var(--terra-600);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sand-700);
    transition: color 0.2s;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terra-600);
    transition: width 0.3s var(--ease-out);
}

.nav__links a:hover {
    color: var(--terra-600);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--terra-600);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out) !important;
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background: var(--terra-700) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--sand-800);
}

.nav__toggle-close {
    display: none;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--sand-0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu__list a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--sand-900);
    transition: color 0.2s;
}

.mobile-menu__list a:hover {
    color: var(--terra-600);
}

.mobile-menu__call {
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--terra-600) !important;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    border: 1.5px solid var(--terra-600);
    border-radius: 4px;
    display: inline-block;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--sand-0);
    padding: 72px 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 70% 30%, var(--terra-50) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 80%, var(--terra-100) 0%, transparent 40%);
    pointer-events: none;
}

.hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background: var(--terra-50);
    border-radius: 100px;
    border: 1px solid var(--terra-100);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--sand-950);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero__headline-accent {
    color: var(--terra-600);
    font-style: italic;
}

.hero__subhead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--sand-600);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero__stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero__stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terra-600);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--sand-500);
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-200);
}

.hero__right {
    position: relative;
}

.hero__image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(42, 36, 32, 0.12);
}

.hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--terra-200);
    border-radius: 50%;
    z-index: -1;
}

.hero__card {
    position: absolute;
    bottom: -32px;
    left: -48px;
    background: var(--sand-0);
    padding: 1.5rem 1.75rem;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(42, 36, 32, 0.12);
    max-width: 280px;
    border: 1px solid var(--sand-100);
}

.hero__card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra-500);
    margin-bottom: 0.5rem;
}

.hero__card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sand-950);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero__card-desc {
    font-size: 0.875rem;
    color: var(--sand-600);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero__card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--terra-600);
    transition: color 0.2s;
}

.hero__card-link:hover {
    color: var(--terra-700);
}

/* --- About --- */
.about {
    padding: 8rem 0;
    background: var(--sand-50);
    overflow: hidden;
}

.about__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about__left {
    max-width: 560px;
}

.about__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--sand-600);
    margin-bottom: 1.25rem;
}

.about__values {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.about__value {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--sand-800);
}

.about__value svg {
    color: var(--terra-600);
    flex-shrink: 0;
}

.about__right {
    position: relative;
}

.about__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(42, 36, 32, 0.1);
}

.about__right-accent {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--terra-100);
    border-radius: 50%;
    z-index: -1;
}

/* --- Services --- */
.services {
    padding: 8rem 0;
    background: var(--sand-0);
}

.services__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.services__desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--sand-600);
}

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

.service-card {
    background: var(--sand-50);
    border: 1px solid var(--sand-100);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--terra-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(42, 36, 32, 0.08);
    border-color: var(--terra-200);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--terra-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terra-600);
    margin-bottom: 1.5rem;
    transition: background 0.3s;
}

.service-card:hover .service-card__icon {
    background: var(--terra-600);
    color: #fff;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--sand-950);
    margin-bottom: 0.875rem;
    line-height: 1.2;
}

.service-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--sand-600);
    margin-bottom: 1.5rem;
}

.service-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--terra-600);
    transition: color 0.2s;
}

.service-card__link:hover {
    color: var(--terra-700);
}

/* --- Community --- */
.community {
    padding: 8rem 0;
    background: var(--sand-950);
    overflow: hidden;
}

.community__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.community__content .section-label {
    color: var(--terra-400);
}

.community__content .section-headline {
    color: var(--sand-0);
}

.community__content .section-headline-accent {
    color: var(--terra-400);
}

.community__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--sand-400);
    margin-bottom: 1.25rem;
}

.community__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.community__feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--sand-200);
}

.community__feature svg {
    color: var(--terra-400);
    flex-shrink: 0;
}

.community__image-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.community__image-main {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.community__image-secondary {
    position: absolute;
    bottom: -1.5rem;
    right: 0;
    width: 55%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--sand-950);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 6rem 0;
    background: var(--terra-600);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.cta-banner__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cta-banner__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
}

.cta-banner__actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    background: var(--sand-50);
}

.contact__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--sand-600);
    margin-bottom: 2.5rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact__detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__detail-icon {
    width: 44px;
    height: 44px;
    background: var(--terra-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terra-600);
    flex-shrink: 0;
}

.contact__detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-400);
    margin-bottom: 0.25rem;
}

.contact__detail-value {
    font-size: 1rem;
    color: var(--sand-800);
    font-weight: 500;
    line-height: 1.5;
}

.contact__link {
    color: var(--terra-600);
    transition: color 0.2s;
}

.contact__link:hover {
    color: var(--terra-700);
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form {
    background: var(--sand-0);
    border: 1px solid var(--sand-100);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(42, 36, 32, 0.06);
}

.contact-form__group {
    margin-bottom: 1.5rem;
}

.contact-form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sand-700);
    margin-bottom: 0.5rem;
}

.contact-form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--sand-900);
    background: var(--sand-50);
    border: 1.5px solid var(--sand-200);
    border-radius: 6px;
    transition: all 0.2s;
    outline: none;
}

.contact-form__input::placeholder {
    color: var(--sand-400);
}

.contact-form__input:focus {
    border-color: var(--terra-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

.contact-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6359' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: 6px;
    color: #2E7D32;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 1rem;
}

.contact-form__success.show {
    display: flex;
}

.contact-form__success svg {
    flex-shrink: 0;
}

/* --- Map --- */
.map-section {
    background: var(--sand-100);
}

.map-section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
}

/* --- Footer --- */
.footer {
    background: var(--sand-950);
    padding: 5rem 0 0;
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sand-0);
    margin-bottom: 1rem;
}

.footer__logo:hover {
    color: var(--terra-400);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--sand-500);
    line-height: 1.6;
    max-width: 300px;
}

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

.footer__link-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand-400);
    margin-bottom: 1.25rem;
}

.footer__link-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link-col a,
.footer__link-col span {
    font-size: 0.9375rem;
    color: var(--sand-500);
    transition: color 0.2s;
}

.footer__link-col a:hover {
    color: var(--terra-400);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--sand-600);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__inner {
        gap: 3rem;
    }

    .hero__card {
        left: -24px;
        bottom: -24px;
    }

    .about__inner,
    .community__inner,
    .contact__inner {
        gap: 3rem;
    }

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

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero__right {
        max-width: 520px;
        margin: 0 auto;
    }

    .hero__card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.5rem;
        max-width: 100%;
    }

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

    .about__right {
        max-width: 520px;
    }

    .community__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .community__image-group {
        max-width: 520px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

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

    .nav__toggle-open {
        display: block;
    }

    .nav__toggle-close {
        display: block;
    }

    .nav__toggle.active .nav__toggle-open {
        display: none;
    }

    .nav__toggle.active .nav__toggle-close {
        display: block;
    }

    .hero {
        padding: 100px 0 4rem;
        min-height: auto;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero__stat-divider {
        display: none;
    }

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

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

    .community__image-secondary {
        width: 65%;
    }

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

    .cta-banner__actions .btn {
        width: 100%;
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav__inner {
        padding: 0 1.25rem;
    }

    .hero__inner,
    .about__inner,
    .services__inner,
    .community__inner,
    .contact__inner {
        padding: 0 1.25rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about__values {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .footer__top {
        gap: 2.5rem;
    }
}
