/* =====================================
   PULICKAL HOMEOPATHY
   MAIN WEBSITE STYLES
===================================== */

:root {
    --green: #176b55;
    --dark: #173d34;
    --mint: #eaf5ee;
    --cream: #f7faf7;
    --text: #263a35;
    --muted: #657a73;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, 'Noto Sans Malayalam', sans-serif;
    color: var(--text);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1160px;
    margin: auto;
    padding: 0 24px;
}

/* =====================================
   HEADER AND NAVIGATION
===================================== */

.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px #133f3010;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 88px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
}

.brand b {
    display: block;
    color: var(--green);
}

.brand small {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-top: 6px;
    color: var(--muted);
}

.brand-icon {
    background: var(--mint);
    color: var(--green);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 28px;
}

nav {
    display: flex;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
}

nav a:hover,
.text-link,
.service-card a {
    color: var(--green);
}

.nav-actions,
.hero-actions,
.hero-notes {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang {
    background: transparent;
    border: 1px solid #cadbd3;
    border-radius: 8px;
    padding: 9px;
    cursor: pointer;
    color: var(--dark);
}

/* =====================================
   BUTTONS
===================================== */

.btn {
    background: var(--green);
    color: white;
    border: 2px solid var(--green);
    padding: 13px 23px;
    border-radius: 9px;
    display: inline-block;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background: #10533f;
}

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

.btn-outline:hover {
    color: #ffffff;
}

.btn-small {
    padding: 9px 14px;
    font-size: 13px;
}

/* =====================================
   HERO SECTION
===================================== */

.hero {
    background: linear-gradient(120deg, #f5faf5, #e6f3ec);
    overflow: hidden;
}

.hero-grid {
    min-height: 570px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
    padding-top: 55px;
    padding-bottom: 55px;
}

.eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--dark);
    margin: 18px 0 20px;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 590px;
}

.hero-actions {
    margin: 28px 0;
}

.hero-notes {
    gap: 22px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--green);
}

/* =====================================
   DOCTOR ILLUSTRATION
===================================== */

.hero-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.doctor-art {
    width: 340px;
    height: 360px;
    border-radius: 180px 180px 26px 26px;
    background: #c9e7d7;
    position: relative;
    overflow: hidden;
}

.circle {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 2px solid #ffffff70;
    border-radius: 50%;
    top: 25px;
    left: 40px;
}

.figure {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 235px;
    height: 310px;
}

.head {
    position: absolute;
    top: 47px;
    left: 76px;
    width: 87px;
    height: 115px;
    background: #dba98e;
    border-radius: 45% 45% 48% 48%;
    z-index: 2;
}

.hair {
    position: absolute;
    top: 24px;
    left: 63px;
    width: 115px;
    height: 128px;
    background: #34302e;
    border-radius: 60px 60px 35px 35px;
}

.body {
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 180px;
    height: 175px;
    background: #6c9e8c;
    border-radius: 80px 80px 0 0;
}

.coat {
    position: absolute;
    bottom: 0;
    left: 6px;
    width: 223px;
    height: 160px;
    background: linear-gradient(
        110deg,
        #fff 0 48%,
        #e9f2ed 48%
    );
    clip-path: polygon(
        19% 0,
        42% 20%,
        50% 63%,
        60% 20%,
        82% 0,
        100% 100%,
        0 100%
    );
}

.stetho {
    position: absolute;
    bottom: 70px;
    left: 101px;
    width: 37px;
    height: 65px;
    border: 4px solid #32695d;
    border-top: 0;
    border-radius: 0 0 24px 24px;
}

.hero-tag {
    position: absolute;
    right: 0;
    bottom: 18px;
    background: white;
    box-shadow: 0 15px 45px #143e3020;
    border-radius: 14px;
    padding: 16px 24px;
}

.hero-tag strong,
.hero-tag span {
    display: block;
}

.hero-tag span {
    font-size: 12px;
    color: var(--muted);
}

/* =====================================
   GENERAL SECTIONS
===================================== */

.section {
    padding: 90px 0;
    scroll-margin-top: 85px;
}

.tinted {
    background: var(--cream);
}

h2 {
    font-family: Georgia, serif;
    font-size: clamp(29px, 3.2vw, 43px);
    line-height: 1.2;
    color: var(--dark);
    margin: 13px 0 18px;
}

h3 {
    color: var(--dark);
}

p {
    color: var(--muted);
}

.split,
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

/* =====================================
   ABOUT SECTION
===================================== */

