/* ========================================
   Ross Residence Hall — Styles
   Classic & Elegant | Terracotta + Sand
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --terracotta: #B85C38;
    --terracotta-dark: #9A4B2E;
    --terracotta-light: #D4845C;
    --sand: #F5E6D3;
    --sand-light: #FBF5ED;
    --sand-dark: #E8D5C0;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F38;
    --cream: #FDF8F3;
    --white: #FFFFFF;
    --text-dark: #2C2420;
    --text-medium: #5C4F46;
    --text-light: #8A7B72;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --nav-height: 72px;
    --section-padding: 100px;
    --container-max: 1200px;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
}

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

.section-title-light {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--sand);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 520px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border: 2px solid var(--terracotta);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 92, 56, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 92, 56, 0.1);
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(44, 36, 32, 0.08);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    color: var(--terracotta);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-medium);
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

.nav-cta {
    font-weight: 500 !important;
    color: var(--terracotta) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    display: block;
}

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

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

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    padding-top: var(--nav-height);
}

.hero-inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 24px;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
}

.hero-content {
    padding-right: 48px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.0;
    margin-bottom: 24px;
    font-family: var(--font-serif);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 440px;
}

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

.hero-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

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

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--terracotta);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 24px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* --- Rooms --- */
.rooms {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.room-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(44, 36, 32, 0.06);
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(44, 36, 32, 0.1);
}

.room-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.room-card:hover .room-card-image img {
    transform: scale(1.03);
}

.room-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--terracotta);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.room-card-content {
    padding: 28px;
}

.room-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.room-card-content p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 20px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-features li {
    font-size: 0.78rem;
    color: var(--text-light);
    background: var(--sand-light);
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid var(--sand-dark);
}

/* --- Amenities --- */
.amenities {
    padding: var(--section-padding) 0;
    background: var(--charcoal);
}

.amenities-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.amenities-content {
    padding-right: 16px;
}

.amenities-text {
    font-size: 1.05rem;
    color: rgba(245, 230, 211, 0.7);
    line-height: 1.75;
    margin-bottom: 40px;
}

.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.amenity-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid rgba(245, 230, 211, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-item h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sand);
    margin-bottom: 4px;
}

.amenity-item p {
    font-size: 0.85rem;
    color: rgba(245, 230, 211, 0.55);
    line-height: 1.5;
}

.amenities-image {
    height: 100%;
    min-height: 500px;
}

.amenities-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* --- About --- */
.about {
    padding: var(--section-padding) 0;
    background: var(--sand-light);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-content {
    padding-left: 16px;
}

.about-content .section-subtitle {
    display: none;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--sand-dark);
}

.stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    background: var(--sand-dark);
    align-self: stretch;
}

/* --- Location --- */
.location {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.location-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-info {
    padding-right: 24px;
}

.location-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin-bottom: 36px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.location-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand-light);
    border-radius: 50%;
}

.location-detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.location-detail span,
.location-detail a {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.location-detail a:hover {
    color: var(--terracotta);
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}

/* --- Contact --- */
.contact {
    padding: var(--section-padding) 0;
    background: var(--terracotta);
}

.contact-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

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

.contact-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 48px;
}

.contact-methods {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
}

.contact-method-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.contact-method-value {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 56px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sand);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--terracotta-light);
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(245, 230, 211, 0.5);
    line-height: 1.65;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(245, 230, 211, 0.6);
    transition: color 0.2s ease;
}

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

.footer-contact a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--terracotta-light);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(245, 230, 211, 0.3);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--text-dark);
    padding: 8px;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-dark);
    padding: 12px 0;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: var(--terracotta);
}

.mobile-cta {
    color: var(--terracotta) !important;
    font-weight: 600;
}

.mobile-contact {
    margin-top: 40px;
    text-align: center;
}

.mobile-contact p {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.mobile-contact a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--terracotta);
    font-weight: 600;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 36px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        min-height: 400px;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-inner,
    .about-inner,
    .location-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .amenities-content {
        padding-right: 0;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .location-info {
        padding-right: 0;
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --nav-height: 64px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
        max-width: 320px;
        justify-content: flex-start;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .location-map {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}
