/*
Theme Name: Rightstep Mortgages
Theme URI: https://rightstepmortgages.net
Author: Rightstep Mortgages Ltd.
Description: Custom theme for Rightstep Mortgages Ltd. - Mortgage and Protection Advice Services
Version: 1.0.0
Text Domain: rightstep
*/

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

:root {
    /* === MAIN COLORS - Change these to retheme the entire site === */
    --rs-navy: #0d3b66;
    --rs-navy-dark: #092847;
    --rs-blue: #48b5c4;
    --rs-blue-light: #7dd3e0;
    --rs-green: #b5c327;
    --rs-green-light: #d4e157;
    --rs-white: #ffffff;
    --rs-off-white: #f5f7fa;
    --rs-gray-light: #e8ecf1;
    --rs-gray: #8a95a5;
    --rs-gray-dark: #4d5968;
    --rs-text: #2c3e50;

    /* RGB channels for rgba() usage in overlays/gradients */
    --rs-navy-rgb: 13, 59, 102;
    --rs-navy-dark-rgb: 9, 40, 71;
    --rs-blue-rgb: 72, 181, 196;
    --rs-green-rgb: 181, 195, 39;

    /* Mid-tone (used in gradients) */
    --rs-mid: #164775;

    /* Computed */
    --rs-shadow: 0 4px 20px rgba(var(--rs-navy-rgb), 0.08);
    --rs-shadow-hover: 0 8px 30px rgba(var(--rs-navy-rgb), 0.15);
    --rs-radius: 12px;
    --rs-transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--rs-text);
    line-height: 1.7;
    background: var(--rs-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--rs-transition);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rs-navy);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--rs-gray-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--rs-transition);
    border: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--rs-navy);
    color: var(--rs-white);
    border-color: var(--rs-navy);
}

.btn-primary:hover {
    background: var(--rs-blue);
    border-color: var(--rs-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--rs-blue-rgb), 0.4);
}

.btn-secondary {
    background: var(--rs-blue);
    color: var(--rs-white);
    border-color: var(--rs-blue);
}

.btn-secondary:hover {
    background: var(--rs-navy);
    border-color: var(--rs-navy);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--rs-white);
    border-color: var(--rs-white);
}

.btn-outline:hover {
    background: var(--rs-white);
    color: var(--rs-navy);
    transform: translateY(-2px);
}

.btn-green {
    background: var(--rs-green);
    color: var(--rs-navy);
    border-color: var(--rs-green);
}

