/* Ty Wilder Real Estate - Custom CSS */
/* Colors */
:root {
    --navy: #1B365D;
    --gold: #C5A572;
    --light-gold: #E8D9B5;
    --light-navy: #2A4A7A;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

.phone-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.phone-button:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    .phone-button {
        order: 2;
        align-self: flex-end;
        margin-top: -3rem;
    }
}

/* Hero */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, var(--navy) 0%, var(--light-navy) 100%);
    opacity: 0.03;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 25% 0);
}

.hero-content {
    max-width: 600px;
    margin-bottom: 4rem;
}

.hero-headline {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
}

.cta-button:hover {
    background-color: var(--light-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin-top: 4rem;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    .hero-subhead {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero-headline {
        font-size: 2.25rem;
    }
    .hero-subhead {
        font-size: 1rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }
    .hero-image {
        margin-top: 2rem;
    }
    .hero-image img {
        height: 300px;
    }
}

/* Quiz */
.quiz {
    padding: 100px 0;
    background-color: var(--gray-100);
}

.quiz-widget {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    padding: 1.5rem;
    background-color: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover,
.quiz-option.selected {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-prev,
.quiz-next {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.quiz-prev {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.quiz-prev:hover:not(:disabled) {
    background-color: var(--gray-300);
}

.quiz-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-next {
    background-color: var(--navy);
    color: var(--white);
}

.quiz-next:hover {
    background-color: var(--light-navy);
    transform: translateY(-2px);
}

.quiz-note {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .quiz {
        padding: 60px 0;
    }
    .quiz-widget {
        padding: 2rem;
    }
    .quiz-options {
        grid-template-columns: 1fr;
    }
}

/* Video */
.video {
    padding: 100px 0;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-placeholder {
    background-color: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-thumbnail {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--gold);
    color: var(--navy);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    background-color: var(--light-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    padding: 2rem;
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-700);
}

@media (max-width: 768px) {
    .video {
        padding: 60px 0;
    }
    .video-thumbnail {
        height: 300px;
    }
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Partners */
.partners {
    padding: 100px 0;
    background-color: var(--gray-100);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-logo {
    flex: 0 0 auto;
}

.partner-logo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-logo img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .partners {
        padding: 60px 0;
    }
    .partner-logos {
        gap: 2rem;
        flex-direction: column;
    }
}

/* Communities */
.communities {
    padding: 100px 0;
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.community-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.community-image {
    height: 220px;
    overflow: hidden;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.community-content {
    padding: 1.5rem;
}

.community-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.community-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.community-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.community-button {
    display: inline-block;
    background-color: var(--navy);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.community-button:hover {
    background-color: var(--light-navy);
}

@media (max-width: 768px) {
    .communities {
        padding: 60px 0;
    }
    .community-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Inventory */
.inventory {
    padding: 100px 0;
    background-color: var(--gray-100);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.inventory-item {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.inventory-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.inventory-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.inventory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inventory-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
}

.inventory-details {
    padding: 1.5rem;
}

.inventory-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.inventory-details p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.inventory-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.inventory-button {
    display: inline-block;
    background-color: var(--navy);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.inventory-button:hover {
    background-color: var(--light-navy);
}

@media (max-width: 768px) {
    .inventory {
        padding: 60px 0;
    }
    .inventory-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Footer */
.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--gold);
    transition: var(--transition);
}

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

.email-form {
    display: flex;
    margin-top: 1rem;
}

.email-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: inherit;
    font-size: 0.875rem;
}

.email-form button {
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.email-form button:hover {
    background-color: var(--light-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    .email-form {
        flex-direction: column;
    }
    .email-form input,
    .email-form button {
        border-radius: 50px;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}