/*
 * Stylesheet for Future of Aesthetics website
 * Designed to reflect a modern, clean UK aesthetic with ample white space,
 * understated colours and strong visual hierarchy. Includes responsive
 * layout and accessible styles.
 */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Colour palette */
:root {
    /* Updated colour palette to better match the clinic's logo */
    --primary-color: #0B2148; /* deep navy taken from the logo for headers and footers */
    --secondary-color: #2F4D73; /* complementary navy tone for accents */
    --accent-color: #C8A15C; /* soft gold/tan accent echoing the logo hues */
    --light-bg: #F7F9FC; /* very light grey for subtle section backgrounds */
    --border-radius: 6px;
    --transition: 0.3s ease;
}

/* Header & Navigation */
header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.logo-initials {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 0.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

/* Logo image styling: ensure the logo scales nicely in the navigation bar */
.logo img,
.logo-image {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
    display: inline-block;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: -2px;
    transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

/* Mobile nav toggle */
#nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

#nav-toggle .hamburger {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: transform var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: 80vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 30, 65, 0.65);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
    padding: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
    color: #555;
}

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-section p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Services Section */
.services-section {
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    color: var(--primary-color);
}

.service-card p {
    padding: 0 1rem 1.5rem;
    color: #555;
    line-height: 1.5;
}

/* Offers Section */
.offers-section {
    background: var(--light-bg);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.offer-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.offer-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.offer-content {
    padding: 1.25rem;
    flex: 1;
}

.offer-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.offer-card p {
    color: #555;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-form .form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.contact-form .full-width {
    flex: 1 1 100%;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(47, 77, 115, 0.2);
}

.contact-form .btn {
    margin-top: 1rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: #555;
}

.contact-info a {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a svg {
    fill: var(--secondary-color);
    width: 24px;
    height: 24px;
    transition: fill var(--transition);
}

.social-links a:hover svg,
.social-links a:focus svg {
    fill: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #8f5f38; /* manually darkened version of accent colour */
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--accent-color);
    color: #ffffff;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

.footer-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition);
        box-shadow: -2px 0 6px rgba(0, 0, 0, 0.05);
    }
    .nav-list.open {
        right: 0;
    }
    #nav-toggle {
        display: flex;
    }
    /* Animate hamburger to X when open */
    #nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    #nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
        opacity: 0;
    }
    #nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    /* Services & offers grid adjust */
    .services-grid, .offers-grid {
        gap: 1.5rem;
    }
    .contact-grid {
        gap: 2rem;
    }
}

/* Footer columns and links */
footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer .footer-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    footer .footer-columns {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

footer .footer-info p,
footer .footer-links a {
    margin: 0.25rem 0;
    color: #fff;
    font-size: 0.9rem;
}

footer .footer-links a {
    text-decoration: underline;
    margin-right: 1rem;
}

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

/* Cookie banner styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 33, 72, 0.9);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    z-index: 10000;
}

.cookie-banner a {
    text-decoration: underline;
    color: var(--accent-color);
    margin-left: 0.25rem;
}

.cookie-banner button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Sticky CTA styles */
.sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: inline-block;
        position: fixed;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--accent-color);
        color: #fff;
        padding: 0.75rem 1.5rem;
        border-radius: var(--border-radius);
        font-weight: 600;
        z-index: 1000;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
}

/* FAQ section styles */
.faq {
    margin-top: 1.5rem;
}

.faq strong {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq p {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

/* Service page content */
.service-content {
    padding: 2rem 0;
}

.service-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-content h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
}

.service-content ul {
    list-style: disc inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1rem;
}

.service-content a.btn-primary {
    display: inline-block;
    margin-top: 1rem;
}

/* CTA block for blog posts */
.cta-block {
    margin-top: 2rem;
    background: var(--light-bg);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
}

.cta-block h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cta-block a.btn-primary {
    margin-top: 1rem;
}