/* =====================================================
   WENDY KOSALKO REAL ESTATE - DESIGN SYSTEM
   Tucson Desert Theme with Modern Elegance
   ===================================================== */

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    /* Primary Colors - Desert Earth Tones */
    --color-primary: #C17F59;
    /* Terracotta */
    --color-primary-dark: #A66B48;
    /* Dark Terracotta */
    --color-primary-light: #D4A080;
    /* Light Terracotta */

    /* Secondary Colors - Desert Sage */
    --color-secondary: #7A9E7E;
    /* Sage Green */
    --color-secondary-dark: #5C7D5F;
    /* Dark Sage */
    --color-secondary-light: #A8C5AB;
    /* Light Sage */

    /* Accent Colors - Sunset Warmth */
    --color-accent: #E8A87C;
    /* Sunset Orange */
    --color-accent-gold: #D4AF37;
    /* Desert Gold */
    --color-accent-coral: #E07A5F;
    /* Coral */

    /* Neutral Colors */
    --color-sand: #F5E6D3;
    /* Sand */
    --color-sand-light: #FBF7F2;
    /* Light Sand */
    --color-charcoal: #2D2D2D;
    /* Charcoal */
    --color-slate: #4A4A4A;
    /* Slate */
    --color-gray: #6B6B6B;
    /* Gray */
    --color-light-gray: #E8E8E8;
    /* Light Gray */
    --color-white: #FFFFFF;
    /* White */

    /* Gradient Backgrounds */
    --gradient-sunset: linear-gradient(135deg, #E8A87C 0%, #C17F59 50%, #7A9E7E 100%);
    --gradient-desert: linear-gradient(180deg, #FBF7F2 0%, #F5E6D3 100%);
    --gradient-hero: linear-gradient(135deg, rgba(193, 127, 89, 0.9) 0%, rgba(122, 158, 126, 0.8) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 230, 211, 0.6) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(193, 127, 89, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* =====================================================
   CSS RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-sand-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    color: var(--color-charcoal);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
}

.text-accent {
    color: var(--color-primary);
}

.text-muted {
    color: var(--color-gray);
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
}

.section--alt {
    background: var(--gradient-desert);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

.flex--column {
    flex-direction: column;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: var(--gradient-sunset);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 4px 20px rgba(193, 127, 89, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 8px 30px rgba(193, 127, 89, 0.4);
    color: var(--color-white);
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn--white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--color-primary);
}

.btn--large {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.header--transparent {
    background: transparent;
}

.header--solid {
    background: rgba(193, 127, 89, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.header--solid .nav__link {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header--solid .nav__link:hover {
    color: var(--color-sand);
}

.header--solid .nav__link::after {
    background: var(--color-white);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    height: 120px;
    width: auto;
}

.header__logo img {
    height: 100%;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav__link {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-charcoal);
    position: relative;
    padding: var(--space-2) 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-sunset);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-primary);
}

/* Transparent header nav styling (over hero) */
.header--transparent .nav__link {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header--transparent .nav__link:hover {
    color: var(--color-sand);
}

.header--transparent .nav__link::after {
    background: var(--color-white);
}

/* Keep logo colors visible on transparent header */
.header--transparent .header__logo img {
    /* No filter - keep original colors */
}

.header--transparent .mobile-menu-toggle span {
    background: var(--color-white);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-charcoal);
    transition: all var(--transition-base);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 140px;
    /* Prevent header overlap */
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero__content {
    position: relative;
    z-index: var(--z-base);
    max-width: 700px;
    color: var(--color-white);
}

.hero__tagline {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.95;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__image {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    z-index: var(--z-base);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-full);
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   CARDS - GLASSMORPHISM STYLE
   ===================================================== */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.08);
}

.card__badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--gradient-sunset);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.card__content {
    padding: var(--space-6);
}

.card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.card__location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.card__price {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.card__features {
    display: flex;
    gap: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-light-gray);
}

.card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-slate);
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-header__tagline {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.section-header__title {
    margin-bottom: var(--space-4);
}

.section-header__divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-sunset);
    margin: var(--space-6) auto;
    border-radius: var(--radius-full);
}

.section-header__text {
    color: var(--color-gray);
    font-size: var(--text-lg);
}

/* =====================================================
   WHY CHOOSE SECTION
   ===================================================== */
.feature-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-desert);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
}

