/*
Theme Name: Redbrook Living
Theme URI: https://redbrookliving.co.uk
Author: Redbrook Living
Author URI: https://redbrookliving.co.uk
Description: Custom theme for Redbrook Living — Homes with Purpose
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redbrook-living
*/

:root {
  --red: #C0272D;
  --red-dark: #8B1A1E;
  --red-light: #F5EEEE;
  --slate: #1C2B3A;
  --slate-mid: #3D5166;
  --grey: #8A9BAC;
  --grey-light: #F4F5F6;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(28,43,58,0.08);
  --shadow-hover: 0 8px 40px rgba(28,43,58,0.14);
  --radius: 8px;
  --max-width: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-light { background: var(--grey-light); }
.section-red { background: var(--red); color: var(--white); }
.text-center { text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--slate);
  font-variant-ligatures: no-common-ligatures;
  -webkit-font-variant-ligatures: no-common-ligatures;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; color: var(--slate-mid); }
p:last-child { margin-bottom: 0; }

.red { color: var(--red); }

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--slate);
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-variant-ligatures: no-common-ligatures;
}

.section-header { text-align: center; max-width: 600px; margin: 0 auto 2.8rem; }
.content-narrow { max-width: 720px; padding-top: 0.5rem; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-outline:hover { background: var(--slate); color: var(--white); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-white:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-full { width: 100%; text-align: center; display: block; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(28,43,58,0.08);
  box-shadow: 0 1px 12px rgba(28,43,58,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-family: var(--font-display); font-size: 1.15rem; color: var(--slate); letter-spacing: 0.01em; }
.logo-text strong { color: var(--red); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: var(--slate-mid); transition: color var(--transition); position: relative; padding-bottom: 2px; }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--red); transition: width var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--slate); }

/* Hero */
.hero { position: relative; padding: 100px 0 80px; overflow: hidden; background: var(--white); }
.hero-bg-pattern { position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(ellipse at 80% 40%, var(--red-light) 0%, transparent 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.1rem; color: var(--slate-mid); margin-bottom: 2rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-mark { display: flex; justify-content: center; align-items: center; }
.hero-mark svg { max-width: 380px; width: 100%; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Stats */
.stats-bar { background: var(--slate); padding: 32px 0; }
.stats-inner { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* Mission */
.mission-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mission-text h2 { margin-bottom: 1.2rem; }
.mission-text p { margin-bottom: 1rem; }
.image-placeholder { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.image-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; min-height: 320px; }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillar-card { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); }
.pillar-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.pillar-icon { margin-bottom: 1.2rem; }

/* Dual CTA */
.dual-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cta-card { border-radius: 12px; padding: 3rem; }
.cta-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.cta-card p { margin-bottom: 1.8rem; }
.cta-card-red { background: var(--red); }
.cta-card-red h3 { color: var(--white); }
.cta-card-red p { color: rgba(255,255,255,0.8); }
.cta-card-light { background: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(28,43,58,0.08); }

/* Final CTA */
.final-cta .cta-body { font-size: 1.05rem; max-width: 560px; margin: 0 auto 2rem; }
.section-red h2 { color: var(--white); }

/* Page hero */
.page-hero { padding: 96px 0 80px; }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero-red { background: var(--red); }
.page-hero-red h1, .page-hero-red p { color: var(--white); }
.page-hero-red .hero-sub { color: rgba(255,255,255,0.85); }
.page-hero-warm { background: var(--red-light); border-bottom: 3px solid var(--red); }
.hero-sub-dark { color: var(--slate-mid); }

/* Offer grid */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.offer-card { background: var(--white); border-radius: 12px; padding: 2.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--red); transition: transform var(--transition), box-shadow var(--transition); }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.offer-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--red); opacity: 0.2; line-height: 1; margin-bottom: 0.8rem; }

/* Steps */
.steps { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.step { display: flex; gap: 2rem; align-items: flex-start; padding: 2rem 0; border-bottom: 1px solid rgba(28,43,58,0.08); }
.step:last-child { border-bottom: none; }
.step-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.feature { padding: 2rem; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); }
.feature-bar { width: 40px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 1.2rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-left h1 { margin-bottom: 1.2rem; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--slate-mid); }
.contact-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--red-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-form { background: var(--grey-light); border-radius: 16px; padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--slate); margin-bottom: 0.5rem; }
.optional { color: var(--grey); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid rgba(28,43,58,0.15);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  color: var(--slate); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,39,45,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { background: #e8f5e9; color: #2e7d32; padding: 1rem 1.2rem; border-radius: var(--radius); margin-top: 1rem; font-size: 0.95rem; display: none; }

/* Footer */
.site-footer { background: var(--slate); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.logo-footer .logo-text { color: var(--white); }
.logo-footer .logo-text strong { color: var(--red); }
.footer-tagline { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); margin: 4px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.footer-nav a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin: 0; }

/* Images */
.hero-img-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(28,43,58,0.18); aspect-ratio: 4/3; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-banner { width: 100%; height: 420px; overflow: hidden; }
.img-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.blog-card { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid var(--red); display: flex; flex-direction: column; gap: 0.8rem; transition: transform var(--transition), box-shadow var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card-meta { display: flex; align-items: center; gap: 0.8rem; }
.blog-date { font-size: 0.78rem; font-weight: 500; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-tag { font-size: 0.72rem; font-weight: 500; color: var(--red); background: var(--red-light); padding: 2px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h2 { font-size: 1.15rem; margin-bottom: 0; line-height: 1.4; }
.blog-card h2 a { color: var(--slate); text-decoration: none; transition: color var(--transition); }
.blog-card h2 a:hover { color: var(--red); }
.blog-card p { font-size: 0.9rem; flex-grow: 1; }
.blog-post-inner { max-width: 760px; }
.blog-post-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(28,43,58,0.08); }
.blog-back { font-size: 0.85rem; color: var(--grey); text-decoration: none; transition: color var(--transition); display: inline-block; margin-bottom: 1rem; }
.blog-back:hover { color: var(--red); }
.blog-post-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-top: 0.5rem; }
.blog-post-body p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.2rem; color: var(--slate-mid); }
.blog-post-body h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.6rem; color: var(--slate); }
.blog-post-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(28,43,58,0.08); flex-wrap: wrap; gap: 1rem; }
.blog-post-nav-link { font-size: 0.9rem; font-weight: 500; color: var(--red); text-decoration: none; transition: opacity var(--transition); }
.blog-post-nav-link:hover { opacity: 0.75; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid rgba(28,43,58,0.08); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
  .hero-inner, .mission-inner, .pillars-grid, .dual-cta-inner, .offer-grid, .features-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .stats-inner { justify-content: center; }
  .stat-divider { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .blog-grid { grid-template-columns: 1fr; }
}
