/* ============================================
   Bar Harbour Motel — Styles
   Palette: Charcoal (#2C2C2C) + Coral (#D4614A)
   Fonts: Playfair Display + Lato
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal: #2C2C2C;
    --charcoal-deep: #1A1A1A;
    --charcoal-light: #3D3D3D;
    --coral: #D4614A;
    --coral-light: #E8836F;
    --coral-muted: #C45A45;
    --cream: #F7F4F1;
    --cream-dark: #EDE8E3;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #6B6B6B;
    --text-light: #9A9A9A;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(44,44,44,0.06);
    --shadow-md: 0 4px 20px rgba(44,44,44,0.08);
    --shadow-lg: 0 8px 40px rgba(44,44,44,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--charcoal);
}

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

a {
    color: var(--coral);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--coral-muted);
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 244, 241, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44,44,44,0.06);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--charcoal);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--coral);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

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

.nav-links a {
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--charcoal);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--charcoal-light);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
    display: block;
}

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

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream);
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    padding-right: 20px;
}

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

.hero-headline {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid rgba(44,44,44,0.1);
    padding: 8px 16px;
    border-radius: 100px;
}

.hero-right {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-muted);
    border-color: var(--coral-muted);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 97, 74, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   Rooms
   ============================================ */
.rooms {
    padding: 100px 0;
    background: var(--white);
}

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

.room-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.room-img {
    overflow: hidden;
    aspect-ratio: 520/360;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.room-info {
    padding: 28px;
}

.room-info h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.room-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.room-features li {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--white);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(44,44,44,0.08);
}

.room-note {
    font-size: 0.85rem !important;
    color: var(--coral) !important;
    font-style: italic;
    margin-bottom: 0 !important;
}

.rooms-cta {
    text-align: center;
    padding: 40px;
    background: var(--cream);
    border-radius: var(--radius-lg);
}

.rooms-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.amenities .section-eyebrow {
    color: var(--coral-light);
}

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

.amenities .section-desc {
    color: rgba(255,255,255,0.6);
}

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

.amenity-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.amenity-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212, 97, 74, 0.3);
    transform: translateY(-4px);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 97, 74, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--coral-light);
}

.amenity-card h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 10px;
}

.amenity-card p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

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

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

.location-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-block h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--coral);
    margin-bottom: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.info-block p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.info-block a {
    color: var(--charcoal);
    font-weight: 600;
    font-size: 1.1rem;
}

.info-block a:hover {
    color: var(--coral);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.testimonial-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    color: var(--coral);
    opacity: 0.3;
    margin-bottom: 24px;
}

.testimonial blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-style: italic;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonial .attribution {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--cream-dark);
}

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

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-desc {
    text-align: left;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
}

.contact-value {
    font-size: 1.05rem;
    color: var(--charcoal);
    line-height: 1.7;
}

.contact-value a {
    color: var(--charcoal);
    font-weight: 600;
}

.contact-value a:hover {
    color: var(--coral);
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 28px;
    color: var(--charcoal);
}

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

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 1.5px solid rgba(44,44,44,0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(212, 97, 74, 0.1);
}

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

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 16px;
}

.form-note a {
    color: var(--coral);
    font-weight: 600;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--coral);
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
    line-height: 1.7;
}

.form-success a {
    color: var(--coral);
    font-weight: 600;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-brand .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(247, 244, 241, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(44,44,44,0.06);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-left {
        padding-right: 0;
    }
    
    .hero-right {
        order: -1;
    }
    
    .hero-image-wrap {
        border-radius: var(--radius-md);
    }
    
    .hero-accent {
        display: none;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
}

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