/* Bristol Ghost Tour - Main Stylesheet */

@font-face {
    font-family: 'Hallo';
    src: url('../fonts/hallo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #8c003b;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 15px;
    position: relative;
}

.logo-container {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
}

.logo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.1s ease;
}

/* Logo Animations */
@keyframes flash {
    0%, 20%, 40%, 60%, 80%, 100% { opacity: 1; }
    10%, 30%, 50%, 70%, 90% { opacity: 0; }
}

.logo-layer.flashing {
    animation: flash 2s ease-in-out;
}

@keyframes spinAndShrink {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
    100% {
        transform: translate(0, -35px) rotate(720deg) scale(0.4);
    }
}

.logo-container.shrinking {
    animation: spinAndShrink 2s ease-in-out forwards;
}

/* Highlights Reveal Section */
.highlights-reveal {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    text-align: center;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.highlights-reveal.visible {
    opacity: 1;
}

.highlight-item {
    font-family: 'Hallo', serif;
    color: white;
    font-size: 1.3rem;
    margin: 0 auto 20px auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    text-align: justify;
    width: 500px;
}

.highlight-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.more-teaser {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Hallo', serif;
    color: white;
    font-size: 1.8rem;
    opacity: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    transition: opacity 1s ease;
    z-index: 10;
}

.more-teaser.visible {
    opacity: 1;
}

/* Main Content */
.main-content {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 5;
}

.main-content.visible {
    opacity: 1;
}

.main-content h1 {
    font-family: 'Hallo', serif;
    color: #06193f;
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content h1.visible {
    opacity: 1;
}

.main-content h2 {
    font-family: 'Hallo', serif;
    color: #06193f;
    font-size: 2rem;
    margin: 30px 0 20px 0;
    text-shadow: 0 0 8px rgba(255,255,255,0.7), 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Text Elements */
.fade-paragraph {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}

.fade-paragraph.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tour Info Table */
.tour-info-table {
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.8s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tour-info-table.visible {
    opacity: 1;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.8fr 1.2fr;
    gap: 0;
}

.header-row span {
    background-color: #06193f;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.header-row span:last-child {
    border-right: none;
}

.data-row span {
    background-color: rgba(255,255,255,0.95);
    color: #06193f;
    font-size: 0.9rem;
    padding: 15px 8px;
    text-align: center;
    line-height: 1.3;
    border-right: 1px solid rgba(6,25,63,0.1);
}

.data-row span:last-child {
    border-right: none;
}

/* Buttons */
.book-now-btn {
    font-family: 'Hallo', serif;
    background-color: #06193f;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    margin: 30px auto 0 auto;
    transition: all 0.3s ease;
    opacity: 0;
    display: block;
    text-align: center;
}

.book-now-btn.visible {
    opacity: 1;
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 25, 63, 0.3);
}

.second-book-btn {
    opacity: 1;
}

/* Images */
.hero-image {
    margin-top: 40px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-image.visible {
    opacity: 1;
}

.tour-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.contact-image {
    margin-bottom: 30px;
    text-align: center;
}

.contact-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* About Section */
.about-section {
    margin-top: 50px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-section.visible {
    opacity: 1;
}

.about-section h2 {
    font-family: 'Hallo', serif;
    color: #06193f;
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(255,255,255,0.7), 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    opacity: 1;
}

.about-paragraph {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.cipias-link {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cipias-link:hover {
    color: #ffd700;
}

/* Contact Section */
.contact-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.contact-section.visible {
    opacity: 1;
}

.contact-section h2 {
    font-family: 'Hallo', serif;
    color: #06193f;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255,255,255,0.7), 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    opacity: 1;
}

.contact-subtitle {
    color: white;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

.contact-info {
    text-align: center;
    margin-bottom: 25px;
}

.contact-info p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-link {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffd700;
}

.contact-note {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    margin-top: 20px;
}

/* FAQ Section */
.faq-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.faq-section.visible {
    opacity: 1;
}

.faq-section h2 {
    font-family: 'Hallo', serif;
    color: #06193f;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255,255,255,0.7), 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    opacity: 1;
}

.faq-expand-button {
    background-color: #06193f;
    color: white;
    font-family: 'Hallo', serif;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    margin: 0 auto 25px auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    user-select: none;
}

.faq-expand-button:hover {
    background-color: #051535;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.faq-expand-icon {
    margin-left: 10px;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-expand-button[aria-expanded="true"] .faq-expand-icon {
    transform: rotate(45deg);
}

.faq-expand-button[aria-expanded="true"] .faq-expand-text::after {
    content: " Less";
}

.faq-expand-button[aria-expanded="false"] .faq-expand-text::after {
    content: " More";
}

.faq-accordion {
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-accordion.expanded {
    max-height: 2000px;
}

.faq-item {
    margin-bottom: 2px;
}

.faq-question {
    width: 100%;
    background-color: #06193f;
    color: white;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #051535;
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer p {
    color: #06193f;
    padding: 20px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Highlights Section (Bottom - Permanent) */
.highlights-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.highlights-section.visible {
    opacity: 1;
}

.highlights-section h2 {
    font-family: 'Hallo', serif;
    color: #06193f;
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(255,255,255,0.7), 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    opacity: 1 !important;
    display: block !important;
}

.highlights-list {
    color: white;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 40px 0;
    list-style: none;
}

.highlights-list li {
    background-color: #06193f;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Social Media Section */
.social-media-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.2);
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.social-media-section.visible {
    opacity: 1;
}

.social-media-section h2 {
    font-family: 'Hallo', serif;
    color: #06193f;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255,255,255,0.7), 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.social-subtitle {
    color: white;
    font-size: 1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background-color: #06193f;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-family: 'Hallo', serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 120px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.social-link.facebook:hover {
    background-color: #1877F2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Copyright Footer */
.copyright-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.copyright-footer.visible {
    opacity: 1;
}

.copyright-footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Utility Classes */
.page-spacer {
    height: 100px;
}

/* Media Queries */
@media (max-width: 768px) {
    .logo-container {
        max-width: 350px;
    }
    
    .main-content h1 {
        font-size: 2rem;
    }

    .highlight-item {
        font-size: 1.1rem;
    }

    .more-teaser {
        font-size: 1.5rem;
    }

    .highlights-reveal,
    .main-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 280px;
    }

    .highlight-item {
        font-size: 1rem;
    }

    .more-teaser {
        font-size: 1.3rem;
    }
}

/* --- Unified Tour Info Table --- */
.tour-info-table {
    color: white;
    background-color: rgba(6,25,63,0.8);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.tour-info-table .info-item {
    margin-bottom: 12px;
}