.btn-green:hover {
    background: var(--rs-green-light);
    border-color: var(--rs-green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--rs-green-rgb), 0.4);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.top-bar {
    background: var(--rs-navy);
    color: var(--rs-white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-bar-left a {
    color: var(--rs-white);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar-left a:hover {
    opacity: 1;
    color: var(--rs-blue-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right .fca-badge {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    padding: 2px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: var(--rs-white);
    letter-spacing: 0.5px;
}

.top-bar-right a {
    color: var(--rs-white);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar-right a:hover {
    opacity: 1;
    color: var(--rs-blue-light);
}

.site-header {
    background: var(--rs-white);
    box-shadow: none;
    border-bottom: 1px solid var(--rs-gray-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--rs-transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}

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

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

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo .logo-text .company-name {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--rs-navy);
    line-height: 1.2;
}

.site-logo .logo-text .tagline {
    font-size: 0.72rem;
    color: var(--rs-gray);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide mobile close button on desktop */
.mobile-close {
    display: none;
}

/* WP nav menu list items - remove bullets and display inline */
.main-nav li {
    list-style: none;
    display: inline-block;
}

.main-nav a {
    padding: 8px 18px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--rs-gray-dark);
    border-radius: 8px;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--rs-navy);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--rs-blue);
    border-radius: 2px;
    transition: var(--rs-transition);
    transform: scaleX(0);
    transform-origin: center;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 10px;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 0.88rem;
    border-radius: 8px;
    background: var(--rs-blue);
    border-color: var(--rs-blue);
    color: var(--rs-white);
    overflow: hidden;
}

.nav-cta .btn:hover {
    background: var(--rs-navy);
    border-color: var(--rs-navy);
    color: var(--rs-white);
    transform: none;
    box-shadow: none;
}

.nav-cta .btn::after {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rs-navy);
    transition: var(--rs-transition);
    border-radius: 2px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgb(14 42 53 / 98%) 0%, rgb(2 9 16 / 72%) 60%, rgba(var(--rs-navy-rgb), 0.78) 100%),
                url('assets/images/hero-home.jpg') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--rs-blue-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--rs-green-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-content h1 {
    color: var(--rs-white);
    font-size: 2.6rem;
    margin-bottom: 10px;
    line-height: 1.25;
    line-height: 1.15;
}

.hero-content h1 .highlight {
    color: var(--rs-blue-light);
}

.hero-content h1 .highlight-green {
    color: var(--rs-green);
}

.hero-content .hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.hero-stat .stat-number {
    font-family: 'Figtree', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rs-blue-light);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.hero-card h3 {
    color: var(--rs-white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.hero-card-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-card-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hero-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--rs-blue-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--rs-blue);
}

.hero-card-text h4 {
    color: var(--rs-white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.hero-card-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
    background: var(--rs-off-white);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-header .section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(var(--rs-blue-rgb), 0.1);
    color: var(--rs-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 14px;
}

.section-header p {
    color: var(--rs-gray);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    padding: 36px 30px;
    transition: var(--rs-transition);
    border: 1px solid var(--rs-gray-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rs-blue), var(--rs-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--rs-transition);
}

.service-card:hover {
    box-shadow: var(--rs-shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-icon.blue { background: rgba(var(--rs-blue-rgb), 0.12); color: var(--rs-blue); }
.service-icon.green { background: rgba(var(--rs-green-rgb), 0.12); color: var(--rs-green); }
.service-icon.navy { background: rgba(var(--rs-navy-rgb), 0.1); color: var(--rs-navy); }

/* Icon color utilities - SVGs using currentColor inherit from these */
.icon-blue { color: var(--rs-blue); }
.icon-blue-light { color: var(--rs-blue-light); }
.icon-green { color: var(--rs-green); }
.icon-navy { color: var(--rs-navy); }
.icon-white { color: var(--rs-white); }

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.service-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--rs-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    color: var(--rs-navy);
    gap: 10px;
}

/* =============================================
   ABOUT / WHY CHOOSE US
   ============================================= */
.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(var(--rs-blue-rgb), 0.1);
    color: var(--rs-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 18px;
}

.about-content > p {
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--rs-blue);
    background: var(--rs-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.85), rgba(var(--rs-blue-rgb), 0.8)),
                url('assets/images/family-protection.jpg') center/cover no-repeat;
    padding: 50px;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image-wrapper .floating-stat {
    background: var(--rs-white);
    border-radius: 16px;
    padding: 22px 28px;
    box-shadow: var(--rs-shadow);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 320px;
}

.about-image-wrapper .floating-stat:nth-child(2) {
    align-self: flex-end;
}

.floating-stat .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.floating-stat .stat-icon.blue { background: rgba(var(--rs-blue-rgb), 0.12); color: var(--rs-blue); }
.floating-stat .stat-icon.green { background: rgba(var(--rs-green-rgb), 0.12); color: var(--rs-green); }
.floating-stat .stat-icon.navy { background: rgba(var(--rs-navy-rgb), 0.1); color: var(--rs-navy); }

.floating-stat h4 {
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 2px;
}

.floating-stat p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--rs-gray);
}

/* =============================================
   VALUES SECTION
   ============================================= */
.values-section {
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.93), rgba(var(--rs-navy-dark-rgb), 0.95)),
                url('assets/images/property-investment.jpg') center/cover no-repeat;
    color: var(--rs-white);
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--rs-blue-rgb), 0.08) 0%, transparent 70%);
}

.values-section .section-header h2 {
    color: var(--rs-white);
}

.values-section .section-header p {
    color: rgba(255,255,255,0.6);
}

.values-section .section-header .section-tag {
    background: rgba(var(--rs-blue-rgb), 0.2);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

.value-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--rs-radius);
    padding: 36px 30px;
    transition: var(--rs-transition);
}

.value-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(var(--rs-blue-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--rs-blue-light);
}

.value-card h3 {
    color: var(--rs-white);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.value-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* =============================================
   SECTORS SECTION
   ============================================= */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.sector-card {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    overflow: hidden;
    transition: var(--rs-transition);
    border: 1px solid var(--rs-gray-light);
}

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

.sector-card-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--rs-navy), var(--rs-mid));
    color: var(--rs-white);
    position: relative;
    overflow: hidden;
}

