/* =========================================================
   website.css — Shared website styles
   Source: resources/views/website/layouts/app.blade.php,
           website/layouts/header.blade.php,
           website/layouts/footer.blade.php
   ========================================================= */

/* ===== Base (layouts/app.blade.php) ===== */
:root {
    --bg: #F7F4EF;
    --card: #FFFFFF;
    --border: #ECE7DD;
    --text: #1E2430;
    --muted: #8D93A3;
    --brown: #8B5E3C;
    --brown-soft: #F3E7DC;
    --purple: #7B5FC4;
    --purple-soft: #ECE7FA;
    --green: #2E8B57;
    --green-soft: #E1F2E8;
    --orange: #E0912F;
    --orange-soft: #FBEBD8;
    --shadow: 0 1px 2px rgba(30,36,48,0.04), 0 8px 24px rgba(30,36,48,0.04);
}
* { margin:0; padding:0; box-sizing:border-box; }
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display:flex; flex-direction:column;
}

/* Modern Sleek Scrollbar (Prevents bulky grey scrollbar next to side buttons) */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #8c5a47;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a66f5a;
}
h1, h2, .brand-text, .cat-name, .stat-value { font-family:'Plus Jakarta Sans', sans-serif; }

/* Header */
header {
    position: sticky; top:0; z-index:50;
    display:flex; align-items:center; justify-content:space-between;
    padding: 16px 6%;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}
