/* --- Master Core Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #eae5db; /* Main Sand Color */
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* --- Navigation Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: transparent;
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.6;
}

/* --- Hero Section Styling --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('hero.webp');
    background-size: cover;
    background-position: center 60%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Keeps content box structural left side anchoring */
    padding-left: 6%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 70%, rgba(234,229,219,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* Aligns all children elements symmetrically down a shared center line */
    text-align: center;
    margin-left: 34px;    /* Global anchor layout offset offset */
    transform: translateY(-120px);
}

/* Centers the emblem and word logo text relative to each other */
.hero-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-bottom: 25px;
}

.hero-emblem-center {
    width: 320px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.hero-logo-text {
    width: 650px;
    height: auto;
    object-fit: contain;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 35px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    background: transparent;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* --- Layout Utility Classes --- */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.internal-page-padding {
    padding-top: 140px; 
}

.max-width-center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Narrative Section Styling --- */
.narrative-section {
    padding: 100px 0;
}

.narrative-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7a756c;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 25px;
    font-weight: 300;
}

.text-link {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 10px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 4px;
}

.story-photo-placeholder {
    width: 100%;
    height: 550px;
    background-color: #d0c9bc; 
}

/* --- Gallery & Journal Architecture --- */
.gallery-section {
    padding: 80px 0 140px 0;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px; /* Base structural track height unit */
    gap: 24px;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Outer wrapper subtle scale & elevation change */
.gallery-item:hover {
    transform: scale(1.02); 
    box-shadow: 0 20px 38px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Inner picture frame properties with matching transition curve */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tells the inside photo to expand slightly within the frame when hovered */
.gallery-item:hover img {
    transform: scale(1.06);
}

/* Neutral Placeholder Colors */
.bg-dark-neutral  { background-color: #bab3a6; }
.bg-mid-neutral   { background-color: #c4bdae; }
.bg-light-neutral { background-color: #cfc8b9; }

/* Masonry Varied Sizing Controls */
.gallery-item.tall { grid-row: span 2; }
.gallery-item.medium { grid-row: span 1; }
.gallery-item.short { grid-row: span 1; }


/* --- CUSTOM OVERRIDES --- */

/* Japan Castle Override - Pushes framing view up to capture the peaks */
.japan-castle img {
    object-position: center top;
}

/* Specific override for the bus */
.nz-bus img {
    object-position: center 20%; 
}

/* Bali Sunset Override - Aligns focal center & matches structural mechanics */
.bali-sunset img {
    object-position: center center;
}

/* Scales the inside image on hover perfectly matching custom frame logic */
.bali-sunset:hover img {
    transform: scale(1.08);
}


/* --- Universal Footer Architecture --- */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 90px 6% 40px 6%;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    border-bottom: 1px solid #333333;
    padding-bottom: 60px;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-text {
    color: #999999;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #555555;
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 968px) {
    .main-header {
        padding: 20px 6%;
    }
    .hero {
        justify-content: center; /* Sits block completely centered on screen viewports */
        padding-left: 0;
    }
    .hero-content {
        margin-left: 0;
    }
    .hero-emblem-center {
        width: 220px; /* Adapts size for tablet */
    }
    .hero-logo-text {
        width: 85vw; /* Fluid scaling width profiles */
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .narrative-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .story-photo-placeholder {
        height: 380px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr; /* 2 Column layout on tablets */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .main-header {
        padding: 15px 6%;
    }
    .nav-links {
        gap: 15px; /* Tighter navigation layout on small phones */
    }
    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
    .hero-emblem-center {
        width: 160px; /* Adapts beautifully for small mobile phones */
    }
    .hero-logo-text {
        width: 90vw;
    }
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 25px;
    }
    .cta-button {
        padding: 12px 28px;
        font-size: 0.75rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Clean single image viewport pipeline on phone screens */
        grid-auto-rows: auto;      /* Drops restrictive heights to let images breath */
    }
    .gallery-item.tall, 
    .gallery-item.medium, 
    .gallery-item.short { 
        grid-row: auto;           /* Resets masonry constraints for true phone fluidity */
        height: 320px;            /* Symmetrical portrait presentation scale */
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* --- Horizontal Updates Ticker --- */
.updates-ticker-section {
    padding: 40px 0;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    margin: 40px 0 60px 0;
}

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

.ticker-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a39e93;
}

/* This is the magic wrapper that enables horizontal scrolling */
/* Update this exact block in your style.css */
.updates-scroll-container {
    display: flex;
    flex-direction: row;       /* Explicitly forces cards side-by-side */
    flex-wrap: nowrap;         /* Stops cards from breaking down to new rows */
    gap: 20px;
    overflow-x: auto;          /* Turns on horizontal scrolling */
    padding-bottom: 15px;
    width: 100%;               /* Ensures it uses the full content window width */
    
    /* Smooth native momentum scrolling on mobile */
    -webkit-overflow-scrolling: touch; 
    
    /* Hide ugly scrollbars on clean browsers */
    scrollbar-width: thin;
    scrollbar-color: #a39e93 transparent;
}

/* Individual Update Card Styles */
.update-card {
    flex: 0 0 300px; /* Forces cards to stay exactly 300px wide without shrinking */
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 24px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.update-card:hover {
    background: #ffffff;
    border-color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.update-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a39e93;
    display: block;
    margin-bottom: 8px;
}

.update-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 10px;
}

.update-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    color: #555555;
}

/* Optional "NEW" dot indicator for the latest post */
.update-card.new-tag::after {
    content: 'NEW';
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    background: #1a1a1a;
    color: #eae5db;
    padding: 2px 6px;
    letter-spacing: 0.05em;
}