/* styles.css – Enhanced, Accessible, Mobile-First Layout (Cleaned & Optimized) */

:root {
    --primary: #007BFF;
    --secondary: #28A745;
    --dark: #333;
    --light: #F8F9FA;
    --gray: #6C757D;
    --radius: 50px;
    --shadow: 0 4px 15px rgba(0,0,0,.1);
    --transition: all 0.3s ease;
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Global Resets & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem units */
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.6;
    background: #FFF;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark);
    color: #FFF;
    padding: 8px;
    z-index: 1000;
    border-radius: 4px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* ==== HEADER ==== */
header {
    background: #FFF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem;
}

nav[aria-label="Main navigation"] {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==== MOBILE LAYOUT (Default: Mobile-First) ==== */
.nav-desktop {
    display: none;
}

.nav-mobile {
    display: block;
}

.nav-top-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    margin-top: 0.5rem;
    justify-content: space-around;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.nav-links a {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    background: #FFF;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.nav-links a:hover,
.nav-links a:focus {
    border-bottom-color: var(--primary);
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    transform: translateY(-1px);
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
}

.phone-btn,
.book-now-btn {
    padding: 0.38rem 1.44rem;
    font-size: 0.8rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: #FFF !important;
    text-align: center;
    transition: var(--transition);
    flex: 1;
    max-width: 48%;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
}

.phone-btn {
    background: var(--primary);
}

.phone-btn:hover,
.phone-btn:focus {
    background: #0056b3;
    transform: scale(1.02);
}

.book-now-btn {
    background: var(--secondary);
}

.book-now-btn:hover,
.book-now-btn:focus {
    background: #218838;
    transform: scale(1.02);
}

/* ==== DESKTOP LAYOUT ==== */
@media (min-width: 769px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
    }

    .nav-mobile {
        display: none;
    }

    .logo img {
        height: 100px;
    }

    .nav-links {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        flex-direction: row;
        margin-top: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        border-bottom: none;
        white-space: nowrap;
        background: #FFF;
        border-radius: 25px;
        box-shadow: 0 2px 8px rgba(0,123,255,0.2);
    }

    .nav-links a:hover,
    .nav-links a:focus {
        opacity: 0.8;
        box-shadow: 0 4px 12px rgba(0,123,255,0.3);
        transform: translateY(-1px);
    }

    .contact-stack {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-end;
    }

    .phone-btn,
    .book-now-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1.1rem;
        width: 260px;
        flex: none;
        max-width: none;
        white-space: nowrap;
        line-height: 1.4;
    }
}

.site-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: black;
    text-align: center;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 769px) {
    .site-title {
        margin: 0 1rem;
        text-align: center;
    }
    
    .nav-desktop {
        justify-content: space-between;
        align-items: center;
    }
}

/* ==== HERO ==== */
.hero[aria-label="Hero section with slideshow"] {
    position: relative;
    min-height: 40vh;
    overflow: hidden;
    color: #FFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide[data-bg]:before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.2);
    z-index: 3;
}

