/* ================================================
   Dreams Haven Adult Family Home - Professional Stylesheet
   Inspired by Edes & Associates Professional Design
   ================================================ */

/* ===== Root Variables ===== */
:root {
    --primary-color: #265a8a;
    --primary-dark: #1b4163;
    --orange-accent: #eb832c;
    --light-text: #E9E9E9;
    --dark-text: #000A0D;
    --white: #FFFFFF;
    --green-accent: #BCCD85;
    
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Helvetica Neue', Arial, sans-serif;
    
    --transition: all 0.4s ease;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1.05;
    margin-bottom: 0.8rem;
}

h1 { 
    font-size: 5.32rem; 
    letter-spacing: -0.11em;
    font-weight: 400;
    color: var(--light-text);
}
h2 { 
    font-size: 3.59rem; 
    letter-spacing: -0.08em;
    font-weight: 400;
    color: var(--primary-color);
}
h3 { 
    font-size: 2.73rem; 
    letter-spacing: -0.06em;
    font-weight: 400;
}
h4 { 
    font-size: 1.86rem; 
    font-weight: 400;
}
h5 { 
    font-size: 1.1rem; 
    font-weight: 400;
}
h6 { 
    font-size: 1rem; 
    font-weight: 400;
}

p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-color);
}

strong {
    color: var(--primary-color);
    font-weight: 500;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Container & Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 1rem 0;
    width: 100%;
    overflow-x: hidden;
}

section.light-bg {
    background-color: #FCFEFB;
}

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

section.primary-bg h1,
section.primary-bg h2,
section.primary-bg h3,
section.primary-bg h4 {
    color: #ffffff;
}

section.primary-bg p,
section.primary-bg a {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Header & Navigation ===== */
header {
    background: #ffffff;
    color: var(--text-primary);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-subtle);
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    overflow-x: hidden;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: none;
}

.header-top a {
    color: var(--primary-color);
    margin-left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
}

.header-top a:hover {
    color: var(--orange-accent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.logo img {
    height: 80px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.8rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

nav a {
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange-accent);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--orange-accent);
}

/* ===== Hero Section ===== */
.hero {
    background: url('images/home.jpg') center/cover;
    background-attachment: fixed;
    color: #ffffff;
    padding: 3rem 2rem;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 300px;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    color: var(--light-text);
    font-size: 5.32rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 400;
    letter-spacing: -0.11em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7), 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero .tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: normal;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--orange-accent);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #E68A2B;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
}

.btn-secondary:hover {
    background-color: var(--primary-main);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(45, 90, 111, 0.2);
}

.btn-white {
    background-color: var(--orange-accent);
    color: #ffffff;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-white:hover {
    background-color: #E68A2B;
    color: #ffffff;
    border: none;
}

.btn-small {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ===== Grid Layouts ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== Cards ===== */
.card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 2.2rem;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-family: var(--font-secondary);
}

.card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.card-icon {
    font-size: 2.8rem;
    color: var(--secondary-accent);
    margin-bottom: 1rem;
}

/* ===== Service/Feature Cards ===== */
.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.service-card h3,
.service-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 0;
}

.service-card i {
    font-size: 2.2rem;
    color: var(--secondary-accent);
    margin-bottom: 1rem;
    display: block;
}

/* ===== Image + Text Sections ===== */
.image-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.image-text-section.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.image-text-section.reverse > * {
    direction: ltr;
}

.image-text-section img {
    width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow-medium);
    display: block;
}

/* ===== Footer ===== */
footer {
    background: #1a0f08;
    color: #ffffff;
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--secondary-accent);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.footer-contact-item > div,
.footer-contact-item > a {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}


