/* =========================================================
   THE THEKEDAR STORE
   COMPLETE SITE STYLESHEET
   Blue + Metallic Silver Brand System
========================================================= */

/* ==============================
   RESET
============================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #172033;
    background: #ffffff;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: #1f4ed8;
}


/* ==============================
   NAVBAR
============================== */

.navbar {
    width: 100%;
    min-height: 72px;
    padding: 14px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    color: #1f4ed8;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo strong {
    font-size: 20px;
    color: #172033;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #1f4ed8;
}

.nav-button {
    display: inline-block;
    text-decoration: none;
    background: #1f4ed8;
    color: white;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s;
    flex-shrink: 0;
}

.nav-button:hover {
    transform: translateY(-2px);
    background: #1740ad;
}


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

.hero {
    min-height: 650px;
    padding: 80px 6%;
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(120deg, #f5f8ff, #ffffff);
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-tag {
    color: #1f4ed8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.05;
    margin-bottom: 25px;
    color: #111827;
}

.hero-text {
    max-width: 550px;
    font-size: 18px;
    color: #5b6475;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.primary-button {
    background: #1f4ed8;
    color: white;
}

.primary-button:hover {
    background: #1740ad;
    transform: translateY(-2px);
}

.secondary-button {
    color: #1f4ed8;
    border: 1px solid #1f4ed8;
    background: white;
}

.secondary-button:hover {
    background: #1f4ed8;
    color: white;
    transform: translateY(-2px);
}

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #4b5563;
}

.trust-points strong {
    color: #1f4ed8;
}

.hero-image {
    flex: 1;
    min-width: 0;
}

.hero-placeholder {
    min-height: 420px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f4ed8, #aeb7c7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px;
}


/* ==============================
   HERO VISUAL
============================== */

.hero-visual {
    min-height: 460px;
    border-radius: 18px;
    background: linear-gradient(145deg, #1f4ed8 0%, #1740ad 55%, #aeb7c7 100%);
    position: relative;
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    right: -70px;
    top: -70px;
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    left: -60px;
    bottom: -60px;
}

.visual-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.visual-content {
    position: relative;
    z-index: 2;
}

.visual-content span {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.visual-content strong {
    display: block;
    font-size: 48px;
    line-height: 1.05;
}

.visual-card {
    position: absolute;
    z-index: 3;
    bottom: 25px;
    right: 25px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.95);
    color: #172033;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.visual-card strong {
    font-size: 28px;
    color: #1f4ed8;
}

.visual-card span {
    font-size: 12px;
    color: #687386;
}


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

.section {
    padding: 90px 6%;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 55px;
}

.section-heading p {
    color: #1f4ed8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 40px;
    line-height: 1.15;
    margin: 8px 0 12px;
}

.section-heading span {
    color: #687386;
}


/* ==============================
   SERVICES
============================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    min-height: 245px;
    padding: 28px;
    border: 1px solid #e2e6ed;
    border-radius: 10px;
    background: white;
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #1f4ed8;
    box-shadow: 0 10px 30px rgba(31, 78, 216, 0.10);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.service-card p {
    color: #687386;
    margin-bottom: 20px;
}

.service-card a {
    display: inline-block;
    color: #1f4ed8;
    text-decoration: none;
    font-weight: bold;
}


/* ==============================
   HOW IT WORKS
============================== */

.how-section {
    background: #f5f8ff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #1f4ed8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(31, 78, 216, 0.20);
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: #687386;
}


/* ==============================
   WHY US
============================== */

.why-section {
    padding: 90px 6%;
    display: flex;
    gap: 70px;
    align-items: center;
}

.why-content {
    flex: 1;
    min-width: 0;
}

.why-content > p:first-child {
    color: #1f4ed8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.why-content h2 {
    font-size: 42px;
    line-height: 1.15;
    margin: 12px 0 20px;
}

.why-text {
    color: #687386;
    max-width: 500px;
}

.why-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-grid > div {
    padding: 25px;
    border: 1px solid #e2e6ed;
    border-radius: 10px;
    background: white;
}

.why-grid strong {
    color: #1f4ed8;
    font-size: 25px;
}

.why-grid h3 {
    margin: 8px 0;
}

.why-grid p {
    color: #687386;
    font-size: 14px;
}


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

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    background: #f5f8ff;
}

.about-section > div:first-child p {
    color: #1f4ed8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.about-section h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-top: 10px;
}

.about-section > div:last-child p {
    color: #5f6979;
    margin-bottom: 18px;
}


/* ==============================
   COMING SOON
============================== */

.coming-soon {
    margin: 35px 6%;
    padding: 35px 40px;
    border-radius: 12px;
    background: linear-gradient(120deg, #172033, #1f4ed8, #aeb7c7);
    color: white;
    text-align: center;
}

.coming-soon-tag {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.coming-soon h2 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.coming-soon p {
    max-width: 650px;
    margin: 0 auto 15px;
    color: #e5e7eb;
}

.coming-soon span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}


/* ==============================
   CTA
============================== */

.cta-section {
    padding: 90px 6%;
    text-align: center;
    background: linear-gradient(135deg, #1f4ed8, #aeb7c7);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    top: -150px;
    right: -80px;
}

.cta-section h2,
.cta-section p,
.cta-section a {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.cta-section p {
    margin-bottom: 25px;
}

.cta-section .primary-button {
    background: white;
    color: #1f4ed8;
}


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

footer {
    padding: 55px 6%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    background: #111827;
    color: white;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
}

.footer-logo p {
    margin-top: 12px;
    max-width: 260px;
    color: #b9c1ce;
    font-size: 14px;
    font-weight: normal;
}

footer h3 {
    margin-bottom: 15px;
}

footer a,
footer span {
    display: block;
    color: #b9c1ce;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

footer a:hover {
    color: white;
}


/* =========================================================
   GENERIC FORM / ADMIN PAGES
   Used by auth, booking, supplier and admin pages
========================================================= */

.container {
    width: 92%;
    max-width: 620px;
    margin: 50px auto;
    padding: 35px;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 30px rgba(23, 32, 51, 0.06);
}

.container h1 {
    color: #172033;
    margin-bottom: 20px;
    line-height: 1.2;
}

.container h2 {
    color: #172033;
    margin: 20px 0 15px;
}

.container p {
    color: #5f6979;
}

.container label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #172033;
}

.container input,
.container textarea,
.container select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd5df;
    border-radius: 6px;
    font-size: 15px;
    color: #172033;
    background: #ffffff;
    outline: none;
}

.container textarea {
    min-height: 90px;
    resize: vertical;
}

.container input:focus,
.container textarea:focus,
.container select:focus {
    border-color: #1f4ed8;
    box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.10);
}

.container button {
    border: none;
    border-radius: 6px;
    background: #1f4ed8;
    color: white;
    padding: 12px 18px;
    font-weight: bold;
    transition: 0.2s;
}

.container button:hover {
    background: #1740ad;
    transform: translateY(-1px);
}

.container hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 25px 0;
}


/* ==============================
   AUTH PAGE
============================== */

body:has(#authForm) {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f7fc, #ffffff);
}

body:has(#authForm) .container {
    max-width: 460px;
    margin: 70px auto;
    padding: 40px;
    border: 1px solid #dce3ee;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(23, 32, 51, 0.10);
}

body:has(#authForm) .container h1 {
    color: #172033;
    font-size: 32px;
    margin-bottom: 10px;
}

body:has(#authForm) .container > p {
    color: #687386;
    margin-bottom: 25px;
}

body:has(#authForm) .container input {
    height: 46px;
}

body:has(#authForm) .button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

body:has(#authForm) .button-group button {
    flex: 1;
    height: 46px;
    padding: 10px;
    background: #1f4ed8;
}

body:has(#authForm) .button-group button:hover {
    background: #1740ad;
    transform: translateY(-2px);
}

body:has(#authForm) .container a {
    color: #1f4ed8;
    font-weight: 600;
}


/* ==============================
   TABLES
============================== */

.container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    font-size: 14px;
}

.container th,
.container td {
    padding: 10px 8px;
    border: 1px solid #d8dee8;
    text-align: left;
    vertical-align: middle;
}

.container th {
    background: #f5f8ff;
    color: #172033;
    font-weight: bold;
}

.container td a {
    color: #1f4ed8;
    font-weight: bold;
    text-decoration: none;
}

.container td a:hover {
    text-decoration: underline;
}


/* ==============================
   BUTTON GROUPS / ACTIONS
============================== */

.container .button-group {
    display: flex;
    gap: 10px;
}

.container .button-group button {
    flex: 1;
}

#backButton,
#logoutButton,
#viewBookingsButton {
    margin-top: 5px;
}

