/* Global Variables */
:root {
    --primary-green: #8cc63f;
    /* Vibrant Lime Green from reference style */
    --hover-green: #7ab332;
    --dark-blue: #0f2b46;
    /* Midnight Navy */
    --text-color: #333333;
    --light-grey: #f4f6f8;
    --white: #ffffff;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-grey);
}

.bg-dark {
    background-color: var(--dark-blue);
    color: var(--white) !important;
}

.bg-dark h2,
.bg-dark p {
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background-color: var(--hover-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

/* Header */
.main-header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    /* Fixed to overlay hero and stay top */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background-color: #f8f8f7;
    /* Off-white from reference */
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
    padding: 5px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
/* Logo Styling with Tagline */
.logo-wrapper {
    display: flex;
    align-items: center;
    /* Vertically center icon with the text group */
    gap: 15px;
    text-decoration: none;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: normal;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
    font-style: italic;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
}

.logo-tagline {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 2px;
    padding-left: 2px;
    text-transform: none;
    /* Keep natural case or uppercase if preferred */
    font-style: normal;
}

.main-header.scrolled .logo-tagline {
    color: #555;
}

.logo-icon {
    font-size: 3.5rem;
    /* Make icon large enough to span 2 lines */
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.logo-text .highlight {
    color: var(--primary-green);
}

/* Scrolled State for Logo */
.main-header.scrolled .logo-icon {
    font-size: 2rem;
    /* Shrink icon */
}

.main-header.scrolled .logo-text {
    font-size: 1.5rem;
    /* Shrink text */
    color: var(--dark-blue);
    /* Turn dark */
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--white);
    /* White text on transparent dark background */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.main-header.scrolled .main-nav a {
    color: var(--dark-blue);
    /* Dark text on light background */
}

.main-nav a:hover {
    color: var(--primary-green);
}

/* Remove default link underline styles if any */

.main-nav .btn-primary {
    color: var(--dark-blue) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.main-header.scrolled .mobile-menu-toggle {
    color: var(--dark-blue);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    /* Increased height for form */
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 80px 0;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 43, 70, 0.7), rgba(15, 43, 70, 0.5));
    z-index: -1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    font-size: 3rem;
}

.subline {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Quick Quote Form */
.hero-form-wrapper {
    flex: 0 0 400px;
    background: rgba(0, 0, 0, 0.5);
    /* Dark semi-transparent overlay */
    padding: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-form-wrapper h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 15px;
}

.quick-quote-form input,
.quick-quote-form textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary-green);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.quick-quote-form input::placeholder,
.quick-quote-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.quick-quote-form input:focus,
.quick-quote-form textarea:focus {
    border-color: var(--white);
    box-shadow: 0 0 5px rgba(140, 198, 63, 0.5);
}

.btn-submit {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-green);
    color: var(--white);
    padding: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    /* Ensure pointer cursor */
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-green);
    color: var(--dark-blue);
}

.form-status {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 4px;
    min-height: 24px;
    /* Prevent layout jump */
}

.form-status.success {
    color: #4caf50;
    /* distinct green for success */
    background: rgba(76, 175, 80, 0.1);
    padding: 10px;
    border: 1px solid #4caf50;
}

.form-status.error {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
    padding: 10px;
    border: 1px solid #ff5252;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 3px solid var(--primary-green);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--dark-blue);
    font-weight: 600;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Details Sections (Side by Side) */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.row.reverse {
    flex-direction: row-reverse;
}

.col-text,
.col-image {
    flex: 1;
    min-width: 300px;
}

.feature-list {
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--primary-green);
    margin-right: 10px;
    margin-top: 5px;
}

.white-icons li i {
    color: var(--primary-green);
    /* Keep green or make white? Green pops nicely */
}

.cta-text {
    font-weight: 500;
    margin-top: 20px;
    color: var(--dark-blue);
    font-style: italic;
}

.details-section .image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.section-image:hover {
    transform: scale(1.02);
}

/* Hide old huge icon styles if no longer needed or keep for fallbacks */
.huge-icon {
    font-size: 15rem;
    color: var(--primary-green);
    opacity: 0.1;
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


/* UK Wide Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--primary-green);
}

/* Planning Two Col */
.two-col-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Main Footer Styling */
.main-footer {
    background-color: #111111;
    /* Very dark background */
    color: #aaaaaa;
    font-size: 0.95rem;
}

.main-footer .footer-top {
    background-color: transparent;
    /* Override previous green */
    padding: 60px 0;
    color: #aaaaaa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    color: var(--primary-green);
    /* Green logo text */
}

.footer-logo .logo-icon {
    font-size: 2rem;
    color: var(--primary-green);
}

.footer-col address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ffffff;
    /* Brighter address text */
}

.footer-col address strong {
    color: #ffffff;
}

/* Connect / Social Icons */
.connect-links {
    margin-top: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #0d47a1;
    /* Facebook blue placeholder, can vary per icon */
    color: #fff;
    font-size: 1rem;
    border-radius: 2px;
    transition: var(--transition);
}

/* Specific Brand Colors */
.social-icon:nth-child(1) {
    background-color: #1da1f2;
}

/* Twitter */
.social-icon:nth-child(2) {
    background-color: #1877f2;
}

/* FB */
.social-icon:nth-child(3) {
    background-color: #e1306c;
}

/* Insta */
.social-icon:nth-child(4) {
    background-color: #0077b5;
}

/* LinkedIn */

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom-links {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
}

/* Copyright Bar */
.footer-copyright {
    background-color: #000000;
    padding: 20px 0;
    text-align: center;
    position: relative;
    color: #ffffff;
}

.copyright-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top {
    position: absolute;
    top: -40px;
    /* Overlap button */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #000;
    border: 1px solid #333;
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--primary-green);
    color: #000;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-muted {
    color: #777;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Animation Utilities */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {

    /* Tablet/Mobile Breakpoint */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-form-wrapper {
        width: 100%;
        max-width: 500px;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        /* Ensure above everything */
    }

    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        color: var(--dark-blue);
        /* Force dark text on white mobile menu */
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }

    .main-nav ul li a:hover {
        color: var(--primary-green);
        background-color: rgba(0, 0, 0, 0.02);
        /* Subtle hover bg */
    }

    .main-nav.active ul {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    .row,
    .row.reverse {
        flex-direction: column;
    }

    .two-col-list {
        grid-template-columns: 1fr;
    }

    /* Mobile Logo Spacing & Sizing to prevent overlap */
    .logo-wrapper {
        gap: 15px;
        /* Reduced to reasonable gap */
    }

    .logo-text {
        font-size: 1.5rem;
        /* Reduced from 2.2rem */
    }

    .logo-icon {
        font-size: 2rem;
        /* Reduced from 3.5rem */
    }

    .logo-tagline {
        font-size: 0.75rem;
        /* Scaled down slightly */
    }
}