/* ============================================================
   Cummings & Co. Realtors — Gallery Template v2
   Brand: #20419A navy · #FDBA12 gold · Quicksand + Jost fonts
   Aesthetic: Modern professional, rounded, animated
   ============================================================ */

:root {
    --primary-color: #20419A;
    --accent-color: #FDBA12;
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Jost', 'Roboto', sans-serif;
    --text-dark: #111;
    --text-muted: #555;
    --text-light: #999;
    --bg-light: #F5F5FA;
    --bg-white: #fff;
    --bg-dark: #0a0a0a;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body) !important;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

p { margin: 0 0 10px 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ── Scroll Animations ───────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.animate-in.delay-1 { transition-delay: 0.1s; }
.animate-in.delay-2 { transition-delay: 0.2s; }
.animate-in.delay-3 { transition-delay: 0.3s; }
.animate-in.delay-4 { transition-delay: 0.4s; }

/* Karr-style slide-in from left/right for collage images */
.slide-from-left {
    opacity: 0;
    transform: translateX(-80%);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-from-right {
    opacity: 0;
    transform: translateX(80%);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-from-left.visible,
.slide-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-from-left.delay-1,
.slide-from-right.delay-1 { transition-delay: 0.15s; }
.slide-from-left.delay-2,
.slide-from-right.delay-2 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .animate-in,
    .slide-from-left,
    .slide-from-right { opacity: 1; transform: none; transition: none; }
}

/* ── Section Titles (Quicksand, tracked) ─────────────────── */
.section-title {
    font-family: var(--font-heading) !important;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ── Navigation ──────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-white);
    height: 55px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 45px;
    width: auto;
    transition: all 0.3s;
}

.navbar.scrolled .logo img { height: 32px; }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    gap: 0;
}

.nav-links li { padding: 0; }

.nav-links a {
    color: #fff;
    font-family: var(--font-heading) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 14px;
    transition: color 0.3s;
    position: relative;
}

.navbar.scrolled .nav-links a { color: var(--text-dark); }

.nav-links a:hover { color: var(--accent-color) !important; }

/* Gold underline on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
}

.nav-phone:hover { color: var(--accent-color) !important; }
.nav-phone::after { display: none !important; }

/* Mobile menu toggle */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

#menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: background 0.3s;
}

.navbar.scrolled #menu-toggle span { background: var(--text-dark); }

#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 999;
    padding: 100px 40px 40px;
}

#mobile-menu a {
    display: block;
    color: var(--text-dark);
    font-family: var(--font-heading) !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

/* ── Fixed Sidebar CTA ───────────────────────────────────── */
.sidebar-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: var(--primary-color);
    color: #fff;
    padding: 22px 14px;
    font-family: var(--font-heading) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-cta:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

.sidebar-cta .plus {
    writing-mode: horizontal-tb;
    font-size: 18px;
    font-weight: 300;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.hero-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    z-index: 1;
}

.hero-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    z-index: 1;
}

.hero-address-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
    padding: 0 5% 60px;
    animation: heroFadeIn 1s ease 0.3s both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-divider {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    animation: dividerExpand 1.2s ease 0.6s both;
}

@keyframes dividerExpand {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-divider-line {
    height: 1px;
    background: rgba(255,255,255,0.4);
    flex: 0 0 2%;
}

.hero-divider-line--long { flex: 1; }

.hero-divider-label {
    font-family: var(--font-heading) !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0 15px;
    white-space: nowrap;
}

.hero-price {
    font-family: var(--font-body) !important;
    font-size: 52px;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1;
}

.hero-address {
    font-family: var(--font-heading) !important;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.hero-subtitle {
    font-family: var(--font-body) !important;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin-bottom: 0;
}

/* ── Overview Section ────────────────────────────────────── */
.overview {
    padding: 0;
    background: var(--bg-white);
    overflow: hidden;
}

.overview-stats {
    padding: 60px 8% 40px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: baseline;
    flex-wrap: wrap;
}

.prop-detail {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-right: 30px;
}

.prop-detail .count {
    font-family: var(--font-body) !important;
    font-size: 60px;
    font-weight: 300;
    line-height: 1;
}

.prop-detail .field-suffix {
    font-family: var(--font-heading) !important;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    opacity: 0.6;
}

.overview-content {
    padding: 0 0 0 8%;
    position: relative;
}

.overview-content-inner {
    display: flex;
    gap: 0;
}

.overview-text {
    flex: 0 0 55%;
    max-width: 55%;
    padding-right: 40px;
    padding-top: 20px;
}

#desc-text {
    font-family: var(--font-body) !important;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-dark);
    max-height: 220px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#desc-text.expanded { max-height: 4000px; }

#read-more-btn {
    display: inline-block;
    margin-top: 25px;
    font-family: var(--font-heading) !important;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid var(--text-dark);
    padding: 0 0 5px 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s, border-color 0.3s;
}

#read-more-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }

