/* ==========================================================================
   InstaStay Solutions - Main Stylesheet (Premium Hospitality Aesthetic)
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;

    /* Color Palette */
    --color-primary: #121820;       /* Deep Obsidian */
    --color-primary-light: #1f2732; /* Lighter Obsidian */
    --color-accent: #c5a059;        /* Warm Champagne Gold */
    --color-accent-hover: #b08d4b;  /* Darker Antique Gold */
    --color-bg-light: #fbfaf8;      /* Cream White */
    --color-bg-alt: #f5f2eb;        /* Soft Alabaster */
    --color-text-dark: #1e242b;     /* Charcoal Black */
    --color-text-muted: #626a75;    /* Warm Muted Grey */
    --color-text-light: #ffffff;    /* White */
    
    /* Layout */
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 20px 40px rgba(197, 160, 89, 0.15);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary);
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1.25rem;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 0;
}

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

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

.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background-color: var(--color-primary);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

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

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

.nav-cta {
    background-color: var(--color-accent);
    color: var(--color-text-light) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
}

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

.nav-cta:hover {
    background-color: var(--color-accent-hover);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 24, 32, 0.85) 0%, rgba(18, 24, 32, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-light);
    text-align: center;
    padding-top: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-tag {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    z-index: 3;
    display: flex;
    gap: 1rem;
}

.arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.arrow:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-text p:first-of-type {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 1.15rem;
}

.about-media {
    position: relative;
}

.about-media-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-media-wrapper img,
.about-media-wrapper video {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.about-media::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 3px solid var(--color-accent);
    border-radius: var(--border-radius);
    z-index: 1;
    transition: var(--transition);
}

.about-media:hover::before {
    transform: translate(-10px, -10px);
}

/* Services Section */
.section-desc {
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--color-text-light);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(197, 160, 89, 0.2);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background-color: var(--color-bg-alt);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.service-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Why Choose Us Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.why-point-item {
    display: flex;
    gap: 1.25rem;
}

.why-point-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-alt);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.why-point-item:hover .why-point-icon {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    transform: rotate(15deg) scale(1.1);
}

.why-point-icon svg {
    width: 20px;
    height: 20px;
}

.why-point-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.why-point-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.why-visual {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.why-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--color-accent);
}

.contact-form-container {
    background-color: var(--color-text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background-color: #fafafa;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-text-light);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Scroll Animation Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    .about-grid, .why-grid, .contact-grid {
        gap: 3rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 4rem 0;
    }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    /* Navigation */
    .mobile-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        z-index: 1000;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Layout columns stack */
    .about-grid, .why-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .why-visual {
        order: -1;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .btn {
        width: 100%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* 375px Specific Optimization */
@media (max-width: 375px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1rem; }
    .logo-text { font-size: 1.2rem; }
    .service-card {
        padding: 2rem 1.25rem;
    }
}

/* Floating Elements & Background Bubbles */
section, footer {
    position: relative;
    z-index: 1;
}

.floating-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    animation: drift 25s infinite alternate ease-in-out;
}

.bubble-1 {
    width: 300px;
    height: 300px;
    background-color: var(--color-accent);
    top: 15%;
    left: -100px;
}

.bubble-2 {
    width: 400px;
    height: 400px;
    background-color: #c5a059;
    top: 50%;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 30s;
}

.bubble-3 {
    width: 250px;
    height: 250px;
    background-color: var(--color-accent);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.2);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(18, 24, 32, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: floatUpDown 3s ease-in-out infinite;
}

.hero-badge .badge-icon {
    color: var(--color-accent);
    display: flex;
    align-items: center;
}

.hero-badge .badge-icon svg {
    width: 20px;
    height: 20px;
}

.hero-badge .badge-text {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Floating Sticky Actions Widget */
.floating-widget {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
}

.widget-btn svg {
    width: 24px;
    height: 24px;
}

.phone-btn {
    background-color: var(--color-accent);
}

.phone-btn:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.1);
}

.whatsapp-btn {
    background-color: #25d366;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

/* Tooltips */
.widget-btn .tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.widget-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .floating-widget {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }
    .widget-btn {
        width: 48px;
        height: 48px;
    }
    .widget-btn svg {
        width: 20px;
        height: 20px;
    }
}

