/* ==========================================================================
   Signature — Modern Gallery (Apple-style)
   ========================================================================== */

/* Reset & base */
.signature-template *,
.signature-template *::before,
.signature-template *::after { box-sizing: border-box; }

.signature-template {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #1d1d1f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.signature-template img { max-width: 100%; height: auto; display: block; }
.signature-template a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
.signature-template button { font-family: inherit; cursor: pointer; }

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

/* ==========================================================================
   Typography utilities
   ========================================================================== */
.sig-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme_color);
    margin: 0 0 16px;
}
.sig-eyebrow-light { color: rgba(255,255,255,0.7); }

.sig-section-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: #1d1d1f;
    margin: 0 0 48px;
}
.sig-title-light { color: #fff; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.sig-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.sig-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
.sig-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.sig-nav-brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    transition: color 0.3s ease;
}
.sig-nav.is-scrolled .sig-nav-brand { color: #1d1d1f; }

.sig-nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.sig-nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}
.sig-nav-links a:hover { color: #fff; }
.sig-nav.is-scrolled .sig-nav-links a { color: #1d1d1f; opacity: 0.85; }
.sig-nav.is-scrolled .sig-nav-links a:hover { opacity: 1; color: var(--theme_color); }

.sig-nav-cta {
    background: var(--theme_color);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.sig-nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sig-nav.is-scrolled .sig-nav-cta { color: #fff !important; }

.sig-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.sig-nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    margin: 0 auto;
}
.sig-nav.is-scrolled .sig-nav-toggle span { background: #1d1d1f; }
.sig-nav.is-open .sig-nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sig-nav.is-open .sig-nav-toggle span:nth-child(2) { opacity: 0; }
.sig-nav.is-open .sig-nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.sig-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
}
.sig-hero .sig-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    will-change: transform;
}
.sig-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.55) 100%);
}
.sig-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 120px;
}
.sig-hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 20px;
    opacity: 0.85;
}
.sig-hero-title {
    font-size: clamp(48px, 8vw, 104px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.0;
    margin: 0 0 24px;
    max-width: 900px;
}
.sig-hero-price {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
    opacity: 0.95;
}
.sig-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.sig-hero-scroll:hover { opacity: 1; transform: translateX(-50%) translateY(2px); }
.sig-hero-scroll-dot {
    animation: sigScrollDot 1.6s ease-in-out infinite;
}
@keyframes sigScrollDot {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Stats bar — typographic, no boxes
   ========================================================================== */
.sig-stats {
    padding: 80px 0;
    background: #fff;
    border-bottom: 1px solid #e8e8ed;
}
.sig-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    text-align: center;
}
.sig-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
    position: relative;
}
.sig-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: #e8e8ed;
}
.sig-stat-num {
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    color: #1d1d1f;
}
.sig-stat-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #86868b;
}

/* ==========================================================================
   Generic section
   ========================================================================== */
.sig-section {
    padding: 120px 0;
    background: #fff;
}
.sig-section-tinted { background: #f5f5f7; }
.sig-section-dark { background: #1d1d1f; color: #fff; }

/* ==========================================================================
   About / description
   ========================================================================== */
.sig-about-wrap {
    position: relative;
    max-width: 760px;
    margin: 0 0 64px;
}
.sig-about-text {
    font-size: 21px;
    line-height: 1.55;
    color: #1d1d1f;
    font-weight: 400;
}
.sig-about-text p { margin: 0 0 24px; }
.sig-about-text p:last-child { margin: 0; }
.sig-about-wrap.is-clamped .sig-about-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sig-about-toggle {
    margin-top: 20px;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--theme_color);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}
.sig-about-toggle[hidden] { display: none; }
.sig-about-toggle:hover { opacity: 0.7; }
.sig-about-toggle::after {
    content: '↓';
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 14px;
}
.sig-about-wrap:not(.is-clamped) .sig-about-toggle::after { transform: rotate(180deg); }

.sig-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border-top: 1px solid #e8e8ed;
    padding-top: 32px;
}
.sig-spec {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sig-spec span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #86868b;
    text-transform: uppercase;
}
.sig-spec strong {
    font-size: 17px;
    font-weight: 500;
    color: #1d1d1f;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.sig-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sig-gallery-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8e8ed;
    border-radius: 12px;
    display: block;
    cursor: zoom-in;
}
.sig-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 16 / 12;
}
.sig-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sig-gallery-item:hover img { transform: scale(1.04); }

.sig-gallery-more {
    text-align: center;
    margin-top: 48px;
}