.about-tile {
    min-height: 350px;
    background: linear-gradient(145deg, #b4d7c2, #edf6ec);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dark);
}

.about-mark {
    font-size: 70px;
    color: var(--green);
}

.about-tile h2 {
    font-family: Arial, sans-serif;
    font-size: 35px;
    letter-spacing: 0.08em;
}

.muted {
    color: var(--muted);
}

.center {
    text-align: center;
}

/* =====================================
   SERVICE CARDS
===================================== */

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 38px;
}

.service-card {
    background: #fff;
    border: 1px solid #e0ebe4;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 9px 28px #123d2e0a;
}

.service-icon {
    background: var(--mint);
    color: var(--green);
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 31px;
}

.service-card a {
    font-weight: 700;
}

/* =====================================
   BOOKING FORM
===================================== */

.booking-grid {
    align-items: start;
}

.notice {
    background: #fff5e9;
    border-left: 4px solid #b9844c;
    padding: 16px 20px;
    border-radius: 6px;
    color: #79562c;
    font-size: 14px;
    margin-top: 26px;
}

.booking-form {
    background: #fff;
    border: 1px solid #e2eee6;
    border-radius: 17px;
    padding: 32px;
    box-shadow: 0 15px 55px #123e3012;
}

.booking-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 17px;
}

.booking-form label > span {
    display: block;
    margin-bottom: 7px;
}

.booking-form input:not([type=checkbox]),
.booking-form select,
.booking-form textarea {
    width: 100%;
    border: 1px solid #cbdcd2;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    background: white;
    color: var(--text);
}

.booking-form input:focus,
.booking-form textarea:focus {
    outline: 2px solid #8bcbb0;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-form .consent {
    display: flex;
    gap: 10px;
    align-items: start;
    font-weight: 400;
}

.consent input {
    margin-top: 5px;
}

.consent span {
    margin: 0 !important;
}

.full {
    width: 100%;
}

.form-note {
    font-size: 12px;
    text-align: center;
}

/* =====================================
   FOOTER
===================================== */

footer {
    background: var(--dark);
    padding: 30px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    color: #fff;
}

.footer p {
    color: #d4e4db;
    font-size: 13px;
}

/* =====================================
   TOAST NOTIFICATIONS
===================================== */

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--green);
    color: white;
    padding: 16px 22px;
    border-radius: 9px;
    z-index: 20;
    max-width: 420px;
    box-shadow: 0 10px 40px #0003;
}

.toast.error {
    background: #9c3e34;
}

/* =====================================
   LOGO AND HEADER CORRECTIONS
===================================== */

.site-header .nav {
    min-height: 95px;
}

.site-header .brand {
    flex-shrink: 0;
}

.site-logo {
    display: block;
    width: 280px;
    height: 85px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}

.site-header nav a:hover {
    color: var(--green);
}

/* =====================================
   WHATSAPP BUTTON - NEW
===================================== */

.wa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background-color: #25D366;
    color: #ffffff !important;

    padding: 9px 15px;
    border: 1px solid #1fa855;
    border-radius: 8px;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.wa-button:hover {
    background-color: #128C7E;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.22);
}

.wa-button:focus-visible {
    outline: 3px solid #176b55;
    outline-offset: 3px;
}

.wa-button:active {
    background-color: #0f756a;
}

/* =====================================
   ADMIN TABLE IMPROVEMENTS - NEW
===================================== */

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    min-width: 900px;
}

.table-scroll th,
.table-scroll td {
    vertical-align: middle;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */

@media (max-width: 1000px) {

    .site-header nav,
    nav {
        display: none;
    }

    .hero-grid {
        gap: 25px;
    }
}

@media (max-width: 750px) {

    .wrap {
        padding: 0 18px;
    }

    .nav {
        min-height: 72px;
    }

    .brand {
        font-size: 13px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero-grid,
    .split,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-grid {
        padding-top: 55px;
    }

    .hero-visual {
        min-height: 340px;
    }

    .doctor-art {
        transform: scale(0.85);
    }

    .hero-tag {
        right: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .cards,
    .two {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 22px;
    }

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

    .hero-notes {
        gap: 12px;
    }

    /* Mobile logo */

    .site-logo {
        width: 170px;
        height: 65px;
    }

    .site-header .nav {
        min-height: 75px;
    }

    /* Mobile WhatsApp button */

    .wa-button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* =====================================
   WHATSAPP ACTION BUTTONS
===================================== */

.whatsapp-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.wa-patient {
    background-color: #176b55;
    border-color: #176b55;
}

.wa-patient:hover {
    background-color: #10533f;
    color: #ffffff;
}

.wa-unavailable {
    color: #a04436;
    font-size: 12px;
}