.brand { display:flex; align-items:center; gap:12px; }
.logo-mark {
    width: 48px; height: 48px; min-width: 48px; min-height: 48px;
    border-radius: 50%; overflow: hidden;
    display:flex; align-items:center; justify-content:center;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.logo-mark img {
    width: 100%; height: 100%;
    display: block; object-fit: contain;
    border-radius: 50%;
}
.brand-text { font-weight:700; font-size:19px; letter-spacing:-0.01em; }
.brand-sub { font-size:11px; color: var(--muted); letter-spacing:0.06em; }

.header-actions { display:flex; align-items:center; gap:14px; }
.btn-login {
    padding: 9px 18px; border-radius:10px; background: var(--brown);
    color:#fff; font-weight:600; font-size:13.5px; text-decoration:none;
    transition: background .2s ease;
}
.btn-login:hover { background:#794f31; }

/* Hero */
.hero { padding: 48px 6% 16px; text-align: center; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; color: #2c1a0e; }
.hero p { color: #8c5a47; margin-top: 8px; font-size: 16px; font-weight: 500; }

/* Stat strip */
.stat-strip {
    display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap:16px; padding: 28px 6%;
}
.stat-card {
    background: var(--card); border:1px solid var(--border); border-radius:16px;
    padding:18px; box-shadow: var(--shadow);
    display:flex; align-items:center; justify-content:space-between;
}
.stat-label { font-size:11px; color: var(--muted); letter-spacing:0.06em; text-transform:uppercase; font-weight:600; }
.stat-value { font-size:22px; font-weight:800; margin-top:6px; }
.stat-icon {
    width:44px; height:44px; border-radius:12px;
    display:flex; align-items:center; justify-content:center; font-size:19px; flex-shrink:0;
}

/* Categories Grid (3 Cards Per Row) */
.section-title {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 6% 24px; font-size: 24px; font-weight: 800; color: #2c1a0e;
    text-align: center;
}
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 0 6% 90px;
}
@media (max-width: 992px) { .categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .categories { grid-template-columns: 1fr; } }

/* Asymmetrical Diagonal "Tedha" Card Design + Big Image Banner */
.cat-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e8dfd5;
    border-radius: 42px 6px 42px 6px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(140, 90, 71, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-8px);
    border-radius: 6px 42px 6px 42px;
    border-color: #8c5a47;
    box-shadow: 0 18px 40px rgba(140, 90, 71, 0.18);
}

.cat-banner {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f4f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(140, 90, 71, 0.12);
}

.cat-banner-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.cat-card:hover .cat-banner-img {
    transform: scale(1.08);
}

.cat-banner-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
}

.cat-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.cat-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cat-name { 
    font-size: 19px; 
    font-weight: 800; 
    color: #2c1a0e; 
    line-height: 1.3; 
    margin-top: 0; 
}

.cat-count { 
    font-size: 13.5px; 
    color: #8c5a47; 
    margin-top: 8px; 
    font-weight: 600; 
}

.cat-toggle {
    position: relative; 
    top: 0; 
    right: 0;
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    background: #f3e7dc;
    color: #8c5a47; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 16px; 
    font-weight: 700; 
    flex-shrink: 0;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.cat-card:hover .cat-toggle {
    background: #8c5a47;
    color: #ffffff;
    transform: rotate(-45deg) scale(1.08);
}

/* Side Slide-In Scroll Animations ("Side Se Aate Huye") */
.reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    transform: translateX(-75px);
}

.reveal-right {
    transform: translateX(75px);
}

.reveal-left.revealed, .reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Blog Card (Restored Original Style) */
.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e8dfd5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(140, 90, 71, 0.06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #8c5a47;
    box-shadow: 0 12px 30px rgba(140, 90, 71, 0.14);
}

.blog-card .cat-banner {
    width: 100%;
    height: 420px;
    min-height: 380px;
    max-height: 440px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(140, 90, 71, 0.1);
    padding: 0;
    box-sizing: border-box;
}

.blog-card .cat-banner-img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .cat-banner-img {
    transform: scale(1.04);
}

footer {
    text-align:center; padding:22px; color: var(--muted);
    font-size:12.5px; border-top:1px solid var(--border); background: var(--card);
    margin-top:auto;
}

/* ===== Top Contact & Social Bar ===== */
.top-header-bar {
    width: 100%;
    background: #2c1a0e;
    color: #f3e7dc;
    padding: 8px 7%;
    box-sizing: border-box;
    font-size: 13px;
    border-bottom: 1px solid rgba(243, 231, 220, 0.15);
}
.top-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.top-contact-link {
    color: #f3e7dc;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.top-contact-link:hover {
    color: #ffffff;
}
.top-divider {
    color: rgba(243, 231, 220, 0.35);
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-icon-link {
    color: #f3e7dc;
    text-decoration: none;
    font-size: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(243, 231, 220, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-icon-link:hover {
    background: #8c5a47;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== Main Header (layouts/header.blade.php) ===== */
header {
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e8dfd5;
    position: relative;
    z-index: 100;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.logo-mark {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(140, 90, 71, 0.12);
}
.logo-mark img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}
.brand-text {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    color: #2c1a0e;
    white-space: nowrap;
    letter-spacing: -0.3px;
}
.brand-sub {
    margin-top: 2px;
    font-size: 13.5px;
    line-height: 1.2;
    color: #8c5a47;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
/* ===== 24/7 CONTINUOUS ANIMATED CTA BUTTON (OUR PORTFOLIO) ===== */
.btn-portfolio {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11.5px 24px;
    background: linear-gradient(135deg, #8c5a47 0%, #5b3528 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(140, 90, 71, 0.4);
    animation: portfolio-pulse 2.8s infinite ease-in-out;
    overflow: hidden;
    z-index: 1;
}

/* 1. Continuous Wave Ripple Ring */
.btn-portfolio::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 14px;
    border: 2px solid rgba(140, 90, 71, 0.85);
    animation: portfolio-ripple 2.2s infinite ease-out;
    z-index: -1;
    pointer-events: none;
}

/* 2. Continuous Light Sweep Flare */
.btn-portfolio::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50px;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: portfolio-shimmer 3.2s infinite ease-in-out;
    pointer-events: none;
}

.btn-portfolio:hover {
    background: linear-gradient(135deg, #2c1a0e 0%, #432918 100%);
    box-shadow: 0 8px 25px rgba(44, 26, 14, 0.5);
    transform: translateY(-3px) scale(1.04);
}

/* Live Pulse Dot Inside Button */
.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #52c41a;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    box-shadow: 0 0 8px #52c41a;
    animation: dot-pulse 1.5s infinite ease-in-out;
}

/* 24/7 Keyframe Animations */
@keyframes portfolio-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(140, 90, 71, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 26px rgba(140, 90, 71, 0.7);
    }
}

@keyframes portfolio-ripple {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes portfolio-shimmer {
    0% {
        left: -80%;
    }
    35%, 100% {
        left: 140%;
    }
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}
@media (max-width: 900px) {
    header {
        height: 80px;
        padding: 0 5%;
    }
    .logo-mark {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        max-width: 46px;
        max-height: 46px;
    }
    .brand-text {
        font-size: 18px;
    }
}
@media (max-width: 600px) {
    header {
        height: 72px;
        padding: 0 20px;
    }
    .logo-mark {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        max-width: 42px;
        max-height: 42px;
    }
    .brand {
        gap: 10px;
    }
    .brand-text {
        font-size: 17px;
    }
    .brand-sub {
        font-size: 12px;
    }
    .btn-login {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* ===== Footer (layouts/footer.blade.php) ===== */
html,
body {
    overflow-x: hidden;
}
.life-footer {
    width: 100%;
    background: #111111;
    color: #ffffff;
    margin-top: 0;
    font-family: inherit;
    border-top: none;
    overflow: hidden;
}
.life-footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 35px 40px;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.6fr;
    gap: 35px;
    box-sizing: border-box;
}
.life-footer-column {
    min-width: 0;
}
.life-company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}
.life-logo {
    margin-bottom: 0;
    text-align: left;
    width: 100%;
}
.life-logo img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 12px;
}
.footer-tagline-box {
    text-align: left;
    width: 100%;
    margin-top: 16px;
}
.footer-tagline-title {
    text-align: left;
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.footer-tagline-desc {
    text-align: left;
    margin: 0;
    color: #aab4c3;
    font-size: 13.5px;
    line-height: 1.6;
}
.life-footer-column h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    position: relative;
    padding-bottom: 0;
}
.life-footer-column h3::after {
    display: none;
}
.life-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.life-footer-column ul li {
    margin-bottom: 12px;
    padding: 0;
}
.life-footer-column ul li a {
    color: #aab4c3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.life-footer-column ul li a i {
    width: 12px;
    min-width: 12px;
    text-align: center;
    flex-shrink: 0;
}
.life-footer-column ul li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}
.life-map {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: #222222;
    border: 1px solid #333333;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.life-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.life-footer-bottom {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 35px;
    border-top: 1px solid #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}
.life-footer-bottom p {
    margin: 0;
    color: #888888;
    font-size: 13.5px;
}
@media (max-width: 1100px) {
    .life-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}
@media (max-width: 600px) {
    .life-footer-container {
        grid-template-columns: 1fr;
        padding: 35px 20px;
        gap: 30px;
    }
    .life-footer-bottom {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .life-map {
        height: 220px;
    }
    .life-logo img {
        max-width: 200px;
        max-height: 110px;
    }
}

/* Floating Side Action Buttons - Vertical Text Pinned Right Wall */
.floating-side-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-side-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px 0 0 10px;
    box-shadow: -4px 4px 18px rgba(0, 0, 0, 0.28);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
}
.floating-side-btn.btn-admin {
    background: linear-gradient(135deg, #8c5a47 0%, #5d3525 100%);
    border-left: 3.5px solid #d4a373;
}
.floating-side-btn.btn-company {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-left: 3.5px solid #60a5fa;
}
.floating-side-btn:hover {
    transform: translateX(-6px);
    box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.38);
    color: #ffffff;
}
.floating-side-btn i {
    font-size: 15px;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .top-header-bar {
        padding: 8px 4%;
    }
    .top-bar-container {
        justify-content: center;
        text-align: center;
    }
    .top-bar-left {
        justify-content: center;
        gap: 8px;
    }
    .top-divider {
        display: none;
    }
    .top-bar-right {
        justify-content: center;
    }
    header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        height: auto;
    }
    .brand {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 10px;
        text-align: left;
    }
    .logo-mark {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    .brand-text {
        font-size: 14.5px;
        font-weight: 700;
        line-height: 1.2;
    }
    .brand-sub {
        font-size: 10px;
        letter-spacing: 0.05em;
    }
    .header-actions {
        width: auto;
        justify-content: flex-end;
    }
    .btn-portfolio {
        width: auto;
        padding: 7px 12px;
        font-size: 12px;
    }
    .hero {
        padding: 24px 4% 12px;
    }
    .stat-strip {
        padding: 16px 4%;
        gap: 12px;
    }
    .floating-side-widget {
        top: 38%;
        bottom: auto;
        transform: translateY(-50%);
        gap: 8px;
        z-index: 9998;
    }
    .floating-side-btn {
        padding: 11px 7px;
        font-size: 11.5px;
    }
}
