/**
 * Darjibhai – Full-width professional landing
 * Header, footer & CTA – alternate UI
 */

/* --- Variables --- */
:root, .body-crm {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #475569;
    --accent: #b45309;
    --accent-light: #d97706;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
}

.cursor1, .cursor2 { display: none !important; }

.body-wrapper.body-crm { background-color: var(--bg); }

/* --- Full width container --- */
.landing-fullwidth .landing-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .landing-fullwidth .landing-container { padding-left: 2rem; padding-right: 2rem; }
}

/* --- Header: full width bar, dark --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
}

.site-header .site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-height: 64px;
    padding: 1rem 1.5rem;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
}

@media (min-width: 768px) {
    .site-header .site-header__bar { padding: 0.75rem 2rem; }
}

.site-header .site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

/* Same logo as footer: 38px height, no filter */
.site-header .site-header__logo-img {
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.site-header .site-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header .site-header__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.site-header .site-header__nav a:hover { color: var(--accent); }

.site-header .site-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header .site-header__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.site-header .site-header__phone i { color: var(--accent); }

.site-header .site-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-header .site-header__cta:hover { background: var(--accent-light); color: var(--white); }

.site-header .site-header__toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary);
    cursor: pointer;
}

/* Sticky: fix header to top on scroll */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.site-header.sticky .site-header__bar { box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08); }

/* Prevent content jump when header becomes fixed */
body:has(.site-header.sticky) .landing-main { padding-top: 64px; }

@media (max-width: 991px) {
    .site-header .site-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem 1.5rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.2);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }
    .site-header .site-header__nav.is-open { transform: translateX(0); }
    .site-header .site-header__actions .site-header__phone span { display: none; }
    .site-header .site-header__toggle { display: block; }
}

@media (max-width: 575px) {
    .site-header .site-header__cta { padding: 0.5rem 1rem; font-size: 0.875rem; }
}

/* --- Typography --- */
.landing-main {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.landing-section__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-section__label::before {
    content: "";
    width: 4px;
    height: 1rem;
    background: var(--accent);
    border-radius: 2px;
}

.landing-section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.landing-section__sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

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

.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); }

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

.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn--light {
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}

.btn--light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover { background: var(--bg); color: var(--primary); }

/* --- Hero: full width --- */
.landing-hero {
    width: 100%;
    padding: clamp(6rem, 14vw, 10rem) 1.5rem clamp(5rem, 12vw, 7rem);
    text-align: center;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
}

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

.landing-hero__label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.landing-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.landing-hero__line {
    width: 48px;
    height: 3px;
    background: var(--accent-light);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.landing-hero__text {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --- About: full width 50/50 --- */
.landing-about {
    width: 100%;
    padding: 0;
}

.landing-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

@media (max-width: 991px) {
    .landing-about__grid { grid-template-columns: 1fr; min-height: auto; }
}

.landing-about__image-wrap {
    background: var(--bg-alt);
    overflow: hidden;
}

@media (min-width: 992px) {
    .landing-about__image-wrap { border-radius: 0 12px 12px 0; }
}

.landing-about__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-about__content {
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-about__lead {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.landing-about__body {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* --- Services: full width grid --- */
.landing-services {
    width: 100%;
    padding: clamp(4rem, 10vw, 6rem) 0;
    background: var(--white);
}

.landing-section__head { margin-bottom: 2.5rem; }

.landing-section__head .landing-section__title { margin-bottom: 0.5rem; }

.landing-section__head .landing-section__sub { margin-bottom: 0; }

.landing-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .landing-services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .landing-services__grid { grid-template-columns: 1fr; }
}

.landing-card {
    display: block;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.landing-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.landing-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(180, 83, 9, 0.12);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.landing-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.375rem;
}

.landing-card__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Process --- */
.landing-process {
    width: 100%;
    padding: clamp(4rem, 10vw, 6rem) 0;
    background: var(--bg-alt);
}

.landing-process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .landing-process__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .landing-process__steps { grid-template-columns: 1fr; gap: 1rem; }
}

.landing-process__item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-process__item:hover {
    border-color: rgba(180, 83, 9, 0.3);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.landing-process__num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.landing-process__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.landing-process__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- CTA: new design – horizontal strip with icon, text, phone, WhatsApp, button --- */
.landing-cta {
    width: 100%;
    padding: 0;
}

.landing-cta__strip {
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 2rem 1.5rem;
}

.landing-cta__content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .landing-cta__content { flex-direction: column; text-align: center; }
}

.landing-cta__left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 991px) {
    .landing-cta__left { flex-direction: column; }
}

.landing-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.landing-cta__title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.25rem 0;
}

.landing-cta__text {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
}

.landing-cta__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 991px) {
    .landing-cta__right { justify-content: center; }
}

