/*
Theme Name: FTBMD - First Time Buyer Mortgage Deals
Theme URI: https://ftbmortgagedeals.co.uk
Author: FTBMD
Author URI: https://ftbmortgagedeals.co.uk
Description: SEO-optimized lead generation theme for first time buyer mortgage deals. Keywords: first time buyer mortgage deals, best first time buyer mortgage deals UK, first time buyer mortgage rates, mortgage deals for first time buyers, first time home buyer mortgage offers UK.
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: ftbmd
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    /* Primary Colors - Deep navy blue */
    --primary: 222 47% 20%;
    --primary-foreground: 210 40% 98%;
    
    /* Secondary/Accent - Vibrant emerald green */
    --secondary: 158 64% 40%;
    --secondary-foreground: 210 40% 98%;
    
    /* Background */
    --background: 220 20% 97%;
    --foreground: 222 47% 15%;
    
    /* Card */
    --card: 0 0% 100%;
    --card-foreground: 222 47% 15%;
    
    /* Muted */
    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;
    
    /* Border */
    --border: 220 13% 91%;
    
    /* Accent - Warm amber */
    --accent: 38 92% 50%;
    --accent-foreground: 222 47% 15%;
    
    /* Destructive */
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;
    
    /* Radius */
    --radius: 0.75rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: 1rem;
}

a {
    color: hsl(var(--secondary));
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: hsl(158 64% 35%);
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.site-header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    text-decoration: none;
    transform: scale(1.02);
}

.site-logo-icon {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--secondary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--secondary-foreground));
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.site-logo-text {
    display: none;
}

@media (min-width: 640px) {
    .site-logo-text {
        display: block;
    }
    
    .site-logo-title {
        font-family: 'DM Serif Display', Georgia, serif;
        font-size: 1.25rem;
        font-weight: 500;
        color: hsl(var(--primary-foreground));
    }
    
    .site-logo-subtitle {
        font-size: 0.75rem;
        color: hsl(var(--primary-foreground) / 0.7);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(222 47% 15%));
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: hsl(var(--primary-foreground));
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: hsl(var(--secondary) / 0.1);
    border-radius: 50%;
    filter: blur(120px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 320px;
    height: 320px;
    background: hsl(var(--accent) / 0.08);
    border-radius: 50%;
    filter: blur(100px);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 0 4rem;
}

/* Trust Badge */
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(var(--primary-foreground) / 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--primary-foreground) / 0.2);
    border-radius: 9999px;
    padding: 0.625rem 1.25rem;
    margin-bottom: 2rem;
}

.hero-trust-badge .stars {
    color: hsl(var(--accent));
    font-size: 0.875rem;
}

.hero-trust-badge span {
    color: hsl(var(--primary-foreground) / 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

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

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

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

.hero h1 .location-highlight {
    color: hsl(var(--secondary));
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== FORM ===== */
.quote-form-wrapper {
    background: hsl(var(--primary-foreground) / 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid hsl(var(--primary-foreground) / 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.quote-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--primary-foreground));
    font-family: 'DM Serif Display', Georgia, serif;
    text-align: center;
}

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

.quote-form-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.7);
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--primary-foreground) / 0.9);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid hsl(var(--primary-foreground) / 0.2);
    border-radius: var(--radius);
    background: hsl(var(--primary-foreground) / 0.1);
    color: hsl(var(--primary-foreground));
    transition: border-color 0.2s ease, background-color 0.2s ease;
    height: 3rem;
}

.form-group input::placeholder {
    color: hsl(var(--primary-foreground) / 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: hsl(var(--secondary));
    background: hsl(var(--primary-foreground) / 0.15);
}

/* Hidden fields for tracking */
.hidden-field {
    display: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    box-shadow: 0 4px 15px hsl(var(--secondary) / 0.3);
    height: 3.5rem;
}

.btn-primary:hover {
    background: hsl(158 64% 35%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--secondary) / 0.4);
    color: hsl(var(--secondary-foreground));
}

.btn-full {
    width: 100%;
}

.form-disclaimer {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1rem;
    color: hsl(var(--primary-foreground) / 0.5);
}

/* ===== HERO TRUST INDICATORS ===== */
.hero-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hero-indicators {
        gap: 2.5rem;
    }
}

.hero-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary-foreground) / 0.8);
}

.hero-indicator svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--secondary));
}

.hero-indicator span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    background: hsl(var(--background));
    padding: 4rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

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

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

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.badge-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--secondary) / 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    transition: transform 0.3s ease;
}

.badge-item:hover .badge-icon {
    transform: scale(1.05);
}

.badge-text {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.badge-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: hsl(var(--muted));
    padding: 5rem 0;
}

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

.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--secondary));
    margin-bottom: 0.75rem;
    display: block;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.testimonial-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid hsl(var(--border));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-stars {
    color: hsl(var(--accent));
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
    border: none;
    padding: 0;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
}

/* ===== BENEFITS ===== */
.benefits {
    background: hsl(var(--background));
    padding: 5rem 0;
}

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

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

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

.benefit-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid hsl(var(--border));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: hsl(var(--primary));
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    font-family: 'DM Serif Display', Georgia, serif;
}

.benefit-desc {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: hsl(var(--muted));
    padding: 5rem 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: hsl(var(--card));
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid hsl(var(--border));
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: hsl(var(--foreground));
}

.faq-question:hover {
    background: hsl(var(--muted));
}

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

/* ===== SEO CONTENT ===== */
.seo-content {
    background: hsl(var(--background));
    padding: 5rem 0;
}

.seo-content .container {
    max-width: 800px;
}

.seo-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    color: hsl(var(--foreground));
}

.seo-content h2:first-of-type {
    margin-top: 0;
}

.seo-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    color: hsl(var(--foreground));
}

.seo-content p {
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.seo-content ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.seo-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.seo-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--secondary));
    border-radius: 50%;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 2rem 0;
    text-align: center;
}

.disclaimer-text {
    font-size: 0.75rem;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

.disclaimer-text strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: hsl(222 47% 12%);
    color: hsl(var(--primary-foreground));
    padding: 3rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--secondary));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--secondary-foreground));
    font-weight: 700;
    font-size: 0.75rem;
}

.footer-logo-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.125rem;
    color: hsl(var(--primary-foreground));
}

.footer-disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Footer services columns */
.footer-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
}

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

.footer-services-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
    margin-bottom: 0.75rem;
}

.footer-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-services-list a {
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.7);
}

.footer-services-list a:hover {
    color: hsl(var(--primary-foreground));
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.7);
}

.footer-links a:hover {
    color: hsl(var(--primary-foreground));
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-bottom: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid hsl(var(--secondary));
    outline-offset: 2px;
}
