/* Lovatt Home Surveys — shared brand stylesheet
   Palette: forest green / gold / cream. Type: Cormorant Garamond (display), DM Sans (body). */

:root {
    --forest-green: #1a3a2e;
    --dark-green: #0f2418;
    --gold: #c9a961;
    --gold-dark: #b8945a;
    --cream: #faf8f5;
    --text: #2d2d2d;
    --muted: #6b6b6b;
    --light-gray: #e8e6e1;
    --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.7;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--forest-green);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}
h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.8rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.4rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--forest-green); }
strong { font-weight: 700; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Header / nav ---------- */
header {
    background-color: var(--forest-green);
    color: #fff;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
header h1 { margin: 0; }
.logo, header h1 a, .logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -1px;
    text-decoration: none;
    line-height: 1;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 50px; width: auto; display: block; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 2rem; }
nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}
nav a:hover, nav a[aria-current="page"] { color: var(--gold); }
.sticky-header-cta {
    background: var(--gold);
    color: var(--forest-green);
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.sticky-header-cta:hover { background: var(--gold-dark); }

/* ---------- Layout ---------- */
section, .content-section {
    padding: 5rem 2rem;
    max-width: var(--max);
    margin: 0 auto;
}
.content-section { padding: 3.5rem 2rem 0; }
.content-section:last-of-type { padding-bottom: 3.5rem; }
.container { max-width: var(--max); margin: 0 auto; }
.container > .hero { max-width: none; }
.section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 700px;
    margin: -1.5rem auto 2.5rem;
}
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.two-column > div { min-width: 0; }

/* ---------- Profile ---------- */
.profile {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: var(--max);
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
}
.profile-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    display: block;
}
.profile-intro h2 { margin-bottom: 0.3rem; }
.profile-postnoms {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--forest-green);
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
}
.profile-intro p:last-child { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--dark-green) 100%);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    max-width: none;
    margin: 0;
}
.hero > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero h1, .hero h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 3.5rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}
.hero p + .cta-button, .hero p + .cta-button-secondary { margin-top: 0.5rem; }
.hero .cta-button + .cta-button-secondary,
.hero .cta-button + .cta-button { margin-left: 1rem; }
.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.cta-button, .cta-button-secondary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--forest-green);
    padding: 1.1rem 2.4rem;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.25);
    line-height: 1.2;
}
.cta-button:hover, .cta-button-secondary:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.35);
    color: var(--forest-green);
}
.cta-button-secondary { margin-left: 1rem; }
.cta-button-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: none;
}
.cta-button-outline:hover { background: var(--gold); color: var(--forest-green); }

/* ---------- Dark CTA panel ---------- */
.cta-section {
    background-color: var(--forest-green);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin: 4rem auto;
    max-width: var(--max);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-section h2, .cta-section h3 { color: #fff; font-size: 2.5rem; margin-bottom: 1.5rem; }
.cta-section p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95; max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-section .cta-button { background-color: var(--gold); }

/* ---------- Service cards (homepage) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,58,46,0.12); }
.service-card h3 { font-size: 1.7rem; margin-bottom: 1rem; }
.service-card p { flex: 1; margin-bottom: 1.5rem; color: #444; }
.service-card .cta-button { align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); max-width: none; }
.testimonials > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.testimonial {
    background: #fff;
    border-left: 4px solid var(--gold);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    max-width: 900px;
}
.testimonial p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--forest-green);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.testimonial-author { font-size: 0.95rem; color: var(--muted); font-weight: 500; }

/* ---------- Benefits (product pages) ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.benefit-item {
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
}
.benefit-item h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.benefit-item p { color: #444; font-size: 0.98rem; }

/* ---------- Comparison table ---------- */
.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.comparison-table th, .comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}
.comparison-table th {
    background: var(--forest-green);
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
}
.comparison-table td:first-child { font-weight: 700; color: var(--forest-green); }
.comparison-table tr:nth-child(even) td { background: var(--cream); }
.table-wrap { overflow-x: auto; }

/* ---------- Pricing ---------- */
.pricing-box {
    text-align: center;
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 4rem 2rem;
}
.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 1rem 0 0.5rem;
}

/* ---------- Guide callouts ---------- */
.content-box {
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
}
.highlight-box {
    background: var(--forest-green);
    color: #fff;
    border-left: 5px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}
