/* 
** PureFlow - UK Water Delivery 
** Main Stylesheet
*/

/* ---------- Base Styles ---------- */
:root {
    /* Color Variables */
    --primary-color: #0066CC;       /* Deep blue for primary elements */
    --primary-light: #CCE5FF;       /* Light blue for backgrounds */
    --primary-dark: #004C99;        /* Dark blue for hover states */
    --secondary-color: #E6F7FF;     /* Very light blue for sections */
    --accent-color: #00A3E0;        /* Bright blue for accents */
    --text-dark: #333333;           /* Dark gray for main text */
    --text-light: #666666;          /* Light gray for secondary text */
    --white: #FFFFFF;               /* White for backgrounds and text */
    --light-gray: #F5F7FA;          /* Light gray for alternate backgrounds */
    --border-color: #E1E8ED;        /* Border color */
    --success-color: #34C759;       /* Green for success messages */
    --warning-color: #FF9500;       /* Orange for warnings */
    --error-color: #FF3B30;         /* Red for errors */
    
    /* Typography */
    --body-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Sizes and Spacing */
    --container-width: 1200px;
    --section-spacing: 5rem;
    --element-spacing: 1.5rem;
    --border-radius: 0.5rem;
    --button-radius: 4px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
.section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

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

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--button-radius);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn:focus {
    outline: none;
}

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

.btn.primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-light);
}

.btn.tertiary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: transparent;
    text-decoration: underline;
}

.btn.tertiary:hover {
    color: var(--primary-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    font-weight: normal;
    margin-bottom: 0;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

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

.logo a {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.btn {
    padding: 0.5rem 1rem;
}

.nav-menu a.btn::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* Header scroll state */
.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 10rem 0 5rem;
    background-color: var(--secondary-color);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------- Services Section ---------- */
.services {
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* ---------- About Section ---------- */
.about {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text .section-header {
    text-align: left;
}

.about-text .section-header h2::after {
    left: 0;
    transform: none;
}

.about-image {
    flex: 1;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background-color: var(--white);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: none;
}

.testimonial-card.active {
    display: block;
}

.testimonial-icon {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--text-light);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.prev-testimonial,
.next-testimonial {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
}

.prev-testimonial:hover,
.next-testimonial:hover {
    opacity: 0.7;
}

.testimonial-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.indicator.active {
    background-color: var(--primary-color);
}

/* ---------- Delivery Areas Section ---------- */
.delivery-areas {
    background-color: var(--secondary-color);
}

.uk-map {
    margin: 2rem auto 3rem;
    text-align: center;
}

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

.region {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

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

.region p {
    color: var(--text-light);
    margin-bottom: 0;
}

.delivery-note {
    text-align: center;
    font-style: italic;
}

/* ---------- Newsletter Section ---------- */
.newsletter {
    background-color: var(--white);
}

.newsletter .container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.newsletter-content {
    flex: 1;
}

.newsletter-form {
    margin-top: 2rem;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.newsletter-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ---------- Contact Section ---------- */
.contact {
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 0;
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--primary-light);
}

.footer-top {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
}

.footer-logo p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.social-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
}

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

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

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

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

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.cookie-options {
    margin: 2rem 0;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.cookie-option p {
    margin-top: 0.25rem;
    margin-left: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container,
    .about-content,
    .newsletter .container {
        flex-direction: column;
    }
    
    .about-content,
    .newsletter .container {
        gap: 2rem;
    }
    
    .hero-content,
    .hero-image,
    .about-text,
    .about-image,
    .newsletter-content,
    .newsletter-image {
        width: 100%;
    }
    
    .delivery-regions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .services-grid,
    .delivery-regions {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 0;
    }
}
