/* =========================================
   EPF REFINED DESIGN SYSTEM
   Premium upgrades applied
   ========================================= */

:root {
    --bg: #ffffff;
    --bg-warm: #f8f8f6;
    --text: #1D1D1F;
    --text-secondary: #444;
    --text-muted: #666;
    --accent-deep: #0A1628;
    --border-soft: #e8e8e6;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: "Cormorant Garamond", "Georgia", serif;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: var(--bg);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 500;
    color: #1D1D1F;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

p {
    font-size: 17px;
    line-height: 1.7;
}

strong {
    font-weight: 500;
    color: var(--text);
}

/* ========== HEADER ========== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 80px;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.logo-area a {
    display: block;
}

.logo {
    height: 28px;
    width: auto;
    display: block;
}

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

.main-nav a {
    margin-left: 36px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-deep);
}

/* EPF Button - signature style */
.epf-btn {
    position: relative;
    display: inline-block;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border: 1px solid var(--text-secondary);
    border-top: none;
    border-bottom: none;
    transition: transform 0.3s ease;
}

.epf-btn:hover {
    transform: translateX(4px);
    color: var(--text-secondary);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-secondary);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
    .site-header {
        padding: 0.8rem 24px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-soft);
    }
    
    .main-nav.is-open {
        display: flex;
    }
    
    .main-nav a {
        margin: 0;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-soft);
        font-size: 16px;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
        margin-top: 10px;
    }
    
    .main-nav .epf-btn {
        text-align: center;
        padding: 14px 20px;
        min-height: 44px;
    }
}

/* Touch Target Sizing */
@media (max-width: 768px) {
    .hero-cta,
    .epf-btn,
    .fees-cta,
    .contact-cta,
    .case-button,
    .case-card__link,
    .testimonial-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero--london-search {
    min-height: 52vh;
}

.hero--london-search .hero__image,
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-home-mews-wisteria.jpg");
    background-size: cover;
    background-position: center;
}

.hero__image::before,
.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.55));
}

.hero--london-search .hero__overlay,
.hero__content {
    position: relative;
    text-align: center;
    padding: 60px 24px;
    max-width: 720px;
}

.hero--london-search .hero__title,
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    color: #fff !important;
}

.hero--london-search .hero__subtitle,
.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin: 0 0 28px;
    opacity: 0.9;
    color: #fff !important;
}

.hero-cta {
    display: inline-block;
    border: 1px solid #fff;
    border-top: none;
    border-bottom: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: transform 0.4s ease;
}

.hero-cta:hover {
    transform: translateY(-6px);
}

/* Page-specific hero images */
.hero--why .hero__image {
    background-image: url("../images/hero-why.jpg");
}

.hero--how .hero__image {
    background-image: url("../images/hero-how.jpg");
}

.hero--international .hero__image {
    background-image: url("../images/hero-international.jpg");
}

@media (max-width: 768px) {
    .hero--london-search,
    .hero {
        min-height: 380px;
    }

    .hero--london-search .hero__title,
    .hero__title {
        font-size: 2rem;
    }

    .hero--london-search .hero__subtitle,
    .hero__subtitle {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }
}

/* ========== SECTIONS ========== */
.section {
    padding: 48px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.section:last-of-type {
    border-bottom: none;
}

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

.section-two-panel {
    padding: 48px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.section-two-panel:first-of-type {
    padding-top: 56px;
}

.section-two-panel:last-of-type {
    border-bottom: none;
}

.section-two-panel__title {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 2.8vw, 2.1rem);
    font-weight: 500;
    text-align: left;
    max-width: 540px;
    margin: 0 auto 36px;
    color: #1D1D1F;
    letter-spacing: -0.01em;
}

.section-why {
    max-width: 540px;
    margin: 0 auto;
    text-align: left;
}

.section-why p {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 22px;
}

.section-why p:last-child {
    margin-bottom: 0;
}

.section-why p strong {
    color: #1D1D1F;
    font-weight: 600;
}

.section-link {
    display: block;
    margin-top: 28px;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--text);
}

.section-why ul {
    margin: 28px 0;
    padding: 0;
    text-align: left;
    list-style: none;
}

