/*
Theme Name: Consolidate Pensions UK
Theme URI: https://consolidatepensions.co.uk
Author: Find Adviser
Author URI: https://consolidatepensions.co.uk
Description: A professional lead generation theme for pension consolidation services. Features dynamic location detection, Formspree integration, and SEO optimization for 2026.
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: consolidate-pensions
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* ===================================
   CSS Variables / Design Tokens
   =================================== */
:root {
  /* Primary Colors */
  --primary: 210 70% 45%;
  --primary-foreground: 0 0% 100%;
  
  /* Secondary Colors */
  --secondary: 145 63% 42%;
  --secondary-foreground: 0 0% 100%;
  
  /* Accent */
  --accent: 145 63% 32%;
  --accent-foreground: 0 0% 100%;
  
  /* Background & Foreground */
  --background: 210 20% 98%;
  --foreground: 210 50% 15%;
  
  /* Card */
  --card: 0 0% 100%;
  --card-foreground: 210 50% 15%;
  
  /* Muted */
  --muted: 210 20% 96%;
  --muted-foreground: 210 20% 40%;
  
  /* Border & Ring */
  --border: 210 20% 90%;
  --ring: 210 70% 45%;
  
  /* Destructive */
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  
  /* Radius */
  --radius: 0.75rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===================================
   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: hsl(var(--foreground));
  background-color: hsl(var(--background));
}

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

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

@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(--primary));
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: hsl(var(--accent));
}

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

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

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

/* ===================================
   Skip Link (Accessibility)
   =================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ===================================
   Header
   =================================== */
.site-header {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.site-logo svg {
  width: 50px;
  height: 50px;
}

.site-logo-text {
  margin-left: 0.75rem;
}

.site-logo-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1.1;
}

.site-logo-text .tagline {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(210 70% 35%) 100%);
  color: hsl(var(--primary-foreground));
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

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

.hero-text h1 {
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-benefits {
  list-style: none;
  margin-bottom: 2rem;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.hero-benefits .check-icon {
  width: 24px;
  height: 24px;
  background: hsl(var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-benefits .check-icon svg {
  width: 14px;
  height: 14px;
  color: white;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ===================================
   Lead Form
   =================================== */
.lead-form-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.lead-form-card h3 {
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  text-align: center;
}

.lead-form-card .form-subtitle {
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

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

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

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: hsl(var(--background));
}

.lead-form input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.lead-form .submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, hsl(var(--secondary)) 0%, hsl(var(--accent)) 100%);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.lead-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.lead-form .form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.lead-form .form-footer span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  background: hsl(var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.form-success h3 {
  color: hsl(var(--secondary));
  margin-bottom: 0.5rem;
}

/* ===================================
   Trust Badges Section
   =================================== */
.trust-badges-section {
  padding: 4rem 0;
  background: hsl(var(--muted) / 0.3);
}

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

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

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

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

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

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

.trust-card {
  background: hsl(var(--card));
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.trust-card .icon {
  width: 64px;
  height: 64px;
  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 1rem;
}

.trust-card .icon svg {
  width: 32px;
  height: 32px;
  color: hsl(var(--primary));
}

.trust-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* ===================================
   Stats Section
   =================================== */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(210 70% 35%) 100%);
  color: white;
}

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

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

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

.stat-item .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--secondary));
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ===================================
   Content Section
   =================================== */
.content-section {
  padding: 4rem 0;
}

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

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

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

.content-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

.content-card h3 .icon {
  width: 40px;
  height: 40px;
  background: hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-card ul {
  list-style: none;
}

.content-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.content-card ul li .bullet {
  width: 6px;
  height: 6px;
  background: hsl(var(--secondary));
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.info-box {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--secondary) / 0.05));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
}

.info-box h3 {
  margin-bottom: 1rem;
}

.info-box p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
  padding: 4rem 0;
  background: hsl(var(--muted) / 0.3);
}

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

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

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

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

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

.testimonial-card blockquote {
  font-style: italic;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

.testimonial-card .author .avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

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

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

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
  padding: 4rem 0;
}

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

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

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: hsl(var(--card));
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: hsl(var(--primary));
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--card));
}

/* ===================================
   Disclaimer Section
   =================================== */
.disclaimer-section {
  padding: 3rem 0;
  background: hsl(var(--muted) / 0.5);
  border-top: 1px solid hsl(var(--border));
}

.disclaimer-box {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--primary));
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.disclaimer-box h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

.disclaimer-box p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

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

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

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

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

.footer-about p {
  color: hsl(var(--primary-foreground) / 0.7);
  max-width: 400px;
}

.footer-links h4 {
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

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

.footer-links ul li a {
  color: hsl(var(--primary-foreground) / 0.7);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
}

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

.footer-bottom .legal-links a {
  color: hsl(var(--primary-foreground) / 0.6);
}

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

/* ===================================
   Utility Classes
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
