/*
Theme Name: TCI Villa Theme
Theme URI: https://villa-tci.designershon.com
Author: Designershon
Author URI: https://designershon.com
Description: A premium luxury villa rental theme for Turks & Caicos Island Villa. Featuring a full-screen hero, Lodgify booking integration, gallery, amenities, reviews, FAQ, experiences, and contact page.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tci-villa
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, one-column, two-columns
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    --primary-color: #0d2836; /* Deep tropical ocean blue */
    --accent-color: #d4af37; /* Premium Gold */
    --text-light: #f8f9fa;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-light: #ffffff;
    --bg-alt: #f7fafc;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

.bg-light {
    background-color: var(--bg-alt);
}

.bg-primary {
    background-color: var(--primary-color);
}

.text-light {
    color: var(--text-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */
header,
#masthead {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled,
#masthead.scrolled {
    background: rgba(13, 40, 54, 0.95);
    position: fixed;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Inner page: header is always solid */
header.scrolled-default,
#masthead.scrolled-default {
    background: rgba(13, 40, 54, 0.95);
    position: fixed;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a,
.site-branding a {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-decoration: none;
}

.main-nav ul,
#primary-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a,
#primary-menu a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.main-nav a:hover,
#primary-menu a:hover {
    color: var(--accent-color);
}

.header-cta {
    margin-left: 20px;
}

@media(max-width: 768px) {
    .header-cta {
        display: none;
    }
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('images/hero.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(13, 40, 54, 0.6), rgba(13, 40, 54, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Booking Widget
   ========================================================================== */
.booking-container {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 1100px;
    margin: -60px auto 0;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Lodgify Overrides */
:root {
    --ldg-psb-background: transparent;
    --ldg-psb-box-shadow: none;
    --ldg-psb-padding: 0;
    --ldg-psb-button-border-radius: 50px;
    --ldg-psb-color-primary: #d4af37;
    --ldg-psb-color-primary-lighter:#e8ca6b;
    --ldg-psb-color-primary-darker: #b38d1d;
    --ldg-psb-color-primary-contrast: #ffffff;
    --ldg-psb-font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

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

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Amenities Section
   ========================================================================== */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.amenity-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.amenity-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.amenity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.amenity-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 40, 54, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 10px;
}

.review-carousel {
    max-width: 800px;
    margin: 40px auto 0;
}

.review-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 300;
}

.review-author {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-muted);
}

/* ==========================================================================
   Internal Page Headers
   ========================================================================== */
.page-header {
    padding: 160px 20px 80px;
    background: linear-gradient(to bottom, var(--primary-color), #091b24);
    color: var(--text-light);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-block {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.contact-info-block h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-block p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact-info-block i {
    color: var(--accent-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ==========================================================================
   Experiences Grid
   ========================================================================== */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.experience-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: var(--bg-light);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-10px);
}

.experience-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.experience-content {
    padding: 30px;
}

.experience-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.experience-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer,
#colophon {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    width: 40px; height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 5px 0;
}

.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media(max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .gallery-grid .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .main-nav,
    #primary-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}
