/* ============================================
   Heritage Realty of the Ozarks — Stylesheet
   Palette: Plum (#6B2D5B) + Amber (#C8922A)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --plum: #6B2D5B;
    --plum-dark: #4E1F42;
    --plum-light: #8B3D75;
    --plum-pale: #F3E8F0;
    --amber: #C8922A;
    --amber-light: #F5D77A;
    --amber-pale: #FFF8E7;
    --dark: #1A1A2E;
    --dark-soft: #2D2D44;
    --gray-900: #1C1C2E;
    --gray-700: #3D3D5C;
    --gray-500: #6B6B8A;
    --gray-300: #B8B8D0;
    --gray-100: #F0F0F8;
    --white: #FFFFFF;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(107, 45, 91, 0.08);
    --shadow-md: 0 8px 30px rgba(107, 45, 91, 0.12);
    --shadow-lg: 0 20px 60px rgba(107, 45, 91, 0.15);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1.2;
}

em {
    font-style: italic;
    color: var(--plum);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #B8821F;
    border-color: #B8821F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 146, 42, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--plum);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--plum);
    border-color: var(--plum);
}

.btn-outline:hover {
    background: var(--plum);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 45, 91, 0.3);
}

.btn--large {
    padding: 17px 36px;
    font-size: 1.05rem;
}

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

/* ---- Section Tags ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--plum-pale);
    color: var(--plum);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-tag--light {
    background: rgba(255,255,255,0.15);
    color: var(--amber-light);
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 18px;
    color: var(--dark);
}

.section-title--light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.8;
}

.section-subtitle--light {
    color: rgba(255,255,255,0.75);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav.scrolled .nav-logo-text {
    color: var(--dark);
}

.nav.scrolled .nav-links a {
    color: var(--gray-700);
}

.nav.scrolled .nav-links a:hover {
    color: var(--plum);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    transition: color var(--transition);
}

.nav-logo-text {
    color: var(--white);
    transition: color var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--amber);
    color: var(--dark) !important;
    padding: 10px 22px;
    border-radius: var(--radius-xl);
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: #B8821F;
    color: var(--dark) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav.scrolled .nav-toggle span {
    background: var(--dark);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 50%, var(--plum-light) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--amber);
    top: -200px;
    right: -150px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--amber-light);
    bottom: -80px;
    left: 10%;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: var(--white);
    top: 30%;
    left: -60px;
    transform: rotate(45deg);
    border-radius: var(--radius-md);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid var(--amber-light);
    top: 15%;
    right: 15%;
    opacity: 0.06;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--amber-light) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 20%;
    right: 5%;
    opacity: 0.2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 146, 42, 0.2);
    border: 1px solid rgba(200, 146, 42, 0.4);
    color: var(--amber-light);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.08;
}

.hero-title em {
    color: var(--amber-light);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Floating Stat Cards ---- */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.stat-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition);
}

.stat-card:hover {
    transform: translateX(-6px);
}

.stat-card--amber .stat-card-accent {
    background: var(--amber);
}

.stat-card--plum .stat-card-accent {
    background: var(--plum);
}

.stat-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--plum);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ============================================
   Services
   ============================================ */
.services {
    position: relative;
    padding: 110px 0;
    background: var(--gray-100);
    overflow: hidden;
}

.services-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(107,45,91,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    position: relative;
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 38px;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(107, 45, 91, 0.1);
}

.service-card--plum {
    background: var(--plum);
    border-color: var(--plum);
}

.service-card--plum .service-icon {
    color: var(--amber-light);
}

.service-card--plum h3 {
    color: var(--white);
}

.service-card--plum p {
    color: rgba(255,255,255,0.75);
}

.service-card-bg {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--plum-pale);
    bottom: -60px;
    right: -60px;
    opacity: 0.5;
    transition: all var(--transition);
}

.service-card:hover .service-card-bg {
    transform: scale(1.3);
    opacity: 0.7;
}

.service-card--plum .service-card-bg {
    background: rgba(255,255,255,0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--plum-pale);
    color: var(--plum);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-card--plum .service-icon {
    background: rgba(200, 146, 42, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray-500);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    line-height: 1.75;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--plum);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: gap var(--transition);
    position: relative;
    z-index: 1;
}

.service-link:hover {
    gap: 10px;
}

.service-link--light {
    color: var(--amber-light);
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 110px 0;
    background: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5/6.2;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 40%;
    background: var(--amber);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
}

.about-floating-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.afc-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--plum);
    line-height: 1;
}

.afc-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    color: var(--gray-700);
    margin-bottom: 18px;
    font-size: 1.02rem;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin: 32px 0 36px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.value-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--plum-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    margin-top: 2px;
}

.value-item span {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* ============================================
   Area
   ============================================ */
.area {
    position: relative;
    padding: 110px 0;
    background: var(--plum-dark);
    overflow: hidden;
}

.area-bg-block {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 100%);
    pointer-events: none;
}

.area .container {
    position: relative;
    z-index: 1;
}

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

.area-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.area-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.area-card img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.area-card:hover img {
    transform: scale(1.05);
}

.area-card-content {
    background: var(--white);
    padding: 26px 28px;
}

.area-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--plum);
}

.area-card-content p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
    position: relative;
    padding: 110px 0;
    background: var(--gray-100);
    overflow: hidden;
}

.testimonials-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 4px 4px, rgba(200,146,42,0.06) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(107,45,91,0.08);
}

.testimonial-card--plum {
    background: var(--plum);
    border-color: var(--plum);
}

.testimonial-card--plum .testimonial-text {
    color: rgba(255,255,255,0.85);
}

.testimonial-card--plum .testimonial-name {
    color: var(--white);
}

.testimonial-card--plum .testimonial-location {
    color: rgba(255,255,255,0.6);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--plum);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.testimonial-location {
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--amber) 0%, #D4A030 100%);
    overflow: hidden;
}

.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.cta-shape.csa-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -100px;
}

.cta-shape.csa-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: 10%;
}

.cta-shape.csa-3 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 5%;
    border-radius: var(--radius-md);
    transform: rotate(30deg);
}

.cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--dark);
    margin-bottom: 20px;
}

.cta-title em {
    color: var(--plum);
}

.cta-text {
    font-size: 1.12rem;
    color: rgba(26,26,46,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 110px 0;
    background: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 18px;
}

.contact-desc {
    color: var(--gray-500);
    font-size: 1.02rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-detail-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--plum-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-detail span,
.contact-detail a {
    color: var(--gray-500);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--plum);
}

/* ---- Form ---- */
.contact-form-wrapper {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 44px;
}

.contact-form-title {
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    box-shadow: 0 0 0 4px rgba(107, 45, 91, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: block;
}

.form-success p {
    margin-top: 16px;
    color: var(--plum);
    font-weight: 500;
    font-size: 1.05rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.6);
    padding: 70px 0 0;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer-links-group h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links-group a:hover {
    color: var(--amber-light);
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.footer-legal {
    font-size: 0.8rem;
}

/* ============================================
   Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        max-width: 480px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--gray-700) !important;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        min-width: auto;
    }

    .services-grid,
    .area-grid {
        grid-template-columns: 1fr;
    }

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

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-floating-card {
        left: 10px;
        bottom: 20px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 32px 26px;
    }
}