/* Locked gallery */
.sig-gallery-locked { text-align: center; max-width: 520px; }
.sig-locked-copy { font-size: 17px; color: #86868b; margin: 0 0 32px; }
.sig-locked-form {
    display: flex;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}
.sig-locked-form input {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    outline: none;
    transition: border-color 0.2s ease;
}
.sig-locked-form input:focus { border-color: var(--theme_color); }
.sig-locked-error { color: #d70015; margin-top: 16px; font-size: 14px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.sig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    line-height: 1;
}
.sig-btn-primary,
a.sig-btn-primary,
.signature-template a.sig-btn-primary {
    background: var(--theme_color);
    color: #fff !important;
}
.sig-btn-primary:hover,
a.sig-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff !important; }
.sig-btn-ghost {
    background: transparent;
    color: #1d1d1f;
    border: 1px solid #1d1d1f;
}
.sig-btn-ghost:hover { background: #1d1d1f; color: #fff; }
.sig-btn-block { display: flex; width: 100%; height: 52px; font-size: 15px; }

/* ==========================================================================
   Media frame (video / matterport / zillow)
   ========================================================================== */
.sig-media-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.sig-media-frame iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ==========================================================================
   Floor plans
   ========================================================================== */
.sig-fp-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.sig-fp-tab {
    background: transparent;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sig-fp-tab:hover { border-color: #1d1d1f; }
.sig-fp-tab.is-active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }

.sig-fp-panel { display: none; text-align: center; }
.sig-fp-panel.is-active { display: block; }
.sig-fp-panel a { display: inline-block; cursor: zoom-in; }
.sig-fp-panel img {
    max-width: 100%;
    max-height: 720px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
}
.sig-fp-name {
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86868b;
}

/* ==========================================================================
   Location
   ========================================================================== */
.sig-location-sub {
    font-size: 21px;
    font-weight: 400;
    color: #86868b;
    margin: -32px 0 48px;
}
.sig-map {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #e8e8ed;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.sig-location-cta {
    margin-top: 40px;
    text-align: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.sig-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}
.sig-agent-card {
    text-align: center;
    background: #f5f5f7;
    padding: 48px 32px;
    border-radius: 24px;
}
.sig-agent-card .sig-agent-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.sig-agent-card .sig-brokerage-logo {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 28px;
    display: block;
}
.sig-agent-name {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: #1d1d1f;
}
.sig-agent-brokerage {
    font-size: 14px;
    color: #86868b;
    margin: 0 0 24px;
}
.sig-agent-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.sig-agent-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
}
.sig-agent-link:hover { color: var(--theme_color); }

.sig-form-card { padding-top: 8px; }
.sig-form-title { margin-bottom: 32px; font-size: clamp(28px, 3vw, 40px); }
.sig-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sig-form-group { margin-bottom: 16px; }
.sig-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 8px;
}
.sig-form-group input,
.sig-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sig-form-group input:focus,
.sig-form-group textarea:focus {
    border-color: var(--theme_color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}
.sig-form-group textarea { resize: vertical; min-height: 120px; }

.sig-thank-you {
    background: #f5f5f7;
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;
}
.sig-thank-you h3 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--theme_color);
}
.sig-thank-you p { font-size: 17px; color: #86868b; margin: 0; }

/* ==========================================================================
   Floating side card — sticky agent CTA while scrolling
   ========================================================================== */
.sig-float-card {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    width: 260px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    z-index: 90;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.sig-float-card.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.sig-float-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.sig-float-body { margin-bottom: 14px; }
.sig-float-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme_color);
    margin: 0 0 4px;
}
.sig-float-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin: 0 0 2px;
    line-height: 1.2;
}
.sig-float-brokerage {
    font-size: 12px;
    color: #86868b;
    margin: 0;
    line-height: 1.3;
}
.sig-float-btn {
    display: flex;
    width: 100%;
    height: 40px;
    font-size: 13px;
    margin-bottom: 10px;
}
.sig-float-phone {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    display: block;
}
.sig-float-phone:hover { color: var(--theme_color); }

/* ==========================================================================
   Exit-intent modal
   ========================================================================== */
.sig-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.sig-exit-modal.is-open {
    display: flex;
    animation: sigExitFade 0.3s ease;
}
@keyframes sigExitFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.sig-exit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.sig-exit-card {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: sigExitPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes sigExitPop {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.sig-exit-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: 0;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #86868b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.sig-exit-close:hover { background: #f5f5f7; color: #1d1d1f; }
.sig-exit-logo {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
}
.sig-exit-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1d1d1f;
    margin: 0 0 12px;
}
.sig-exit-sub {
    font-size: 15px;
    color: #86868b;
    line-height: 1.5;
    margin: 0 0 28px;
}
.sig-exit-form { display: flex; flex-direction: column; gap: 12px; }
.sig-exit-input {
    height: 48px;
    padding: 0 18px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sig-exit-input:focus {
    border-color: var(--theme_color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}
.sig-exit-thanks {
    background: #f5f5f7;
    padding: 32px 24px;
    border-radius: 16px;
}
.sig-exit-thanks h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--theme_color);
    margin: 0 0 8px;
}
.sig-exit-thanks p {
    font-size: 15px;
    color: #86868b;
    margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sig-footer {
    background: #f5f5f7;
    padding: 48px 0 32px;
    color: #86868b;
    font-size: 12px;
    line-height: 1.5;
}
.sig-footer-disclaimer {
    font-size: 11px;
    margin-bottom: 32px;
    color: #86868b;
}
.sig-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d2d2d7;
}
.sig-footer-copy { margin: 0 0 4px; color: #1d1d1f; font-weight: 500; }
.sig-footer-meta { margin: 0; }
.sig-footer-meta a { color: #1d1d1f; font-weight: 500; }
.sig-footer-meta a:hover { color: var(--theme_color); }
.sig-footer-logos { display: flex; gap: 16px; align-items: center; }
.sig-footer-logos img { height: 32px; width: auto; opacity: 0.6; }
.sig-footer-mls {
    margin-top: 24px;
    font-size: 11px;
    color: #86868b;
}
