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

:root {
    --color-slate: #2c2c2c;
    --color-silver: #c0c0c0;
    --color-magenta: #d32f78;
    --color-white: #ffffff;
    --spacing-unit: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--color-slate);
    background-color: var(--color-white);
    font-size: 1.08rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-slate);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-magenta);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--color-white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--spacing-unit);
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

/* Logo Styles */
.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

/* Designed for You Section */
.designed-for-you {
    padding: 6rem 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.clinic-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.clinic-image:hover {
    transform: scale(1.02);
}

/* How to Join Section */
.how-to-join {
    padding: 6rem 0;
    background-color: #f5f5f7;
    text-align: center;
}

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

.step {
    padding: 2rem;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-magenta);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

/* Patient Voices Section */
.patient-voices {
    padding: 6rem 0;
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.quote {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.rating {
    color: var(--color-magenta);
    font-weight: 500;
}

/* Location Section */
.location {
    padding: 6rem 0;
    background-color: #f5f5f7;
}

.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.map {
    height: 400px;
    background: var(--color-silver);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon {
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--color-slate);
    color: var(--color-white);
    border-top: 1.5px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
    font-size: 1.08rem;
}

.footer-logo-img.white-logo {
    filter: brightness(0) invert(1);
    background: none;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.nhs-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-right: 1.5rem;
}
.nhs-logo {
    height: 36px;
    width: auto !important;
    max-width: 120px;
    background: none;
    margin-bottom: 0.2rem;
    display: block;
}
.nhs-text {
    color: var(--color-white);
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}
.rqia-logo {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}
.rqia-logo img {
    width: auto !important;
    background: none;
    display: block;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3rem 0 2rem 0;
}
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    min-width: 320px;
}
.footer-logos-row {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    margin-top: 0.5rem;
}
.nhs-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.nhs-logo {
    height: 38px;
    width: auto !important;
    max-width: 120px;
    filter: none;
    background: none;
    margin-bottom: 0.1rem;
    display: block;
}
.nhs-text {
    color: var(--color-white);
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}
.rqia-logo img {
    filter: none;
    background: none;
    display: block;
}
.gaeilge-btn {
    align-self: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.1rem;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    padding: 0.7rem 2.2rem;
}
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 220px;
    justify-content: flex-start;
    align-items: flex-start;
}
.contact-hours h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: 0.01em;
}
.contact-hours p {
    margin-bottom: 0.3rem;
    line-height: 1.7;
    font-size: 1.08rem;
}
.footer-nav {
    display: flex;
    gap: 2rem;
    margin-top: 1.2rem;
}
.footer-nav a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    font-size: 1.08rem;
}
.footer-nav a:hover, .footer-nav a:focus {
    opacity: 1;
    border-bottom: 2px solid var(--color-magenta);
    outline: none;
}

.contact-hours {
    color: var(--color-white);
}

.contact-hours h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-hours p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-hours a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-hours a:hover {
    opacity: 0.8;
}

/* Announcement Banner */
.announcement {
    background-color: var(--color-magenta);
    color: var(--color-white);
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 500;
}

.announcement a {
    color: var(--color-white);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.announcement a:hover {
    opacity: 0.8;
}

/* Image Gallery */
.image-gallery {
    padding: 6rem 0;
    background-color: #f5f5f7;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 12px 12px;
}

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

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 220px;
    }
}

/* Footer Updates */
.address {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .two-column,
    .steps,
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .footer-branding {
        align-items: center;
        min-width: 0;
    }

    .footer-logos-row {
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-info {
        align-items: center;
        min-width: 0;
    }

    .footer-nav {
        justify-content: center;
        gap: 1.2rem;
    }

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

    .gallery-item img {
        height: 130px;
    }

    .gallery-caption {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    .hero-logo {
        max-width: 200px;
    }

    .nhs-info {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 130px;
    }
    .gallery-caption {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}

@font-face {
    font-family: 'Gaeilge1';
    src: url('/fonts/gaeilge/gaeil1.eot');
    src: url('/fonts/gaeilge/gaeil1.eot?#iefix') format('embedded-opentype'),
         url('/fonts/gaeilge/gaeil1.woff') format('woff'),
         url('/fonts/gaeilge/gaeil1.ttf') format('truetype'),
         url('/fonts/gaeilge/gaeil1.svg#Gaeilge1') format('svg');
    font-weight: normal;
    font-style: normal;
}

.gaeilge-btn {
    font-family: 'Gaeilge1', sans-serif;
    border: none;
    border-radius: 30px;
    padding: 0.7rem 2rem;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-left: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gaeilge-btn:hover {
    background: var(--color-silver);
    color: var(--color-slate);
    transform: translateY(-2px) scale(1.04);
}

.hidden {
    display: none !important;
}

.designed-slider {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.designed-slider .slider-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    z-index: 1;
    object-fit: cover;
    border-radius: 20px;
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
}
.designed-slider .slider-img.active {
    opacity: 1;
    z-index: 2;
}
.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    z-index: 3;
}
.slider-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--color-silver);
    opacity: 0.7;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.2s;
    border: 2px solid var(--color-white);
}
.slider-dot.active {
    background: var(--color-magenta);
    opacity: 1;
    transform: scale(1.18);
}

@media (max-width: 900px) {
    .designed-slider {
        max-width: 100%;
        height: 220px;
    }
}
@media (max-width: 600px) {
    .designed-slider {
        height: 160px;
    }
}

.reviews-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 160px;
}
.review-slide {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.review-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    position: relative;
}
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
}
.review-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--color-silver);
    opacity: 0.7;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.2s;
    border: 2px solid var(--color-white);
}
.review-dot.active {
    background: var(--color-magenta);
    opacity: 1;
    transform: scale(1.18);
}

.patient-voices .quote {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--color-slate);
    background: var(--color-white);
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    min-height: 80px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .reviews-slider {
        min-height: 120px;
    }
    .patient-voices .quote {
        font-size: 1.1rem;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    }
}

.footer-credits {
    text-align: center;
    color: #bdbdbd;
    font-size: 0.98rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.footer-credits a {
    color: #bdbdbd;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-credits a:hover, .footer-credits a:focus {
    color: var(--color-magenta);
}
