/*
Theme Name: Mastos Athens
Theme URI: https://mastos.com
Author: Mastos Athens
Author URI: https://mastos.com
Description: Premium heritage luxury stays theme for Mastos Athens — five curated residences in Plaka & Kolonaki. Features direct booking, multilingual support, property showcases, dining guides, and experience sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mastos
Tags: one-page, custom-logo, custom-menu, featured-images, translation-ready

Mastos Athens — Where History Becomes Home
*/

/* ===== RESET & VARIABLES ===== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
    --bg: #FAF8F4;
    --ink: #1A1714;
    --ink-soft: #6B6560;
    --accent: #8B7355;
    --accent-lt: #C4AD8F;
    --gold: #BFA67A;
    --cream: #F0ECE4;
    --white: #FFFFFF;
    --dark: #1A1714;
    --dark2: #2D2924;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lexend', sans-serif;
    --ease: 0.4s cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== PRELOADER ===== */
.mastos-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 16px;
    transition: opacity .8s, visibility .8s;
}
.mastos-preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.mastos-preloader img { width: 80px; opacity: 0; animation: mastos-fu 1s .3s forwards; filter: drop-shadow(0 0 20px rgba(191,166,122,.3)); }
.mastos-preloader-title {
    font-family: var(--font-display); font-size: 2rem; font-weight: 300;
    letter-spacing: .3em; color: var(--gold); text-transform: uppercase;
    opacity: 0; animation: mastos-fu 1s .6s forwards;
}
.mastos-preloader-sub {
    font-size: .6rem; letter-spacing: .25em; color: rgba(191,166,122,.5);
    text-transform: uppercase; opacity: 0; animation: mastos-fu 1s .9s forwards;
}
@keyframes mastos-fu {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== NAVIGATION ===== */
.mastos-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 48px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all .4s;
}
.mastos-nav.scrolled {
    background: rgba(26,23,20,.94);
    backdrop-filter: blur(20px);
    padding: 14px 48px;
}
.mastos-nav-brand {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.mastos-nav-brand img {
    height: 36px; filter: brightness(0) invert(1); opacity: .85; transition: var(--ease);
}
.mastos-nav-brand:hover img { opacity: 1; }
.mastos-nav-brand span {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 300;
    letter-spacing: .2em; color: var(--white); text-transform: uppercase;
}

/* WP Menu Integration */
.mastos-nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.mastos-nav-menu li a {
    font-size: .66rem; font-weight: 400; letter-spacing: .14em;
    color: rgba(255,255,255,.7); text-decoration: none; text-transform: uppercase;
    transition: color var(--ease); position: relative;
}
.mastos-nav-menu li a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--gold); transition: width var(--ease);
}
.mastos-nav-menu li a:hover { color: var(--white); }
.mastos-nav-menu li a:hover::after { width: 100%; }

.mastos-lang-switcher {
    display: flex; gap: 8px; margin-left: 16px; padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,.15);
}
.mastos-lang-switcher a {
    font-size: .58rem; color: rgba(255,255,255,.4); text-transform: uppercase;
    text-decoration: none; padding: 3px; transition: color var(--ease);
}
.mastos-lang-switcher a:hover,
.mastos-lang-switcher a.current { color: var(--gold); }

.mastos-nav-toggle {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.mastos-nav-toggle span {
    display: block; width: 22px; height: 1px; background: white; margin: 5px 0;
}

/* ===== HERO ===== */
.mastos-hero {
    position: relative; height: 100vh; min-height: 680px;
    display: flex; align-items: flex-end; overflow: hidden;
}
.mastos-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
}
.mastos-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,23,20,.88) 0%, rgba(26,23,20,.35) 40%, rgba(26,23,20,.2) 70%);
}
.mastos-hero-content {
    position: relative; z-index: 2; padding: 0 48px 72px; max-width: 820px;
    opacity: 0; animation: mastos-fu 1.2s 1.8s forwards;
}
.mastos-hero-eyebrow {
    font-size: .62rem; letter-spacing: .3em; color: var(--gold);
    text-transform: uppercase; margin-bottom: 18px;
}
.mastos-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    font-weight: 300; line-height: 1.08; color: var(--white); margin-bottom: 22px;
}
.mastos-hero h1 em { font-style: italic; color: var(--gold); }
.mastos-hero-subtitle {
    font-size: .86rem; font-weight: 300; line-height: 1.75;
    color: rgba(255,255,255,.6); max-width: 500px; margin-bottom: 32px;
}
.mastos-hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold); text-decoration: none;
    padding: 12px 0; border-bottom: 1px solid rgba(191,166,122,.4);
    transition: var(--ease);
}
.mastos-hero-cta:hover { gap: 16px; border-color: var(--gold); }