.sector-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(var(--rs-blue-rgb), 0.12);
}

.sector-card-header h3 {
    color: var(--rs-white);
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

.sector-card-header .sector-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    color: var(--rs-white);
    z-index: 2;
}

.sector-card-body {
    padding: 26px 30px;
}

.sector-card-body p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, rgba(var(--rs-blue-rgb), 0.88), rgba(58, 155, 168, 0.9)),
                url('assets/images/modern-house.jpg') center/cover no-repeat;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-section .container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--rs-white);
    font-size: 2rem;
    margin-bottom: 14px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* =============================================
   GUIDES SECTION
   ============================================= */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.guide-card {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    overflow: hidden;
    transition: var(--rs-transition);
    border: 1px solid var(--rs-gray-light);
}

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

.guide-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--rs-navy), var(--rs-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.guide-card-image .guide-icon {
    font-size: 3rem;
    position: relative;
    z-index: 2;
    color: var(--rs-white);
}

.guide-page-image .guide-bg-icon {
    color: var(--rs-white);
}

.guide-card-image::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(var(--rs-green-rgb), 0.15);
}

.guide-card-body {
    padding: 24px;
}

.guide-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.guide-card-body p {
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.guide-card-body .guide-link {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--rs-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guide-card-body .guide-link:hover {
    color: var(--rs-navy);
    gap: 10px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.78) 0%, rgba(var(--rs-navy-dark-rgb), 0.75) 100%),
                url('assets/images/hero-home.jpg') center/cover no-repeat;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero.hero-contact {
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.78) 0%, rgba(var(--rs-navy-dark-rgb), 0.75) 100%),
                url('assets/images/consultation-meeting.jpg') center/cover no-repeat;
}

.page-hero.hero-services {
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.75) 0%, rgba(var(--rs-navy-dark-rgb), 0.72) 100%),
                url('assets/images/house-keys-handover.jpg') center/cover no-repeat;
}

.page-hero.hero-guides {
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.75) 0%, rgba(var(--rs-navy-dark-rgb), 0.72) 100%),
                url('assets/images/financial-documents.jpg') center/cover no-repeat;
}

.page-hero.hero-about {
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.75) 0%, rgba(var(--rs-navy-dark-rgb), 0.72) 100%),
                url('assets/images/family-home.jpg') center/cover no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--rs-blue-rgb), 0.12) 0%, transparent 70%);
}

.page-hero h1 {
    color: var(--rs-white);
    font-size: 2.8rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    padding: 60px 0;
}

.contact-form-wrapper {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    padding: 40px;
    box-shadow: var(--rs-shadow);
    border: 1px solid var(--rs-gray-light);
}

.contact-form-wrapper h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    margin-bottom: 30px;
    font-size: 0.92rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--rs-navy);
    margin-bottom: 6px;
}

.form-group label .required {
    color: #e74c3c;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--rs-gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--rs-transition);
    background: var(--rs-off-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rs-blue);
    box-shadow: 0 0 0 3px rgba(var(--rs-blue-rgb), 0.1);
    background: var(--rs-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--rs-gray-dark);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--rs-blue);
}

.contact-preference-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    padding: 30px;
    box-shadow: var(--rs-shadow);
    border: 1px solid var(--rs-gray-light);
}

.contact-info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(var(--rs-blue-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--rs-blue);
}