.footer-contact-item i {
    color: var(--secondary-accent);
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

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

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.footer-socials a {
    color: var(--secondary-accent);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== Floating CTA Buttons ===== */
.floating-cta {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
}

.cta-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    animation: pulse 3s infinite;
    position: relative;
}

.cta-btn:hover {
    transform: scale(1.1);
    animation: none;
}

.cta-phone {
    background-color: #27ae60;
}

.cta-phone:hover {
    background-color: #229954;
}

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

.cta-email:hover {
    background-color: var(--primary-dark);
}

.cta-label {
    position: absolute;
    right: 75px;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.cta-btn:hover .cta-label {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    }
}

/* ===== Google Map ===== */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Contact Form ===== */
.contact-form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafbf9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(125, 110, 98, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== Virtual Tour Section ===== */
.virtual-tour-section {
    padding: 0.5rem 0;
    background: #ffffff;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.virtual-tour-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.virtual-tour-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.slideshow-container {
    position: relative;
    height: 500px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 10;
    pointer-events: none;
}

.slideshow-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.slideshow-controls button:hover {
    background: var(--orange-accent);
    border-color: var(--orange-accent);
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design - Tablet ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    h1 { font-size: 4rem; }
    h2 { font-size: 2.8rem; }
    h3 { font-size: 2rem; }
    
    .hero {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* ===== Responsive Design - Mobile ===== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.3rem; }
    
    section {
        padding: 1rem 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .logo {
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    
    .logo span {
        max-width: 280px;
        word-break: break-word;
    }
    
    .header-top a {
        margin-left: 0;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.08em;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .image-text-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-text-section.reverse {
        direction: ltr;
    }
    
    .grid, .grid-2, .grid-3, .grid-4 {
        gap: 1.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-container {
        height: 300px;
    }
    
    .floating-cta {
        right: 8px;
        bottom: 12px;
        gap: 0.6rem;
    }
    
    .cta-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .cta-label {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.95rem 2rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .btn-small {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.8rem; letter-spacing: -0.08em; }
    h2 { font-size: 1.4rem; letter-spacing: -0.05em; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    
    section {
        padding: 1rem 0;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        text-align: center;
        justify-content: center;
    }
    
    nav li {
        flex: 0 0 calc(16.66% - 0.4rem);
        min-width: 65px;
        max-width: 100%;
        overflow: hidden;
    }
    
    nav a {
        font-size: 0.65rem;
        flex-direction: column;
        gap: 0.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    nav a i {
        font-size: 1rem;
    }
    
    .hero {
        padding: 3rem 1rem;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .floating-cta {
        right: 8px;
        bottom: 10px;
        gap: 0.5rem;
    }
    
    .cta-btn {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
    
    .cta-label {
        display: none;
    }
    
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .btn-small {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .footer-section {
        min-width: 0;
    }

    p {
        font-size: 0.95rem;
    }

    .footer-section h4 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        color: var(--secondary-accent);
    }

    .footer-section p, 
    .footer-section a,
    .footer-contact-item {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .footer-contact-item {
        gap: 0.5rem;
    }

    .footer-contact-item i {
        font-size: 0.9rem;
    }

    .footer-socials {
        gap: 1rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
    }
}

/* ===== Mobile Grid Override - Handle Inline Styles ===== */
@media (max-width: 768px) {
    /* Override all inline grid styles to single column */
    div[style*="display: grid; grid-template-columns: 1fr 1fr"],
    div[style*="display: grid; grid-template-columns: repeat(2"],
    div[style*="display: grid; grid-template-columns: repeat(3"],
    div[style*="display: grid; grid-template-columns: repeat(4"],
    div[style*="display: grid; gap"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Remove fixed height from grid containers to allow stacking */
    div[style*="display: grid; grid-template-columns: repeat(3"] {
        height: auto !important;
    }
    
    div[style*="display: grid"][style*="height:"] {
        height: auto !important;
    }
    
    /* Gap adjustments on mobile */
    div[style*="gap: 5rem"] {
        gap: 2rem !important;
    }
    
    div[style*="gap: 4rem"] {
        gap: 1.5rem !important;
    }
    
    div[style*="gap: 3rem"] {
        gap: 1.5rem !important;
    }
    
    /* Image height adjustments */
    img[style*="height: 400px"],
    section[style*="height: 400px"] {
        height: 250px !important;
    }
    
    img[style*="height: 350px"],
    section[style*="height: 350px"] {
        height: 200px !important;
    }
    
    img[style*="height: 300px"],
    section[style*="height: 300px"] {
        height: 180px !important;
    }
    
    /* Padding adjustments for sections */
    div[style*="padding: 3rem"],
    div[style*="padding: 2.5rem"],
    div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }
    
    /* Align items center for mobile - keep for visual balance */
    div[style*="align-items: center"] {
        align-items: flex-start !important;
    }
    
    /* Text alignment */
    div[style*="text-align: center"] {
        text-align: left !important;
    }
    
    /* Max-width containers */
    div[style*="max-width: 600px"],
    div[style*="max-width: 700px"],
    div[style*="max-width: 900px"] {
        max-width: 100% !important;
    }
    
    /* Flex direction for mobile */
    div[style*="flex-direction: column"] {
        flex-direction: column !important;
    }
}

/* ===== Extra Small Mobile (480px and below) ===== */
@media (max-width: 480px) {
    
    section {
        padding: 2rem 0;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    
    .logo {
        font-size: 0.8rem;
    }
    
    .logo span {
        max-width: 240px;
    }
    
    /* Force all grids to single column */
    div[style*="display: grid"],
    div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Padding on small screens */
    div[style*="padding"] {
        padding: 1rem !important;
    }
    
    /* Typography adjustments */
    p, div[style*="color"] {
        font-size: 0.95rem !important;
    }
    
    /* Images */
    img[style*="height"] {
        height: auto !important;
    }
    
    section[style*="height"] {
        height: auto !important;
        min-height: 150px;
    }
    
    /* Button full width */
    .btn, button, input[type="submit"] {
        width: 100% !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    /* Forms */
    input, textarea, select {
        width: 100% !important;
    }
}

/* ===== Work Section ===== */
.work-section {
    padding: 0;
    margin-bottom: 1rem;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 1rem 0;
    background-color: #FCFEFB;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background-color: var(--orange-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.gallery-icon:hover {
    background-color: #E68A2B;
    transform: scale(1.1);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 1rem 0;
    margin-top: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 450px;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 0 0 4rem 0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .work-section {
        margin-bottom: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container {
        height: 350px;
    }
    
    .contact-section {
        padding: 2rem 0 2rem 0;
        margin-top: 0;
    }
    
    .cta-section {
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
}

/* ===== Services Page Specialties ===== */
@media (max-width: 992px) {
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Modal Fixes */
.lb-outerContainer {
    z-index: 9999 !important;
    position: fixed !important;
}

.lb-overlay {
    z-index: 9998 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.lb-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-radius: 4px !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    cursor: pointer !important;
}

.lb-close::before {
    content: '✕' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

.lb-close:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.back-to-top {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--orange-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background-color: #f58a1f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Tooltips ===== */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-trigger {
    border-bottom: 2px dotted var(--orange-accent);
    cursor: help;
    position: relative;
    transition: color 0.3s ease;
}

.tooltip-trigger:hover {
    color: var(--orange-accent);
}

.tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 130%;
    left: 50%;
    margin-left: -140px;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    word-wrap: break-word;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text.tooltip-right {
    bottom: auto;
    left: 110%;
    margin-left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-text.tooltip-right::after {
    top: 50%;
    left: -10px;
    margin-left: 0;
    margin-top: -5px;
    border-color: transparent #333 transparent transparent;
}

.tooltip-text.tooltip-left {
    bottom: auto;
    left: auto;
    right: 110%;
    margin-left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-text.tooltip-left::after {
    top: 50%;
    left: auto;
    right: -10px;
    margin-left: 0;
    margin-top: -5px;
    border-color: transparent transparent transparent #333;
}

@media (max-width: 768px) {
    .tooltip-text {
        width: 200px;
        margin-left: -100px;
        font-size: 0.9rem;
        bottom: 120%;
    }
    
    .tooltip-text.tooltip-right,
    .tooltip-text.tooltip-left {
        position: absolute;
        bottom: 120%;
        left: 50%;
        right: auto;
        transform: none;
        margin-left: -100px;
        top: auto;
    }
    
    .tooltip-text.tooltip-right::after,
    .tooltip-text.tooltip-left::after {
        top: 100%;
        left: 50%;
        right: auto;
        margin-left: -5px;
        margin-top: 0;
        border-color: #333 transparent transparent transparent;
    }
}

/* ===== Website Tour Styling ===== */
.tour-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 0.3s ease;
}

.tour-welcome-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.tour-welcome-header {
    margin-bottom: 2rem;
}

.tour-welcome-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tour-welcome-header p {
    color: var(--orange-accent);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.tour-welcome-text {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tour-welcome-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 600px) {
    .tour-welcome-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.tour-btn-primary {
    padding: 0.9rem 2rem;
    background-color: var(--orange-accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

@media (min-width: 600px) {
    .tour-btn-primary {
        flex: 0 1 auto;
    }
}

.tour-btn-primary:hover {
    background-color: #E68A2B;
}

.tour-btn-secondary {
    padding: 0.9rem 2rem;
    background-color: #E8E8E8;
    color: var(--primary-color);
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

@media (min-width: 600px) {
    .tour-btn-secondary {
        flex: 0 1 auto;
    }
}

.tour-btn-secondary:hover {
    background-color: #D8D8D8;
    border-color: #B0B0B0;
}

/* Shepherd.js Custom Styling */
.shepherd-theme-custom.shepherd-element {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
}

.shepherd-theme-custom.shepherd-element .shepherd-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.shepherd-theme-custom.shepherd-element .shepherd-text {
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.shepherd-theme-custom.shepherd-element .shepherd-footer {
    border-top: 1px solid #E0E0E0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.shepherd-theme-custom .shepherd-button {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    margin-right: 0.8rem;
}

.shepherd-theme-custom .shepherd-button-primary {
    background-color: var(--orange-accent);
    color: #ffffff;
}

.shepherd-theme-custom .shepherd-button-primary:hover {
    background-color: #E68A2B;
}

.shepherd-theme-custom .shepherd-button-secondary {
    background-color: #E8E8E8;
    color: var(--primary-color);
    border: 1px solid #D0D0D0;
}

.shepherd-theme-custom .shepherd-button-secondary:hover {
    background-color: #D8D8D8;
}

.shepherd-theme-custom.shepherd-element .shepherd-arrow {
    background-color: #ffffff;
    border-color: #E0E0E0;
}

.shepherd-modal-overlay-container {
    z-index: 4999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
/* Force 2-column grids on mobile */  
@media (max-width: 768px) {  
    .gallery-grid, .amenities-grid {  
        grid-template-columns: repeat(2, 1fr) !important;  
        gap: 0.8rem !important;  
    }  
} 
  
/* Compact Amenities for Mobile */  
@media (max-width: 768px) {  
    .amenities-overview-grid, .activities-grid {  
        grid-template-columns: repeat(2, 1fr) !important;  
        gap: 0.5rem !important;  
    }  
    .amenity-card {  
        padding: 0.75rem !important;  
    }  
    .amenity-card i {  
        font-size: 1.25rem !important;  
        margin-bottom: 0.4rem !important;  
    }  
    .amenity-card h3 {  
        font-size: 0.9rem !important;  
        margin-bottom: 0.3rem !important;  
    }  
    .amenity-card p {  
        font-size: 0.8rem !important;  
        line-height: 1.4 !important;  
        margin-bottom: 0 !important;
    }  
    /* Fix CTA section on mobile */
    .cta-section > div {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }
    .cta-section > div > div {
        padding: 2rem 1rem !important;
    }
    .amenities-image-break {
        height: 180px !important;
    }
} 