.landing-cta__phone,
.landing-cta__wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.landing-cta__phone:hover,
.landing-cta__wa:hover { background: var(--primary); color: var(--white); }

.landing-cta__strip .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.landing-cta__strip .btn-primary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* --- Footer: new UI – light bar + bottom --- */
.landing-footer {
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.landing-footer__top {
    width: 100%;
    padding: 2rem 0;
}

.landing-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .landing-footer__inner { padding-left: 2rem; padding-right: 2rem; }
}

.landing-footer__logo img {
    height: 38px;
    width: auto;
    display: block;
}

.landing-footer__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-footer__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer__nav a:hover { color: var(--accent); }

.landing-footer__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
}

.landing-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.landing-footer__social a:hover { background: var(--accent); color: var(--white); }

.landing-footer__bottom {
    width: 100%;
    padding: 1rem 0;
    background: var(--bg-alt);
}

.landing-footer__bottom .landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.landing-footer__bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

.landing-footer__bottom-inner {
    max-width: 1280px;
}

@media (max-width: 767px) {
    .landing-footer__inner { flex-direction: column; text-align: center; }
    .landing-footer__nav { order: 2; }
    .landing-footer__social { order: 3; }
}

/* --- Legacy / modals --- */
.body-crm .wc-btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.body-crm .wc-btn-primary:hover {
    background: var(--accent-light);
    color: var(--white);
    border-color: var(--accent-light);
}

.form-box-wrapper .title { color: var(--primary); }

.register-form-box .social-links a:hover,
.login-form-box .social-links a:hover { color: var(--accent); }

/* --- Preloader: professional --- */
.landing-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.landing-preloader.loaded,
body:has(#container.loaded) .landing-preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-preloader__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.landing-preloader__content {
    text-align: center;
}

.landing-preloader__logo {
    margin-bottom: 1.5rem;
}

.landing-preloader__logo img {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.landing-preloader__spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: landing-preloader-spin 0.8s linear infinite;
}

@keyframes landing-preloader-spin {
    to { transform: rotate(360deg); }
}

.landing-preloader__text {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* --- Scroll to top: new UI --- */
.progress-wrap.landing-scroll-top {
    width: 48px;
    height: 48px;
    right: 1.5rem;
    bottom: 1.5rem;
    border-radius: 12px;
    background: var(--primary);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s;
}

.progress-wrap.landing-scroll-top:hover {
    background: var(--accent);
}

.progress-wrap.landing-scroll-top .progress-circle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.progress-wrap.landing-scroll-top svg path {
    fill: transparent !important;
    stroke: rgba(255,255,255,0.25) !important;
    stroke-width: 3;
}

.progress-wrap.landing-scroll-top .landing-scroll-top__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--white);
}

.progress-wrap.landing-scroll-top::after {
    display: none;
}

/* --- Book Appointment modal --- */
.booking-modal .modal-dialog {
    max-width: 520px;
}

.booking-modal__content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.booking-modal__header {
    position: relative;
    padding: 1.5rem 1.5rem 0.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.booking-modal__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem 0;
}

.booking-modal__subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

.booking-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.booking-modal__close:hover {
    background: var(--border);
    color: var(--primary);
}

.booking-modal__body {
    padding: 1.5rem;
    background: var(--white);
}

.booking-form__message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.booking-form__message--success {
    background: #dcfce7;
    color: #166534;
}

.booking-form__message--success i { font-size: 1.25rem; flex-shrink: 0; }

.booking-form__message--error {
    background: #fee2e2;
    color: #991b1b;
}

.booking-form__message--error i { font-size: 1.25rem; flex-shrink: 0; }

.booking-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .booking-form__grid { grid-template-columns: 1fr; }
}

.booking-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.booking-form__field--full { grid-column: 1 / -1; }

.booking-form__field label,
.booking-form__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.booking-form__field input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.2s;
}

.booking-form__field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.booking-form__radios {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-form__radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.booking-form__radio input { width: auto; accent-color: var(--accent); }

.booking-form__actions {
    margin-top: 0.5rem;
}

.booking-form__actions .btn--block { width: 100%; }

/* Email fields: show lowercase in the UI (text-transform is visual; blur/submit JS still sets the real value). */
#book-appointment-modal-form input[type="email"],
#book-appointment-form input[type="email"] {
    text-transform: lowercase;
}

.booking-modal__social {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.booking-modal__social-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
}

.booking-modal__social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}

.booking-modal__social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.booking-modal__social-list a:hover {
    background: var(--accent);
    color: var(--white);
}