.hero-content {
    z-index: 4;
    position: relative;
    padding: 1.5rem 1rem;
    max-width: 100%;
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 0.3rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-tagline[aria-label="Tagline"] {
    background: var(--light);
    color: var(--dark);
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ==== ANNOUNCEMENT BAR ==== */

.announcement-bar {
    background: var(--primary);  /* blue */
    color: #FFF;                 /* Changed text to white for contrast on blue */
    overflow: hidden;
    white-space: nowrap;
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 99;
    max-width: 1200px;
    margin: 5px auto;
}

.announcement-text {
    display: inline-block;
    padding-left: 100%; /* Start off-screen right */
    animation: scroll-left 20s linear infinite;
}

.announcement-bar:hover .announcement-text,
.announcement-bar:focus-within .announcement-text {
    animation-play-state: paused;
}

.announcement-bar:hover,
.announcement-bar:focus-within {
    background: #0056b3; /* Darker blue on hover */
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==== MOBILE LAYOUT ==== */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 1rem;
        padding: 0.5rem 0;
        max-width: 100%;
        margin: 0;
    }
    .announcement-text {
        animation-duration: 40s; /* Slower on mobile */
    }
}

/* Desktop & Mobile Hero Adjustments */
@media (min-width: 769px) {
    .hero {
        min-height: 50vh;
        padding: 2.5rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 35vh;
        padding: 1rem;
        max-width: 100%;
    }
    .hero-title {
        font-size: 1.2rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* ==== SERVICES ICONS ==== */
.services-icons[aria-label="Our services overview"] {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link:hover .service-icon,
.service-link:focus .service-icon {
    transform: translateY(-8px) scale(1.02);
}

.service-icon {
    text-align: center;
    background: #FFF;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-icon:hover,
.service-icon:focus-within {
    transform: translateY(-8px);
}

.service-icon img {
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.service-icon h2 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-icon p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

/* ==== PROMO SECTION ==== */
.promo-section[aria-label="Current promotions"] {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.promo-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
}

.promo-card {
    background: #FFF;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.promo-card:hover,
.promo-card:focus-within {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.promo-card img {
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 1rem;
    display: block;
    max-width: 100%;
}

.promo-card h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.promo-card p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

/* ==== CTA BUTTON ==== */
.cta {
    display: inline-block;
    background: var(--primary);
    color: #FFF;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.cta:hover,
.cta:focus {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    outline: none;
}

.cta.full-width {
    display: block;
    max-width: 300px;
    margin: 2rem auto;
}

/* ==== TOUR GRID ==== */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.tour-card {
    background: #FFF;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-image {
    margin-bottom: 1rem;
    display: block;
    width: 100%;
}

.tour-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #FFF;
    box-shadow: var(--shadow);
}

.tour-card h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tour-card p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ==== CONTENT SECTIONS FOR SUBPAGES ==== */
.content-section {
    padding: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    text-align: center;
}

.container h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.container h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.container ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.container li {
    padding: 0.5rem 0;
    text-align: left;
    position: relative;
    padding-left: 1.5rem;
}

.container li:before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==== SERVICE IMAGE & TEXT FRAME ==== */
.service-image {
    margin: 2rem auto;
    text-align: center;
    max-width: 600px;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid #FFF;
    margin-bottom: 0.5rem;
}

.service-image figcaption {
    font-style: italic;
    color: var(--gray);
    font-size: 0.9rem;
}

.service-text-frame {
    background: #FFF;
    border: 2px solid #FFF;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 2rem auto;
    text-align: left;
}

.service-text-frame h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 1rem 0;
    text-align: center;
}

.service-text-frame ul {
    max-width: none;
    margin: 1rem 0;
}

/* ==== BOOKING FORM (Accessibility Enhanced) ==== */
#bookingForm {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
}

#bookingForm fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

#bookingForm legend {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.75rem;
    display: grid;
    grid-template-columns: 180px 1fr; /* Increased left column width to prevent truncation */
    gap: 1rem;
    align-items: start;
}

.form-group label {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
    text-align: right;
    padding-top: 0.75rem;
    justify-self: end;
    white-space: normal;      /* Allow wrapping for long labels */
    overflow-wrap: break-word; /* Break long words if needed */
    hyphens: auto;            /* Hyphenate long words */
    max-width: 100%;          /* Stay within cell */
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.125rem;
    transition: border-color var(--transition);
    width: 100%;
}

/* Mobile: Stack and left-align labels */
@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-group label {
        justify-self: start;
        text-align: left;
        padding-top: 0;
        font-size: 1.25rem;
        white-space: normal;
    }
}



#bookingForm button[type="submit"].book-now-btn {
    background: var(--secondary);
    color: #FFF;
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    grid-column: 1 / -1;
}

#bookingForm button[type="submit"].book-now-btn:hover,
#bookingForm button[type="submit"].book-now-btn:focus {
    background: #218838;
    transform: scale(1.02);
}

/* ==== ABOUT OWNER ==== */
.about-owner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    align-items: center;
}

.about-owner img {
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-text {
    text-align: left;
}

.about-text h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ==== TESTIMONIALS GRID ==== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.testimonial-card {
    background: #FFF;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    font-style: italic;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
}

/* ==== FOOTER ==== */
footer[role="contentinfo"] {
    background: var(--dark);
    color: #FFF;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

footer a {
    color: var(--secondary);
    transition: var(--transition);
}

footer a:hover,
footer a:focus {
    opacity: 0.8;
    text-decoration: underline;
}

footer address {
    margin-bottom: 0.5rem;
    font-style: normal;
}

/* ==== DESKTOP ENHANCEMENTS ==== */
@media (min-width: 769px) {
    .hero {
        min-height: 50vh;
        padding: 2.5rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
        padding: 1.25rem 2rem;
    }

    .services-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-icon img {
        height: 160px;
    }

    .promo-card {
        padding: 1.5rem;
    }

    .promo-card img {
        height: 200px;
    }

    .container h2 {
        font-size: 2.5rem;
    }

    .container li {
        padding-left: 2rem;
    }
}

/* ==== MOBILE OPTIMIZATIONS ==== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero {
        min-height: 35vh;
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-tagline {
        padding: 0.8rem 1rem;
    }

    .services-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-icon img {
        height: 120px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-card h2 {
        font-size: 1.4rem;
    }

    .promo-card img {
        height: 150px;
    }

    .pricing-table {
        font-size: 0.9rem;
    }

    .container li {
        text-align: left;
        padding-left: 2rem;
    }

    .container h2 {
        font-size: 1.8rem;
    }

    .booking-section {
        padding: 2rem 0.5rem;
    }

    .booking-info li {
        padding-left: 2rem;
        font-size: 0.95rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .form-group label {
        justify-self: start;
        padding-top: 0;
        font-size: 1.25rem;
        text-align: left;
    }

    #bookingForm legend {
        font-size: 1.3rem;
    }

    .about-owner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-owner img {
        height: 200px;
    }

    .about-text {
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tour-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tour-image img {
        height: 160px;
    }

    .tour-card h2 {
        font-size: 1.1rem;
    }

    .service-image,
    .service-text-frame {
        margin: 1.5rem auto;
        padding: 1rem;
    }

    .service-text-frame {
        text-align: center;
    }

    .service-text-frame h2 {
        text-align: center;
    }
}

    /* High DPI Displays */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .service-icon img,
        .promo-card img {
            image-rendering: -webkit-optimize-contrast;
        }
    }

    /* Print Styles */
    @media print {
        header,
        .hero-slideshow,
        .hero-overlay {
            display: none;
        }

        .hero-tagline,
        .services-icons,
        .promo-section,
        footer {
            box-shadow: none;
            background: #FFF !important;
            color: #000 !important;
        }
    /* Make announcement bar fully clickable */
    .announcement-bar-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .announcement-bar-link:hover .announcement-bar,
    .announcement-bar-link:focus .announcement-bar {
        opacity: 0.92; /* Subtle hover effect */
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    /* Ensure text remains readable and scrolling works inside */
    .announcement-bar {
        cursor: pointer; /* Hand cursor to indicate clickable */
}
}