/* style.css */
:root {
    --primary-color: #c0392b;
    --primary-hover: #91291d;
    --primary-dark: #83281e;
    --secondary-color: #2c3e50;
    --secondary-hover: #1a252f;
    --text-color: #333;
    --text-light: #666;
    --link-focus: #2c3e50;
    --background-light: #f9f9f9;
    --background-alt: #f0f0f0;
    --white: #fff;
    --dark: #333;
    --grey: #555;
    --light-grey: #ddd;
    --very-light-grey: #f8f8f8;
    --focus-outline: 3px solid #0066ff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--very-light-grey);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    z-index: 1000;
    transition: top 0.3s ease;
    text-decoration: none;
    border-bottom-right-radius: 5px;
}

.skip-link:focus {
    top: 0;
    outline: var(--focus-outline);
}

header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--light-grey);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin-right: 15px;
    border-radius: 5px;
}

.logo h1 {
    margin: 0;
    font-size: 1.5em;
    color: var(--secondary-color);
    font-weight: 700;
}

nav {
    flex: 1;
    text-align: right;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--background-light);
}

nav ul li a:focus {
    outline: var(--focus-outline);
    color: var(--primary-color);
}

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

nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
    border-radius: 4px;
}

.hamburger:focus {
    outline: var(--focus-outline);
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-jp2.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

#hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero-text {
    flex: 1;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 5px solid var(--white);
}

.hero-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

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

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.button.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.button.primary:focus {
    outline: var(--focus-outline);
    background-color: var(--primary-hover);
}

.button.primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.button.secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.button.secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.button.secondary:focus {
    outline: var(--focus-outline);
    background-color: var(--secondary-hover);
}

.button.secondary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

.program-day {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-day:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.program-day h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 10px;
}

.program-day ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 15px;
}

.program-day ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.program-day ul li:last-child {
    border-bottom: none;
}

.program-day strong {
    font-weight: bold;
    color: var(--text-color);
}

.note {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 30px;
    padding: 15px;
    background-color: var(--background-alt);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.contact-details {
    margin-top: 20px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-details p {
    margin-bottom: 15px;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.contact-details a:focus {
    outline: var(--focus-outline);
}

footer {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer .container {
    padding: 0 20px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: underline;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:focus {
    outline: var(--focus-outline);
}

/* Cookie Banner Styles */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    color: var(--white);
    padding: 20px 0;
    z-index: 1000;
    display: block;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookies-content h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--white);
    text-align: center;
}

.cookies-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.cookies-content a {
    color: #e74c3c;
    text-decoration: underline;
    font-weight: bold;
}

.cookies-content a:hover {
    text-decoration: none;
}

.cookies-content a:focus {
    outline: var(--focus-outline);
}

.cookies-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.cookies-buttons .button {
    padding: 12px 30px;
    min-width: 150px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 50px auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    color: var(--text-color);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal h2 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-grey);
}

.cookie-option {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    background-color: var(--very-light-grey);
    transition: background-color 0.3s ease;
}

.cookie-option:hover {
    background-color: var(--background-light);
}

.cookie-option label {
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

.cookie-option p {
    margin-top: 8px;
    margin-left: 28px;
    font-size: 0.9em;
    color: var(--text-light);
}

.privacy-content {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 15px;
}

.privacy-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.privacy-content ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.privacy-content li {
    margin-bottom: 10px;
}

/* Custom checkbox styles */
input[type="checkbox"] {
    position: relative;
    width: 18px;
    height: 18px;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--white);
    border: 2px solid var(--grey);
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus {
    outline: var(--focus-outline);
}

input[type="checkbox"]:disabled {
    background-color: #f0f0f0;
    border-color: #ccc;
    cursor: not-allowed;
}

/* High contrast focus styles for accessibility */
a:focus, button:focus, input:focus {
    outline: var(--focus-outline);
}

/* Media Queries for Responsive Design */
@media (max-width: 960px) {
    .container {
        padding: 0 15px;
    }

    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
    }

    .hamburger {
        display: flex;
    }

    header .container {
        justify-content: space-between;
    }

    #hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding: 20px;
        margin-bottom: 30px;
    }

    .hero-image {
        max-width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cookies-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cookies-buttons .button {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .hero-text h2 {
        font-size: 1.8em;
    }
    
    .section h2 {
        font-size: 1.8em;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .cookies-content {
        padding: 15px;
    }
    
    .program-day {
        padding: 15px;
    }
}