/* ========================================
   HODDESDON MORTGAGE SOLUTIONS
   Modern Redesign
   ======================================== */

/* ---------- RESET & VARIABLES ---------- */
:root {
    --brand: #8A011B;
    --brand-dark: #6b0115;
    --dark: #1a1a2e;
    --text: #444;
    --text-light: #666;
    --light: #f7f7fa;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

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

a:hover { color: var(--brand-dark); }

strong, b { color: var(--brand); }

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

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

/* ---------- UTILITIES ---------- */
.label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand);
    margin-bottom: 12px;
}

.label-light {
    color: rgba(255,255,255,0.8);
}

.section {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section { padding: 100px 0; }
}

.section-light {
    background-color: var(--light);
}

.section-dark {
    background-color: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 36px;
}

@media (min-width: 768px) {
    .section-header h2 { font-size: 42px; }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- TOPBAR ---------- */
#topbar {
    background-color: var(--dark);
    padding: 8px 0;
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    gap: 24px;
}

.topbar-left a {
    color: rgba(255,255,255,0.75);
    display: none;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.topbar-left a:first-child {
    display: flex;
}

@media (min-width: 768px) {
    .topbar-left a { display: flex; }
}

.topbar-left a:hover { color: #fff; }
.topbar-left i { font-size: 12px; }

.topbar-right {
    display: flex;
    gap: 16px;
}

.topbar-right a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition);
}

.topbar-right a:hover {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

/* ---------- NAVBAR ---------- */
#navbar {
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}


#navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

#logo {
    height: 60px;
    width: auto;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 992px) {
    .burger { display: none; }
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 992px) {
    .nav-links {
        position: static;
        flex-direction: row;
        padding: 0;
        gap: 36px;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
    }
}

.nav-links a {
    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brand); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(138,1,27,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 720px;
}

.hero-content h1 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 20px;
}

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

@media (min-width: 1200px) {
    .hero-content h1 { font-size: 60px; }
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all var(--transition);
}

.hero-dot.active,
.hero-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138,1,27,0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        flex-direction: row;
        gap: 64px;
    }
}

.about-text {
    flex: 1.2;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
    position: relative;
}

@media (min-width: 768px) {
    .about-text h2 { font-size: 38px; }
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand);
    margin-top: 16px;
    border-radius: 2px;
}

.about-text p {
    font-size: 17px;
    margin-bottom: 16px;
    color: var(--text);
}

.about-text .cta-line {
    font-weight: 700;
    margin-top: 8px;
}

.about-image {
    flex: 0.8;
    align-self: stretch;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

/* ---------- SERVICE CARDS ---------- */
.services-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-cards {
        flex-direction: row;
        gap: 32px;
    }
}

.service-card {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.service-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    color: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.service-card h3 {
    color: #fff;
    font-size: 22px;
}

.service-card p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.6;
}

.card-link {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition), color var(--transition);
}

.service-card:hover .card-link {
    gap: 12px;
    color: #fff;
}

/* ---------- CONTENT ROWS (Mortgages / Protection) ---------- */
.content-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

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

@media (min-width: 768px) {
    .content-row {
        flex-direction: row;
        gap: 56px;
    }

    .content-row--reverse {
        flex-direction: row-reverse;
    }
}

.content-col {
    flex: 1;
}

.content-col--text h3 {
    font-size: 22px;
    color: var(--brand);
    margin-bottom: 12px;
    margin-top: 28px;
    position: relative;
    padding-bottom: 8px;
}

.content-col--text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.content-col--text h3:first-child { margin-top: 0; }

.content-col--text p {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.content-col--image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .content-col--sticky {
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background-color: #111;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 24px;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(138,1,27,0.5) 100%);
}

.testimonials-wrap {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-track {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial {
    position: absolute;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
}

.testimonial.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.quote-icon {
    font-size: 28px;
    color: var(--brand);
}

.testimonial p {
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
}

.stars {
    display: flex;
    gap: 4px;
}

.stars i {
    color: var(--brand);
    font-size: 14px;
}

.testimonial .author {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.t-arrow {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
}

.t-arrow:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.t-dots {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.t-dot.active,
.t-dot:hover {
    background: var(--brand);
    transform: scale(1.3);
}

/* ---------- CONTACT ---------- */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 768px) {
    .contact-grid {
        flex-direction: row;
        gap: 56px;
    }
}

.contact-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--light);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-row > i {
    color: var(--brand);
    font-size: 18px;
    margin-top: 4px;
    min-width: 20px;
}

.contact-row h4 {
    font-size: 16px;
    color: var(--brand);
    margin-bottom: 2px;
}

.contact-row p {
    font-size: 15px;
    color: var(--text);
}

.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.contact-socials a {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-socials i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.contact-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-col {
    flex: 1;
    background: var(--light);
    border-radius: var(--radius);
    padding: 32px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-intro {
    font-size: 16px;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(138,1,27,0.1);
    background: var(--white);
}

.form-group textarea {
    height: 130px;
    resize: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input { margin-top: 4px; }

.form-check label {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.form-quiz {
    text-align: center;
}

.form-quiz label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-quiz input {
    max-width: 120px;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.btn-submit {
    align-self: center;
    width: 100%;
    max-width: 240px;
    text-align: center;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-security-notice {
    font-size: 13px;
    color: var(--text-light);
    background: var(--light);
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-security-notice i {
    color: var(--brand);
}

/* ---------- FOOTER ---------- */
#footer {
    background: #fff;
    padding: 56px 0 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
}

.footer-logo {
    height: 50px;
}

.footer-col h4 {
    color: rgba(0,0,0,0.45);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-col p,
.footer-col a {
    color: rgba(0,0,0,0.75);
    font-size: 15px;
}

.footer-col a:hover { color: #000; }

.footer-disclaimer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-disclaimer p {
    font-size: 11px;
    color: rgba(0,0,0,0.4);
    line-height: 1.6;
    margin-bottom: 6px;
}

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

.footer-bottom {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(0,0,0,0.45);
}

.footer-bottom a {
    color: rgba(0,0,0,0.55);
}

.footer-bottom a:hover { color: #000; }