#logoutButton {
    background: #172033;
}

#logoutButton:hover {
    background: #111827;
}


/* ==============================
   MOBILE / TABLET
============================== */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding-top: 55px;
    }

    .hero-content,
    .hero-image {
        width: 100%;
    }

    .hero h1 {
        font-size: 46px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-section {
        flex-direction: column;
        align-items: stretch;
    }

    .why-content,
    .why-grid {
        width: 100%;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==============================
   MOBILE
============================== */

@media (max-width: 600px) {

    body {
        overflow-x: hidden;
    }

    .navbar {
        min-height: 64px;
        padding: 12px 5%;
        gap: 12px;
    }

    .logo strong {
        font-size: 18px;
    }

    .nav-button {
        padding: 9px 14px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 50px 5%;
        gap: 35px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .hero-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .trust-points {
        gap: 10px;
        flex-direction: column;
    }

    .hero-visual {
        min-height: 360px;
        padding: 25px;
    }

    .visual-content strong {
        font-size: 38px;
    }

    .visual-badge {
        top: 18px;
        right: 18px;
    }

    .visual-card {
        right: 18px;
        bottom: 18px;
        padding: 14px 16px;
    }

    .visual-card strong {
        font-size: 24px;
    }

    .section {
        padding: 65px 5%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .service-grid,
    .steps,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .why-section {
        padding: 65px 5%;
        gap: 35px;
    }

    .why-content h2 {
        font-size: 34px;
    }

    .about-section h2 {
        font-size: 34px;
    }

    .cta-section {
        padding: 65px 5%;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .coming-soon {
        margin: 25px 5%;
        padding: 30px 20px;
    }

    .coming-soon h2 {
        font-size: 26px;
    }

    footer {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 45px 5%;
    }

    /* Generic pages */

    .container {
        width: 92%;
        margin: 30px auto;
        padding: 25px 20px;
        border-radius: 10px;
    }

    .container h1 {
        font-size: 28px;
    }

    .container h2 {
        font-size: 22px;
    }

    .container button {
        width: 100%;
    }

    .container .button-group {
        flex-direction: column;
    }

    /* Tables can scroll horizontally on mobile */

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

    .container table {
        width: 100%;
        min-width: 650px;
        font-size: 13px;
    }

    /* Auth */

    body:has(#authForm) .container {
        width: 92%;
        margin: 30px auto;
        padding: 28px 20px;
    }

    body:has(#authForm) .container h1 {
        font-size: 28px;
    }

    body:has(#authForm) .button-group {
        flex-direction: column;
    }

    body:has(#authForm) .button-group button {
        width: 100%;
    }
}


/* ==============================
   VERY SMALL PHONES
============================== */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 34px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .coming-soon h2 {
        font-size: 24px;
    }

    .container {
        width: 94%;
        padding: 22px 16px;
    }

    body:has(#authForm) .container {
        width: 94%;
        padding: 24px 16px;
    }
}