/* ===== SECTIONS ===== */
.mastos-section { padding: 100px 48px; }
.mastos-section-eyebrow {
    font-size: .6rem; letter-spacing: .3em; color: var(--accent);
    text-transform: uppercase; margin-bottom: 14px;
}
.mastos-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 300; line-height: 1.2; margin-bottom: 18px;
}
.mastos-section-title em { font-style: italic; color: var(--accent); }

/* ===== ABOUT ===== */
.mastos-about {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center; max-width: 1300px; margin: 0 auto;
}
.mastos-about p {
    font-size: .86rem; font-weight: 300; line-height: 1.85;
    color: var(--ink-soft); margin-bottom: 16px;
}
.mastos-about-visual {
    position: relative; height: 440px; background: var(--cream);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mastos-about-visual::before {
    content: ''; position: absolute; inset: 10px; border: 1px solid var(--accent-lt); z-index: 1;
}
.mastos-about-visual img { height: 60%; object-fit: contain; opacity: .7; filter: sepia(.15); }
.mastos-stats {
    display: flex; gap: 40px; margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--cream);
}
.mastos-stat h4 {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; color: var(--accent);
}
.mastos-stat span {
    font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}

/* ===== NEIGHBORHOOD SECTIONS ===== */
.mastos-neighborhood { padding: 100px 48px 50px; }
.mastos-neighborhood.dark { background: var(--dark); color: var(--white); }
.mastos-neighborhood.dark .mastos-section-eyebrow { color: var(--gold); }
.mastos-neighborhood.dark .mastos-section-title { color: var(--white); }
.mastos-neighborhood.light { background: var(--cream); }
.mastos-neighborhood-header { max-width: 680px; margin-bottom: 44px; }
.mastos-neighborhood-header p {
    font-size: .86rem; font-weight: 300; line-height: 1.8;
    color: var(--ink-soft); margin-top: 10px;
}
.mastos-neighborhood.dark .mastos-neighborhood-header p { color: rgba(255,255,255,.5); }

/* ===== PROPERTY CARDS ===== */
.mastos-properties-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px; margin-top: 36px;
}
.mastos-property-card {
    position: relative; overflow: hidden; cursor: pointer;
    transition: transform var(--ease); background: var(--dark2);
}
.mastos-neighborhood.light .mastos-property-card {
    background: var(--white); border: 1px solid var(--cream);
}
.mastos-property-card:hover { transform: translateY(-3px); }
.mastos-property-card-image { height: 260px; overflow: hidden; position: relative; }
.mastos-property-card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease;
}
.mastos-property-card:hover .mastos-property-card-image img { transform: scale(1.03); }
.mastos-property-card-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,23,20,.45) 0%, transparent 40%);
}
.mastos-property-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: var(--gold); padding: 4px 10px;
    font-size: .56rem; font-weight: 500; letter-spacing: .1em;
    text-transform: uppercase; color: var(--dark);
}
.mastos-property-rating {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    display: flex; align-items: center; gap: 4px;
    background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
    padding: 4px 9px; font-size: .7rem; color: white;
}
.mastos-property-rating svg { width: 10px; height: 10px; fill: var(--gold); }
.mastos-property-card-body { padding: 24px; }
.mastos-property-location {
    font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}