.contact-info-item h4 {
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.contact-info-item p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

.contact-info-item a {
    color: var(--rs-blue);
}

.contact-info-item a:hover {
    color: var(--rs-navy);
}

.opening-hours-card {
    background: linear-gradient(135deg, var(--rs-navy), var(--rs-mid));
    color: var(--rs-white);
    border-radius: var(--rs-radius);
    padding: 30px;
}

.opening-hours-card h3 {
    color: var(--rs-white);
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    color: rgba(255,255,255,0.7);
}

.hours-row .time {
    color: var(--rs-white);
    font-weight: 600;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-page-intro {
    padding: 60px 0;
}

.about-page-intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-page-intro .about-text h2 {
    margin-bottom: 18px;
}

.about-page-intro .about-text p {
    font-size: 1.02rem;
}

.about-page-visual {
    background: linear-gradient(135deg, rgba(var(--rs-navy-rgb), 0.88), rgba(var(--rs-blue-rgb), 0.82)),
                url('assets/images/family-home.jpg') center/cover no-repeat;
    border-radius: 20px;
    padding: 50px 40px;
    color: var(--rs-white);
    position: relative;
    overflow: hidden;
}

.about-page-visual::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(var(--rs-green-rgb), 0.1);
}

.about-page-visual h3 {
    color: var(--rs-white);
    margin-bottom: 24px;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.about-stat-row {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
}

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

.about-stat-item .big-number {
    font-family: 'Figtree', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--rs-green);
    line-height: 1;
}

.about-stat-item .stat-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.benefits-section {
    background: var(--rs-off-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.benefit-card {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    padding: 32px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid var(--rs-gray-light);
    transition: var(--rs-transition);
}

.benefit-card:hover {
    box-shadow: var(--rs-shadow-hover);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

.benefit-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.benefit-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =============================================
   SERVICES PAGE
   ============================================= */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-detail-card {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    overflow: hidden;
    border: 1px solid var(--rs-gray-light);
    transition: var(--rs-transition);
}

.service-detail-card:hover {
    box-shadow: var(--rs-shadow-hover);
    transform: translateY(-3px);
}

.service-detail-header {
    padding: 28px 30px;
    background: linear-gradient(135deg, var(--rs-navy), var(--rs-mid));
    color: var(--rs-white);
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-detail-header .svc-icon {
    font-size: 2rem;
    color: var(--rs-white);
}

.service-detail-header h3 {
    color: var(--rs-white);
    font-size: 1.2rem;
}

.service-detail-body {
    padding: 26px 30px;
}

.service-detail-body p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* =============================================
   GUIDES PAGE
   ============================================= */
.guides-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.guide-page-card {
    background: var(--rs-white);
    border-radius: var(--rs-radius);
    overflow: hidden;
    border: 1px solid var(--rs-gray-light);
    transition: var(--rs-transition);
}

.guide-page-card:hover {
    box-shadow: var(--rs-shadow-hover);
    transform: translateY(-4px);
}

.guide-page-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.guide-page-image .guide-bg-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
}

.guide-page-body {
    padding: 28px;
}

.guide-page-body .guide-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--rs-blue-rgb), 0.1);
    color: var(--rs-blue);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.guide-page-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.guide-page-body p {
    font-size: 0.88rem;
    margin-bottom: 18px;
}

/* =============================================
   OPENWORK PARTNERSHIP SECTION
   ============================================= */
.openwork-section {
    background: var(--rs-white);
    border-top: 1px solid var(--rs-gray-light);
}

.openwork-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.openwork-logo img {
    max-width: 380px;
    width: 100%;
}

.openwork-content h2 {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.openwork-content > p {
    font-size: 1rem;
    margin-bottom: 12px;
}

.openwork-content .openwork-highlight {
    color: var(--rs-blue);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .openwork-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .openwork-logo img {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* =============================================
   DISCLAIMER / COMPLIANCE
   ============================================= */
.disclaimer-section {
    background: var(--rs-off-white);
    padding: 50px 0;
    border-top: 1px solid var(--rs-gray-light);
}

.disclaimer-box {
    background: var(--rs-white);
    border-left: 4px solid var(--rs-navy);
    border-radius: 0 var(--rs-radius) var(--rs-radius) 0;
    padding: 28px 32px;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-box h4 {
    color: var(--rs-navy);
    font-size: 1rem;
    margin-bottom: 10px;
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: var(--rs-gray);
    margin-bottom: 8px;
}

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

.disclaimer-box .warning-text {
    color: var(--rs-navy);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--rs-navy-dark);
    color: var(--rs-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .footer-logo img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    background: var(--rs-white);
    padding: 4px 8px;
}

.footer-brand .footer-logo span {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-brand > p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--rs-white);
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: var(--rs-transition);
}

.footer-col ul li a:hover {
    color: var(--rs-blue-light);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item .fc-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.6);
}

.footer-contact-item a:hover {
    color: var(--rs-blue-light);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--rs-blue-light);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-visual {
        display: none;
    }

    .services-grid,
    .values-grid,
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section .container,
    .about-page-intro .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section-padding { padding: 50px 0; }

    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--rs-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-cta {
        margin-left: 0;
    }

    .mobile-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--rs-navy);
    }

    .main-nav li {
        display: block;
        text-align: center;
    }

    .hero {
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .services-grid,
    .values-grid,
    .sectors-grid,
    .service-detail-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .about-stat-row {
        flex-wrap: wrap;
    }

    .contact-preference-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}
