/* ==========================================================================
   ASCEND RE - SHARED STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-cream: #FAF7F2;
    --bg-warm: #F5F0E8;
    --bg-accent: #EDE6DA;
    --text-primary: #2A2A28;
    --text-secondary: #5C5A56;
    --text-muted: #8A8780;
    --accent-terracotta: #B86B4C;
    --accent-terracotta-light: #D4907A;
    --accent-sage: #7A9E8E;
    --accent-sage-light: #A8C5B8;
    --white: #FFFFFF;
    --border-soft: rgba(42, 42, 40, 0.08);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1200px;
    --radius-soft: 12px;
    --radius-button: 8px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    animation: slideDown 0.6s ease-out;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--accent-terracotta);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-terracotta);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-link.active {
    color: var(--accent-terracotta);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-button);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--accent-terracotta);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Page Hero (Inner Pages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding: calc(var(--section-padding) + 2rem) 0 3rem;
    background: radial-gradient(ellipse at 20% 0%, rgba(184, 107, 76, 0.08) 0%, transparent 50%), var(--bg-cream);
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--accent-terracotta);
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background: var(--bg-warm);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-terracotta);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out both;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-terracotta);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #A35E42;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 107, 76, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-button);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-warm);
    border-color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    padding: var(--section-padding) 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(184, 107, 76, 0.1) 0%, transparent 50%), var(--text-primary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section .section-label {
    color: var(--accent-terracotta-light);
}

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

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: 4rem 0 2rem;
    background: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.footer-logo .logo-img {
    height: 32px;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.footer-logo .logo-text span {
    color: var(--accent-terracotta-light);
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Legal Pages
   -------------------------------------------------------------------------- */
.legal-section {
    padding: 3rem 0 var(--section-padding);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-soft);
    padding: 3rem;
    border: 1px solid var(--border-soft);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--accent-terracotta);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Booking Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 40, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-soft);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-cream);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: var(--accent-terracotta);
    color: var(--white);
}

.modal-body {
    padding: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-body iframe {
    width: 100%;
    height: 723px;
    border: none;
    border-radius: 3px;
    display: block;
}

/* --------------------------------------------------------------------------
   Responsive - Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 968px) {
    .nav {
        padding: 1rem 0;
    }

    .nav-inner {
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-cream);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-soft);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .nav-cta svg {
        width: 14px;
        height: 14px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 32px;
    }

    .page-hero {
        padding-top: calc(var(--section-padding) + 3rem);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .legal-content {
        padding: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .nav-cta {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .nav-cta svg {
        width: 12px;
        height: 12px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 28px;
    }

    .page-hero {
        padding-top: calc(var(--section-padding) + 2.5rem);
    }

    .page-hero h1 {
        font-size: 2rem;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

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

