/* ============================================
   Stone Castle Villa - Main Stylesheet
   Luxury Villa Rental in Greece
   ============================================ */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c4a055;
    --accent-color: #8b7355;
    --light-bg: #fafafa;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0 2rem;
    height: 80px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-logo a {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-logo a:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0 !important;
    padding: 16px 0 0 0 !important;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

.nav-link-btn {
    padding: 10px 24px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 2px;
    background-color: transparent;
}

.nav-link-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--secondary-color);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding-left: 24px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

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

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

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

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px);
    background-color: var(--white);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

em {
    font-style: italic;
}

/* ============================================
   LISTS
   ============================================ */

ul, ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.8;
}

ul li {
    list-style: disc;
}

ol li {
    list-style: decimal;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 4px;
}

figure {
    margin: 2rem 0;
    overflow: hidden;
}

figcaption {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    padding-top: 1rem;
    font-style: italic;
}

/* Gallery Grid - handles figure > figure pattern from WordPress galleries */
.wp-block-gallery,
.gallery-grid,
figure:has(> figure) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.wp-block-gallery figure,
.gallery-grid figure,
figure > figure {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.wp-block-gallery img,
.gallery-grid img,
figure > figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.wp-block-gallery figure:hover,
.gallery-grid figure:hover,
figure > figure:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Single image figures (not galleries) */
.page-container > figure:not(:has(> figure)),
.page-container > div > figure:not(:has(> figure)) {
    display: block;
}

/* ============================================
   FORMS
   ============================================ */

.contact-section {
    margin: 3rem 0;
    padding: 3rem;
    background-color: var(--light-bg);
    border-radius: 4px;
}

.contact-section h2 {
    margin-top: 0;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(196, 160, 85, 0.1);
}

textarea {
    resize: vertical;
    font-family: var(--font-sans);
}

.btn-submit {
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FEATURE ROWS (Homepage two-column sections)
   ============================================ */

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse > * {
    direction: ltr;
}

.feature-text ul {
    margin-left: 1.2rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin: 0;
}

@media (max-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature-row-reverse {
        direction: ltr;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
}

.footer-content p {
    color: var(--white);
    margin-bottom: 0;
}

/* ============================================
   IFRAMES & EMBEDS
   ============================================ */

iframe {
    max-width: 100%;
    border-radius: 4px;
    margin: 2rem 0;
}

/* ============================================
   BLOCKQUOTE
   ============================================ */

blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        align-items: stretch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 0 1.5rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
    }

    .nav-link-btn {
        padding: 10px 0;
        border: none;
        border-bottom: 2px solid var(--secondary-color);
        text-align: left;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        min-width: auto;
        padding-left: 2rem;
        background-color: var(--light-bg);
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu a {
        padding: 10px 0;
        font-size: 13px;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .page-container {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .wp-block-gallery,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo a {
        font-size: 20px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 15px;
    }

    .page-container {
        padding: 1.5rem 1rem;
    }

    .btn-submit {
        width: 100%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt {
    margin-top: 2rem;
}

.mb {
    margin-bottom: 2rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.pb {
    padding-bottom: 2rem;
}

.pt {
    padding-top: 2rem;
}

/* Contact page responsive grid */
@media (max-width: 768px) {
  .page-container > div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  .page-container > div[style*="grid-template-columns: 1fr 1fr"] > div {
    margin-bottom: 2rem;
  }
}

/* Fix nav items not showing bullets */
.nav-menu li, .dropdown-menu li {
  list-style: none !important;
}