/* MLS specs */
.mls-specs {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.mls-specs h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.spec-label { color: var(--text-muted); }
.spec-value { font-weight: 600; }

/* ── Image Collage ───────────────────────────────────────── */
.overview-images {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    overflow: hidden;
}

.image-collage {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.collage-item {
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collage-item:hover img { transform: scale(1.05); }

.collage-item--1 { width: 65%; height: 350px; }
.collage-item--2 { width: calc(35% - 10px); height: 250px; }
.collage-item--3 { width: 65%; height: 400px; }
.collage-item--4 { width: calc(35% - 10px); height: 300px; margin-top: -100px; }

.collage-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    padding: 30px 15px 12px;
    color: #fff;
    font-family: var(--font-heading) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 0 0 12px 12px;
}

.collage-item:hover .collage-cta { opacity: 1; }

.view-all-link {
    display: block;
    margin-top: 15px;
    font-family: var(--font-heading) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    text-align: right;
    padding-right: 5%;
    transition: color 0.3s;
}

.view-all-link:hover { color: var(--primary-color); }
.view-all-link i { margin-left: 8px; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-dark);
    color: #fff;
    display: none;
}

.gallery-section.active { display: block; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 10px;
    position: relative;
}

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

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    border-radius: 10px;
}

.gallery-item:hover::after { background: rgba(0,0,0,0.1); }

/* ── Features ────────────────────────────────────────────── */
.features {
    padding: 60px 0;
    background: var(--bg-light);
}

.features .section-title { text-align: left; }

.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenity-item {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-dark);
    padding: 5px 0;
}

.amenity-item::after {
    content: '  •  ';
    color: var(--text-light);
    padding: 0 8px;
}

.amenity-item:last-child::after { display: none; }

/* ── Explore (tabbed) ────────────────────────────────────── */
.explore {
    padding: 80px 0;
    background: var(--bg-white);
}

.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.explore-header .section-title { margin-bottom: 0; }

.explore-tabs {
    display: flex;
    gap: 0;
    align-items: center;
}

.explore-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 0;
    font-family: var(--font-heading) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
}

.explore-tab::after {
    content: '×';
    padding: 0 15px;
    color: #ccc;
    font-weight: 300;
}

.explore-tab:last-child::after { display: none; }
.explore-tab:hover { color: var(--primary-color); }
.explore-tab.active { color: var(--text-dark); font-weight: 700; }

.explore-panel { display: none; }
.explore-panel.active { display: block; }

.explore-embed {
    aspect-ratio: 16/9;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.explore-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.fp-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.fp-tab {
    background: transparent;
    border: 2px solid #ddd;
    color: var(--text-dark);
    padding: 10px 24px;
    font-family: var(--font-heading) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 30px;
}

.fp-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.agent-card { padding-right: 20px; }

.agent-image {
    width: 180px;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 16px;
}

.agent-card .agent-name {
    font-family: var(--font-heading) !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.agent-card .agent-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.agent-card .agent-company { font-size: 14px; margin-bottom: 5px; }
.agent-card .agent-phone,
.agent-card .agent-email,
.agent-card .agent-license { font-size: 14px; margin-bottom: 3px; color: var(--text-dark); }

.contact-form-wrapper .section-title { letter-spacing: 0.2em; }

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); font-size: 14px; }

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--primary-color); }

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.btn-submit {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    font-family: var(--font-heading) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    border-radius: 30px;
}

.btn-submit:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

/* Ghost button variant */
.btn-ghost {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 30px;
    padding: 14px 40px;
    font-family: var(--font-heading) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--text-dark);
}

/* ── Location / Map ──────────────────────────────────────── */
.location {
    padding: 40px 0 0;
    background: var(--bg-white);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 0 5%;
}

.location-header h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.location-address {
    text-align: right;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.location-address .street { font-weight: 400; margin-bottom: 0; }
.location-address .city { font-weight: 300; opacity: 0.6; }

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-card {
    position: absolute;
    bottom: 30px;
    left: 40px;
    background: var(--bg-white);
    padding: 25px;
    max-width: 280px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 16px;
}

.map-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.map-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; }
.map-card .btn-submit { display: block; text-align: center; padding: 12px; width: 100%; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: #aaa;
    padding: 60px 0 40px;
    text-align: center;
}

.site-footer a { color: var(--accent-color); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-brand { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.footer-powered { font-size: 12px; margin-bottom: 15px; }

.footer-legal {
    font-size: 11px;
    color: #777;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

.footer-disclaimer { font-size: 10px; color: #999; line-height: 1.6; margin-bottom: 20px; }

.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.footer-logos img { height: 40px; width: 40px; object-fit: contain; }

/* ── Password Protected Gallery ──────────────────────────── */
.password-section {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-light);
}

.password-section .form-group { max-width: 400px; margin: 0 auto 20px; }
.password-section .form-group label { display: block; }
.password-section .btn-submit { max-width: 400px; }