.highlight-box strong { color: var(--gold); }
.highlight-box h3, .highlight-box h4 { color: #fff; }
.checklist { list-style: none; padding-left: 0; margin: 1.5rem 0 2rem; }
.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--forest-green);
    background: var(--cream);
    transition: background 0.2s;
}
.faq-question:hover { background: #f2efe8; }
.faq-toggle {
    color: var(--gold);
    font-size: 0.8rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer { display: none; padding: 1.5rem 1.75rem; }
.faq-item.active .faq-answer { display: block; }
.faq-answer p { margin-bottom: 0.75rem; }

/* ---------- Trust bar (accreditation logos) ---------- */
.trust-bar {
    background: var(--cream);
    max-width: none;
    text-align: center;
    padding: 2.75rem 2rem;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}
.trust-bar > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.trust-logo { height: 52px; width: auto; flex-shrink: 0; }
.trust-note {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    margin-bottom: 0;
}

/* ---------- About ---------- */
.credentials {
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    padding: 2.5rem;
}
.credentials ul { list-style: none; padding-left: 0; }
.credentials li { padding-left: 1.75rem; position: relative; margin-bottom: 0.6rem; }
.credentials li::before { content: '✓'; color: var(--gold); position: absolute; left: 0; font-weight: 700; }
.contact-info { text-align: center; background: var(--cream); max-width: none; }
.contact-info > * { max-width: 800px; margin-left: auto; margin-right: auto; }
.contact-info p { font-size: 1.1rem; }
.contact-info a { color: var(--forest-green); font-weight: 700; }

/* ---------- Form ---------- */
.contact-form { max-width: 760px; }
.contact-form h2 { text-align: center; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #cfcbc2;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.25);
}
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Location pages ---------- */
.service-list { list-style: none; padding-left: 0; margin: 1.5rem 0; }
.service-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.65rem; }
.service-list li::before { content: '✓'; color: var(--gold); font-weight: 700; position: absolute; left: 0; }
.coverage-badge {
    display: inline-block;
    background: var(--cream);
    border: 1px solid var(--gold);
    color: var(--forest-green);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0.5rem 0.5rem 0;
}
a.coverage-badge { text-decoration: none; }
a.coverage-badge:hover { background: var(--gold); }
.location-contact {
    background: var(--cream);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 2.5rem;
}
.location-contact p { margin-bottom: 0.5rem; }
.small-print { font-size: 0.88rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- Areas we cover ---------- */
.areas {
    background: var(--cream);
    border-top: 1px solid var(--light-gray);
    max-width: none;
    padding: 4rem 2rem;
}
.areas > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.areas h2 { font-size: 2.2rem; text-align: center; margin-bottom: 0.5rem; }
.areas .areas-intro { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
}
.areas-grid li { margin: 0; }
.areas-grid a {
    color: var(--forest-green);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
}
.areas-grid a:hover { color: var(--gold-dark); border-bottom-color: var(--gold); }

/* ---------- Footer ---------- */
footer {
    background-color: var(--forest-green);
    color: #fff;
    padding: 3.5rem 2rem;
    text-align: center;
}
footer p { margin-bottom: 0.75rem; font-size: 0.95rem; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { opacity: 0.8; }
footer .footer-brand {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
footer .footer-small { font-size: 0.82rem; opacity: 0.75; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 2rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .services-grid, .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .profile { flex-direction: column; text-align: center; gap: 1.25rem; }
    .profile-photo img { width: 140px; height: 140px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2.1rem; }
    h3 { font-size: 1.6rem; }
    .hero h1, .hero h2 { font-size: 2.3rem; }
    .hero { padding: 4rem 1.25rem; }
    .hero p { font-size: 1.05rem; }
    header { justify-content: center; text-align: center; padding: 1rem 0.9rem; }
    .logo { justify-content: center; }
    .logo-img { height: 38px; }
    nav { justify-content: center; gap: 0.3rem 0.75rem; }
    nav a { font-size: 0.8rem; }
    section, .content-section { padding-left: 1.25rem; padding-right: 1.25rem; }
    section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .section-title { font-size: 2.1rem; }
    .services-grid, .benefits-grid, .two-column { grid-template-columns: 1fr; gap: 1.5rem; }
    .cta-section { margin: 2.5rem 1.25rem; padding: 3rem 1.5rem; border-radius: 6px; }
    .cta-section h2, .cta-section h3 { font-size: 2rem; }
    .cta-button, .cta-button-secondary { display: block; width: 100%; text-align: center; margin: 0 0 0.75rem; }
    .hero .cta-button + .cta-button-secondary, .hero .cta-button + .cta-button { margin-left: 0; }
    .service-card .cta-button { align-self: stretch; }
    .price { font-size: 2.6rem; }
    .faq-question { font-size: 1.2rem; padding: 1.1rem 1.25rem; }
    .comparison-table th, .comparison-table td { padding: 0.75rem 0.8rem; font-size: 0.9rem; }
    .credentials, .location-contact, .content-box { padding: 1.75rem 1.5rem; }
    .areas-grid { grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; }
    .trust-bar { padding: 2rem 1.25rem; }
    .trust-logos { gap: 1.5rem; flex-wrap: nowrap; }
    .trust-logo { height: 38px; }
}
@media (max-width: 380px) {
    .trust-logos { gap: 1rem; }
    .trust-logo { height: 32px; }
}