.section-why ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.section-why ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #999;
}

.section-why .label-line {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto 16px;
    text-align: left;
}

.section-why .label-line strong {
    min-width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 900px) {
    .section-two-panel {
        padding: 48px 20px;
    }
    
    .section-two-panel:first-of-type {
        padding-top: 56px;
    }
    
    .section-two-panel__title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }
    
    .section-why {
        max-width: 100%;
    }
    
    .section-why p {
        font-size: 16px;
    }
}

/* ========== CASE STUDIES ========== */
.case-studies {
    padding: 48px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.case-studies .container {
    max-width: 1000px;
    margin: 0 auto;
}

.case-studies-header {
    text-align: center;
    margin-bottom: 40px;
}

.case-studies-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 500;
    margin: 0 0 16px;
    color: #1D1D1F;
}

.case-studies-header p {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

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

.case-card {
    text-align: left;
}

.case-card-body {
    display: flex;
    flex-direction: column;
}

/* Case study images */
.case-card-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 6px;
}

.case-card-body .image-note {
    font-size: 11px;
    color: #999;
    margin: 0 0 16px;
}

.case-card-body .case-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: #1D1D1F;
    margin: 0 0 6px;
    line-height: 1.3;
}

.case-card-body .case-heading + .case-heading {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.case-summary {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 14px;
    flex-grow: 1;
}

.case-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.case-button {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    border: none;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.case-button:hover {
    color: var(--text);
    transform: none;
}

@media (max-width: 800px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ========== TESTIMONIAL ========== */
.testimonial-section,
.reviews-section {
    background: var(--bg-warm);
    padding: 56px 24px;
    text-align: center;
    border-bottom: none;
}

.testimonial-inner,
.reviews-section .container {
    max-width: 680px;
    margin: 0 auto;
}

.testimonial-quote,
.review-text {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-style: italic;
    line-height: 1.55;
    color: #1D1D1F;
    margin: 0 0 24px;
}

.testimonial-cite,
.review-meta {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.review-name {
    display: block;
}

.review-location {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.testimonial-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.testimonial-link:hover {
    color: var(--text);
}

/* Hide carousel elements - use single testimonial */
.reviews-slider {
    position: relative;
}

.reviews-track {
    max-width: 680px;
    margin: 0 auto;
}

.review {
    display: none;
}

.review.is-active {
    display: block;
}

.reviews-arrow,
.reviews-dots {
    display: none;
}

.reviews-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 500;
    margin: 0 0 32px;
    color: #1D1D1F;
}

/* ========== CONTACT CTA ========== */
.epf-contact {
    text-align: center;
    padding: 48px 24px;
    border-bottom: none;
}

.epf-contact h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 500;
    margin: 0 0 24px;
    color: #1D1D1F;
}

.epf-contact .epf-btn {
    font-size: 14px;
    padding: 12px 24px;
}

.epf-contact-primary {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}

.epf-contact-secondary {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 20px;
}

/* ========== FOOTER (DARK) ========== */
.site-footer {
    background: var(--accent-deep);
    color: rgba(255,255,255,0.75);
    padding: 48px 24px;
    text-align: center;
    border-top: none;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}

.site-footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

.footer-logo {
    height: 22px;
    margin-bottom: 20px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer-established {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 16px;
}

.footer-address {
    font-size: 13px;
    opacity: 0.6;
    margin: 12px 0;
}

/* ========== UTILITY ========== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    .hero-cta,
    .case-button,
    .epf-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========== HEADER CONTACT ========== */
.header-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: 32px;
}

.header-contact a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-contact a:hover {
    color: var(--text);
}

.header-phone {
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .header-contact {
        display: none;
    }
}

/* ========== FOOTER CONTACT ========== */
.footer-contact {
    margin: 20px 0;
}

.footer-contact a {
    display: inline-block;
    margin: 0 12px;
    font-size: 14px;
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-float svg {
    width: 56px;
    height: 56px;
    fill: #444;
    transition: fill 0.2s ease;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-float svg {
        width: 48px;
        height: 48px;
    }
}