.mastos-neighborhood.light .mastos-property-location { color: var(--accent); }
.mastos-property-card h3 {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 400;
    color: var(--white); margin-bottom: 8px;
}
.mastos-neighborhood.light .mastos-property-card h3 { color: var(--ink); }
.mastos-property-card p {
    font-size: .78rem; font-weight: 300; line-height: 1.7;
    color: rgba(255,255,255,.5); margin-bottom: 14px;
}
.mastos-neighborhood.light .mastos-property-card p { color: var(--ink-soft); }
.mastos-property-meta {
    display: flex; gap: 16px; flex-wrap: wrap; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.mastos-neighborhood.light .mastos-property-meta { border-color: var(--cream); }
.mastos-property-meta span { font-size: .65rem; color: rgba(255,255,255,.33); }
.mastos-neighborhood.light .mastos-property-meta span { color: var(--ink-soft); }
.mastos-property-link {
    display: flex; align-items: center; gap: 6px; margin-top: 14px;
    font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold); text-decoration: none; transition: gap var(--ease);
}
.mastos-neighborhood.light .mastos-property-link { color: var(--accent); }
.mastos-property-link:hover { gap: 12px; }

/* ===== EXPERIENCE GRID ===== */
.mastos-experience-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px; max-width: 1100px; margin: 40px auto 0;
}
.mastos-experience-item {
    padding: 28px; background: var(--white); border: 1px solid var(--cream);
    transition: var(--ease);
}
.mastos-experience-item:hover {
    border-color: var(--accent-lt); transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,.04);
}
.mastos-experience-icon { font-size: 1.6rem; margin-bottom: 14px; }
.mastos-experience-item h4 {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; margin-bottom: 8px;
}
.mastos-experience-item p {
    font-size: .78rem; font-weight: 300; line-height: 1.7; color: var(--ink-soft);
}

/* ===== DINING ===== */
.mastos-dining { background: var(--cream); }
.mastos-dining-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 18px; max-width: 1100px; margin: 40px auto 0;
}
.mastos-dining-item {
    display: flex; gap: 16px; padding: 22px; background: var(--white);
    border: 1px solid transparent; transition: var(--ease);
}
.mastos-dining-item:hover { border-color: var(--accent-lt); }
.mastos-dining-num {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 300;
    color: var(--accent-lt); line-height: 1; min-width: 28px;
}
.mastos-dining-item h4 {
    font-family: var(--font-display); font-size: 1rem; font-weight: 500; margin-bottom: 2px;
}
.mastos-dining-type { font-size: .68rem; color: var(--accent); margin-bottom: 3px; }
.mastos-dining-detail { font-size: .68rem; color: var(--ink-soft); }

/* ===== CONTACT / BOOKING ===== */
.mastos-contact { background: var(--dark); color: var(--white); text-align: center; }
.mastos-contact .mastos-section-title { color: var(--white); }
.mastos-contact .mastos-section-eyebrow { color: var(--gold); }
.mastos-contact-subtitle {
    font-size: .84rem; font-weight: 300; line-height: 1.8;
    color: rgba(255,255,255,.42); max-width: 440px; margin: 0 auto;
}
.mastos-booking-form {
    max-width: 560px; margin: 40px auto 0;
    display: flex; flex-direction: column; gap: 16px;
}
.mastos-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mastos-booking-form input,
.mastos-booking-form select,
.mastos-booking-form textarea {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    color: white; font-family: var(--font-body);
    font-size: .8rem; font-weight: 300; outline: none;
    transition: border var(--ease);
}
.mastos-booking-form input::placeholder,
.mastos-booking-form textarea::placeholder { color: rgba(255,255,255,.25); }
.mastos-booking-form input:focus,
.mastos-booking-form select:focus,
.mastos-booking-form textarea:focus { border-color: var(--gold); }
.mastos-booking-form select { appearance: none; cursor: pointer; }
.mastos-booking-form select option { background: var(--dark); color: white; }
.mastos-booking-form textarea { min-height: 100px; resize: vertical; }
.mastos-btn-primary {
    padding: 15px 40px; background: var(--gold); border: none; cursor: pointer;
    font-family: var(--font-body); font-size: .68rem; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--dark);
    transition: var(--ease);
}
.mastos-btn-primary:hover { background: var(--accent-lt); }

