/* Irish Green Theme Variables */
:root {
    --irish-green: #004d2e;
    --irish-green-dark: #003822;
    --irish-green-light: #006b3e;
    --irish-gold: #ff9600;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--irish-green) 0%, var(--irish-green-dark) 100%);
    min-height: 100vh;
}

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

/* Header and Navigation */
.header {
    background-color: var(--irish-green);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--irish-gold);
    border-bottom: 2px solid var(--irish-gold);
}

/* Hero Section */
.hero {
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    background-color: var(--irish-gold);
    color: var(--irish-green);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.services-tabs {
    max-width: 800px;
    margin: 0 auto;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    background-color: var(--white);
    border: 2px solid var(--irish-green);
    color: var(--irish-green);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover,
.tab-button.active {
    background-color: var(--irish-green);
    color: var(--white);
}

/* Tab Content */
.tab-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tab-pane h3 {
    color: var(--irish-green);
    margin-bottom: 1rem;
    text-align: center;
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--irish-green);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 4rem 0;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.about p {
    max-width: 800px;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-align: center;
}

.contact-details h3,
.contact-form h3 {
    color: var(--irish-green);
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-details p strong {
    color: var(--irish-green-dark);
    font-weight: 600;
}

.contact-details p em {
    color: var(--irish-green);
    font-weight: 500;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--irish-green);
}

.contact-form button {
    background-color: var(--irish-green);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--irish-green-dark);
    transform: translateY(-2px);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background-color: var(--irish-green-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--irish-gold);
}

/* GDPR Consent Checkbox */
.gdpr-consent {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.gdpr-consent label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.gdpr-consent input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.gdpr-consent a {
    color: var(--irish-green);
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--irish-green-dark);
    color: var(--white);
    padding: 2rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.cookie-content p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cookie-content a {
    color: var(--irish-gold);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background-color: var(--irish-gold);
    color: var(--irish-green-dark);
}

.cookie-btn.accept:hover {
    background-color: #e68a00;
}

.cookie-btn.reject {
    background-color: #dc3545;
    color: var(--white);
    border: 2px solid #dc3545;
}

.cookie-btn.reject:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.cookie-btn.manage {
    background-color: var(--white);
    color: var(--irish-green-dark);
}

.cookie-btn.manage:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.cookie-modal-header {
    background-color: var(--irish-green);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-modal:hover {
    opacity: 0.8;
}

.cookie-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category h3 {
    color: var(--irish-green);
    margin: 0;
}

.cookie-category p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.cookie-badge {
    background-color: var(--irish-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--irish-green);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-modal-footer {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 0 0 10px 10px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cookie-modal-footer {
        justify-content: center;
    }
    
    .cookie-modal-footer .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

.cookie-btn.save {
    background-color: var(--irish-green);
    color: var(--white);
}

.cookie-btn.save:hover {
    background-color: var(--irish-green-dark);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--irish-green);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Hero Section */
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Hide tab buttons on mobile - show only content */
    .tab-buttons {
        display: none;
    }
    
    /* Make service content swipeable */
    .tab-content {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 20px;
        padding: 0 20px;
        margin: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .tab-content::-webkit-scrollbar {
        display: none;
    }
    
    .tab-pane {
        display: block !important;
        flex: 0 0 calc(100vw - 40px);
        scroll-snap-align: start;
        padding: 2rem;
        box-sizing: border-box;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    /* Swipe indicator */
    .services::after {
        content: '← Swipe for more services →';
        display: block;
        text-align: center;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.875rem;
        margin-top: 1rem;
        font-style: italic;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Contact Section */
    .contact-info {
        padding: 2rem;
    }
    
    /* General Mobile Adjustments */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Cookie Banner Mobile */
    .cookie-banner {
        padding: 1rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .cookie-content {
        padding: 0;
    }
    
    .cookie-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .cookie-content p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin: 0;
    }
    
    /* Ensure reject button is visible on mobile */
    .cookie-btn.reject {
        background-color: #dc3545;
        border-color: #dc3545;
    }
    
    /* Cookie Modal Mobile */
    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 1rem;
    }
    
    .cookie-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .cookie-modal-body {
        padding: 1rem;
        max-height: 60vh;
    }
    
    .cookie-category {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .cookie-category h3 {
        font-size: 1rem;
    }
    
    .cookie-category p {
        font-size: 0.875rem;
    }
    
    /* Contact Section Mobile - ensure good contrast */
    .contact {
        padding: 2rem 0;
    }
    
    .contact h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin: 0 1rem;
        background-color: rgba(255, 255, 255, 0.98);
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--text-dark);
    }
    
    .contact-details p strong {
        color: var(--irish-green-dark);
    }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
    /* Force cookie banner to stack vertically */
    .cookie-banner {
        padding: 1rem !important;
    }
    
    .cookie-content h3 {
        font-size: 1rem;
    }
    
    .cookie-content p {
        font-size: 0.8rem;
        padding: 0;
    }
    
    .cookie-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    
    .cookie-btn {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Ensure reject button stays red */
    .cookie-btn.reject {
        background-color: #dc3545 !important;
        color: white !important;
    }
    
    /* Contact section adjustments */
    .contact-info {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
}