.feature-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-card__text {
    color: var(--color-gray);
    font-size: var(--text-base);
    margin-bottom: 0;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonial {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 120px;
    color: var(--color-primary);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.testimonial__text {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-slate);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial__name {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
}

.testimonial__role {
    font-size: var(--text-sm);
    color: var(--color-gray);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: var(--gradient-sunset);
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
}

.cta-section__content {
    position: relative;
    z-index: var(--z-base);
}

.cta-section__title {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-section__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    height: 60px;
    margin-bottom: var(--space-6);
    filter: brightness(0) invert(1);
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.footer__social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
    color: var(--color-white);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--space-3);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-primary-light);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--color-primary-light);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer__affiliations {
    margin-top: var(--space-12);
    margin-bottom: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.footer__affiliations-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.footer__affiliations img {
    height: 80px;
    /* Reduced to reasonable size */
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all var(--transition-base);
}

.footer__affiliations img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-hero {
    padding: var(--space-24) 0 var(--space-16);
    background: var(--gradient-desert);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-primary);
    border-radius: var(--radius-2xl);
    z-index: -1;
}

.about-text h2 {
    margin-bottom: var(--space-6);
}

.about-text p {
    font-size: var(--text-lg);
    color: var(--color-slate);
    margin-bottom: var(--space-6);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
    padding-top: var(--space-10);
    border-top: 1px solid var(--color-light-gray);
}

.about-stat {
    text-align: center;
}

.about-stat__number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    display: block;
}

.about-stat__label {
    font-size: var(--text-sm);
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-section {
    padding: var(--space-24) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
}

.contact-info {
    background: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-info__title {
    margin-bottom: var(--space-6);
}

.contact-info__text {
    color: var(--color-gray);
    margin-bottom: var(--space-8);
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-info__icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-desert);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-info__details h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.contact-info__details p {
    color: var(--color-gray);
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    background: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: var(--font-medium);
    margin-bottom: var(--space-2);
    color: var(--color-charcoal);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    background: var(--color-sand-light);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(193, 127, 89, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger animations */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }

    .header__logo {
        height: 80px;
    }

    .hero__content {
        max-width: 55%;
    }

    .hero__image {
        width: 240px;
        height: 240px;
        right: 3%;
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Move mobile menu trigger to 1024px (Tablets) */
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    /* Key Layout Adjustments for Mobile */
    .hero {
        min-height: auto;
        padding: var(--space-24) 0 var(--space-16);
        flex-direction: column;
    }

    .hero__image {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        transform: none;
        width: 200px;
        height: 200px;
        margin: 0 auto var(--space-8);
        z-index: 2;
        order: -1;
    }

    .hero__image img {
        border-radius: var(--radius-full);
        width: 200px;
        height: 200px;
        object-fit: cover;
        object-position: top center;
        border: 4px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .hero .container {
        order: 0;
    }

    .hero__content {
        text-align: center;
        max-width: 100%;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__contact-item {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .about-stat__number {
        font-size: var(--text-2xl);
    }

    .about-stat__label {
        font-size: var(--text-xs);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Hide Wendy's image in renters section on mobile */
    .renters-section .about-image {
        display: none;
    }
}

/* Reversed about content for alternating layouts */
.about-content--reversed {
    direction: rtl;
}

.about-content--reversed>* {
    direction: ltr;
}

@media (max-width: 1024px) {
    .about-content--reversed {
        direction: ltr;
    }
}

/* =====================================================
   MOBILE MENU OVERLAY
   ===================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    background: none;
    border: none;
    font-size: var(--text-3xl);
    cursor: pointer;
    color: var(--color-charcoal);
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--color-charcoal);
}

.mobile-menu__link:hover {
    color: var(--color-primary);
}

/* =====================================================
   PAGE HERO (for inner pages)
   ===================================================== */
.page-hero {
    padding: calc(var(--space-24) + 80px) 0 var(--space-16);
    background: var(--gradient-desert);
    text-align: center;
}

.page-hero__title {
    margin-bottom: var(--space-4);
}

.page-hero__breadcrumb {
    color: var(--color-gray);
}

.page-hero__breadcrumb a {
    color: var(--color-primary);
}

.page-hero__breadcrumb span {
    margin: 0 var(--space-2);
}

/* Listings Page Specific Hero */
.page-hero--listings {
    background-image: url('images/sonoran_desert_animal.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (max-width: 768px) {
    .page-hero--listings {
        background-position: 70% center;
        padding-top: calc(var(--space-24) + 20px);
        padding-bottom: var(--space-24);
    }

    /* Left-align page hero text on mobile */
    .page-hero {
        text-align: left;
    }

    .page-hero .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }

    .page-hero__title {
        text-align: left;
    }

    .page-hero__breadcrumb {
        text-align: left;
    }
}