/*
Theme Name: Ethical Investment UK
Theme URI: https://ethicalinvestmentuk.co.uk
Author: Mylifemap
Author URI: https://mylifemap.co.uk
Description: A professional lead generation theme for ethical investment advisers in the UK. Features a prominent contact form, trust badges, testimonials, SEO-optimized content, and FAQ sections. Supports dynamic location-based subdomains.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ethical-investment-uk
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* ===========================
   CSS Variables / Design System
   =========================== */
:root {
    /* Primary brand colors - Navy blue */
    --primary: #0a3d62;
    --primary-light: #3498db;
    --primary-foreground: #ffffff;
    
    /* Accent - Growth green */
    --accent: #2ecc71;
    --accent-dark: #27ae60;
    --accent-foreground: #ffffff;
    
    /* Background colors */
    --background: #f8fafc;
    --foreground: #0c2d48;
    
    /* Card styling */
    --card: #ffffff;
    --card-foreground: #0c2d48;
    
    /* Muted colors */
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    
    /* Border */
    --border: #e2e8f0;
    
    /* Shadows */
    --shadow-card: 0 4px 20px -4px rgba(10, 61, 98, 0.1);
    --shadow-elevated: 0 12px 40px -8px rgba(10, 61, 98, 0.15);
    --shadow-button: 0 4px 14px -3px rgba(46, 204, 113, 0.4);
    
    /* Border radius */
    --radius: 0.625rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Layout Utilities
   =========================== */
.container-width {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container-width {
        padding: 0 2rem;
    }
}

.section-padding {
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 2rem;
    }
}

/* ===========================
   Header
   =========================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem;
}

@media (min-width: 768px) {
    .site-header {
        padding: 1rem 2rem;
    }
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 2.5rem;
    width: auto;
}

@media (min-width: 768px) {
    .site-logo {
        height: 3rem;
    }
}

.footer-logo {
    height: 3rem;
    width: auto;
}

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin: 0;
}

@media (min-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
}

.site-title a {
    color: inherit;
}

.main-navigation ul {
    display: none;
    list-style: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .main-navigation ul {
        display: flex;
    }
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #ffffff;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5a8a 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10rem;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 7rem 1rem 4rem;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-inner {
        padding: 8rem 2rem 6rem;
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(46, 204, 113, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 2.25rem;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title span {
    display: block;
    color: var(--accent);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        font-size: 1.25rem;
    }
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .hero-benefits {
        justify-content: flex-start;
    }
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.hero-benefit svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form-wrapper {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-form-wrapper {
        margin: 0;
        justify-self: end;
    }
}

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

@media (min-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-title {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .form-title {
        font-size: 1.875rem;
    }
}

.form-subtitle {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--background);
    color: var(--foreground);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.submit-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--accent-foreground);
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: opacity 0.2s, transform 0.2s;
}

.submit-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

/* ===========================
   Trust Badges Section
   =========================== */
.trust-section {
    background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

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

.section-title {
    font-size: 1.875rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.trust-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s;
}

.trust-card:hover {
    box-shadow: var(--shadow-elevated);
}

.trust-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.trust-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}

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

.trust-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===========================
   SEO Content Section
   =========================== */
.seo-section {
    background: var(--background);
}

.seo-content {
    max-width: 56rem;
    margin: 0 auto;
}

.seo-content h3 {
    font-size: 1.5rem;
    color: var(--foreground);
    margin: 2rem 0 1.5rem;
}

.seo-content p {
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.seo-content strong {
    color: var(--foreground);
}

.content-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.content-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.content-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

.content-card h4 {
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.content-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.stats-box {
    background: rgba(10, 61, 98, 0.05);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 2.5rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benefit-check {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    color: var(--accent);
    font-size: 0.75rem;
}

.steps-list {
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--muted-foreground);
    margin: 0;
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials-section {
    background: var(--card);
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.testimonial-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2rem;
    height: 2rem;
    color: rgba(46, 204, 113, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--accent);
    color: var(--accent);
}

.testimonial-text {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(10, 61, 98, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.author-name {
    font-weight: 600;
    color: var(--foreground);
}

.author-location {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    background: var(--background);
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===========================
   Disclaimer Section
   =========================== */
.disclaimer-section {
    background: var(--muted);
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .disclaimer-section {
        padding: 4rem 2rem;
    }
}

.disclaimer-box {
    max-width: 56rem;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .disclaimer-box {
        padding: 2rem;
    }
}

.disclaimer-inner {
    display: flex;
    gap: 1rem;
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(10, 61, 98, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.disclaimer-content h2 {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.disclaimer-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.disclaimer-content p:last-child {
    margin-bottom: 0;
}

.disclaimer-content strong {
    color: var(--foreground);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 6rem 2rem;
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img,
.footer-brand svg {
    width: 40px;
    height: 40px;
}

.footer-brand span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 28rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* ===========================
   Responsive Utilities
   =========================== */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}