/* ===== FOOTER ===== */
.mastos-footer {
    background: var(--dark); border-top: 1px solid rgba(255,255,255,.05);
    padding: 50px 48px 32px;
}
.mastos-footer-inner {
    max-width: 1300px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.mastos-footer-brand {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.mastos-footer-brand img { height: 28px; filter: brightness(0) invert(1); opacity: .6; }
.mastos-footer-brand span {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 300;
    letter-spacing: .2em; color: var(--gold); text-transform: uppercase;
}
.mastos-footer p {
    font-size: .75rem; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.3);
}
.mastos-footer h5 {
    font-size: .58rem; font-weight: 500; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px;
}
.mastos-footer a {
    display: block; font-size: .75rem; font-weight: 300;
    color: rgba(255,255,255,.3); text-decoration: none;
    margin-bottom: 7px; transition: color var(--ease);
}
.mastos-footer a:hover { color: var(--gold); }
.mastos-footer-bottom {
    max-width: 1300px; margin: 32px auto 0; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.05);
    display: flex; justify-content: space-between;
}
.mastos-footer-bottom span { font-size: .6rem; color: rgba(255,255,255,.18); }

/* ===== REVEAL ANIMATIONS ===== */
.mastos-reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s, transform .6s;
}
.mastos-reveal.visible { opacity: 1; transform: none; }

/* ===== MODAL ===== */
.mastos-modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.82); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; padding: 28px;
}
.mastos-modal-overlay.active { display: flex; }
.mastos-modal {
    background: var(--bg); max-width: 840px; width: 100%;
    max-height: 84vh; overflow-y: auto; position: relative;
}
.mastos-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    background: var(--dark); border: none; cursor: pointer;
    width: 38px; height: 38px; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 1rem;
    transition: background var(--ease);
}
.mastos-modal-close:hover { background: var(--accent); }
.mastos-modal-hero {
    height: 260px; position: relative; overflow: hidden;
    display: flex; align-items: flex-end; padding: 24px;
}
.mastos-modal-hero img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.mastos-modal-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,23,20,.8), transparent);
}
.mastos-modal-hero-content { position: relative; z-index: 2; }
.mastos-modal-hero h2 {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; color: white;
}
.mastos-modal-body { padding: 32px; }
.mastos-modal-body p {
    font-size: .82rem; font-weight: 300; line-height: 1.8;
    color: var(--ink-soft); margin-bottom: 12px;
}
.mastos-modal-amenities {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0;
}
.mastos-modal-amenity {
    padding: 12px; background: var(--cream); text-align: center;
    font-size: .7rem; color: var(--ink-soft);
}
.mastos-modal-amenity strong {
    display: block; font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 400; color: var(--accent); margin-bottom: 2px;
}
.mastos-modal-book {
    display: block; width: 100%; padding: 15px;
    background: var(--dark); border: none; cursor: pointer;
    font-family: var(--font-body); font-size: .7rem; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
    transition: var(--ease); margin-top: 20px;
}
.mastos-modal-book:hover { background: var(--gold); color: var(--dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .mastos-section, .mastos-neighborhood { padding: 72px 24px; }
    .mastos-nav { padding: 14px 24px; }
    .mastos-about { grid-template-columns: 1fr; gap: 36px; }
    .mastos-about-visual { height: 300px; }
    .mastos-experience-grid { grid-template-columns: 1fr 1fr; }
    .mastos-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mastos-section, .mastos-neighborhood { padding: 50px 18px; }
    .mastos-nav { padding: 12px 18px; }
    .mastos-nav-menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(26,23,20,.96); flex-direction: column; padding: 18px; gap: 14px;
    }
    .mastos-nav-menu.open { display: flex; }
    .mastos-nav-toggle { display: block; }
    .mastos-lang-switcher { margin: 0; padding: 0; border: none; }
    .mastos-hero-content { padding: 0 18px 44px; }
    .mastos-properties-grid { grid-template-columns: 1fr; }
    .mastos-experience-grid { grid-template-columns: 1fr; }
    .mastos-dining-grid { grid-template-columns: 1fr; }
    .mastos-form-row { grid-template-columns: 1fr; }
    .mastos-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .mastos-footer-bottom { flex-direction: column; gap: 8px; }
    .mastos-property-card-image { height: 200px; }
    .mastos-stats { flex-wrap: wrap; gap: 20px; }
}
