/* ==========================================================
   Mormor.az — Public site & Customer panel stylesheet
   Elegant, water-themed, animated design
   ========================================================== */

:root {
    --mormor-blue: #00b4d8;
    --mormor-blue-dark: #0077b6;
    --mormor-deep: #03045e;
    --mormor-light: #e0f7fa;
    --mormor-mist: #f4fbfd;
    --ink: #0b1f33;
    --muted: #5b7285;
    --card-shadow: 0 10px 30px -10px rgba(3, 4, 94, 0.12);
    --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--ink);
    background-color: #ffffff;
    overflow-x: hidden;
}

a { text-decoration: none; }

.text-gradient {
    background: linear-gradient(120deg, var(--mormor-blue), var(--mormor-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-water {
    background: linear-gradient(135deg, var(--mormor-blue), var(--mormor-blue-dark));
    color: #fff;
    border: none;
    padding: 0.85rem 2.1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -8px rgba(0, 119, 182, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-water:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -8px rgba(0, 119, 182, 0.65);
}
.btn-water-outline {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}
.btn-water-outline:hover { background: #fff; color: var(--mormor-blue-dark); }

/* Ripple */
.ripple { position: relative; overflow: hidden; }
.ripple span.ripple-circle {
    position: absolute; border-radius: 50%; transform: scale(0);
    background: rgba(255,255,255,0.55); animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(3); opacity: 0; } }

/* ---------- Navbar ---------- */
.site-navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1050;
    padding: 14px 0;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,180,216,0.08);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-navbar.scrolled { padding: 8px 0; box-shadow: 0 6px 25px -12px rgba(3,4,94,0.25); }
.site-navbar .navbar-brand { font-weight: 800; font-size: 1.4rem; color: var(--mormor-deep); }
.site-navbar .navbar-brand span { color: var(--mormor-blue); }
.site-navbar .nav-link {
    color: var(--ink) !important; font-weight: 600; font-size: 0.9rem;
    margin: 0 6px; position: relative;
}
.site-navbar .nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
    background: var(--mormor-blue); transition: width 0.25s ease;
}
.site-navbar .nav-link:hover::after, .site-navbar .nav-link.active::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    background: linear-gradient(160deg, var(--mormor-deep) 0%, var(--mormor-blue-dark) 55%, var(--mormor-blue) 100%);
    color: #fff;
    overflow: hidden;
}
.hero .hero-content { position: relative; z-index: 3; }
.hero h1 { font-weight: 800; line-height: 1.12; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 560px; }

/* Floating bubbles */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
    position: absolute; bottom: -120px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.05));
    animation: rise linear infinite;
}
@keyframes rise {
    0%   { transform: translateY(0) translateX(0) scale(0.7); opacity: 0; }
    10%  { opacity: 0.8; }
    100% { transform: translateY(-115vh) translateX(30px) scale(1.1); opacity: 0; }
}

/* Wave divider */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.wave-divider svg { width: 100%; height: auto; display: block; }
.wave-layer1 { animation: wave-move 14s linear infinite; }
.wave-layer2 { animation: wave-move 22s linear infinite reverse; opacity: 0.6; }
@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Droplet accent */
.droplet-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem;
    font-weight: 600; backdrop-filter: blur(6px);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-badge {
    display: inline-block; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.75rem; font-weight: 700; color: var(--mormor-blue-dark);
    background: var(--mormor-light); padding: 6px 16px; border-radius: 50px;
}
.section-title { font-weight: 800; color: var(--mormor-deep); margin-top: 10px; }
.section-sub { color: var(--muted); max-width: 620px; }

.bg-mist { background: var(--mormor-mist); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }

/* ---------- Cards ---------- */
.feature-card {
    background: #fff; border-radius: var(--radius-lg); padding: 32px 26px;
    box-shadow: var(--card-shadow); height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,180,216,0.06);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -12px rgba(3,4,94,0.2); }
.feature-icon {
    width: 58px; height: 58px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--mormor-blue), var(--mormor-blue-dark));
    color: #fff; font-size: 1.4rem; margin-bottom: 18px;
    box-shadow: 0 10px 20px -6px rgba(0,180,216,0.5);
}

.product-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--card-shadow); height: 100%; position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -14px rgba(3,4,94,0.22); }
.product-card .product-media {
    background: var(--mormor-light); height: 220px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card .product-media img { max-height: 180px; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .product-media img { transform: scale(1.06) rotate(-1deg); }
.ph-badge {
    position: absolute; top: 16px; left: 16px; z-index: 3;
    background: rgba(0,180,216,0.9); color: #fff; padding: 4px 14px;
    border-radius: 50px; font-size: 0.75rem; font-weight: 700;
    backdrop-filter: blur(6px);
}

/* Gallery */
.gallery-item {
    border-radius: 18px; overflow: hidden; position: relative; cursor: pointer;
    box-shadow: var(--card-shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,4,94,0.75), transparent 60%);
    display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity 0.3s ease;
    color: #fff; font-weight: 600;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Video */
.video-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); background: #fff; }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--mormor-deep); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-play i {
    width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.9);
    color: var(--mormor-blue-dark); display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: transform 0.25s ease;
}
.video-card:hover .video-play i { transform: scale(1.12); }

/* Stats strip */
.stats-strip { background: linear-gradient(120deg, var(--mormor-deep), var(--mormor-blue-dark)); color: #fff; }
.stat-num { font-size: 2.4rem; font-weight: 800; }

/* Timeline / why-us list */
.check-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.check-item i { color: var(--mormor-blue); margin-top: 4px; }

/* ---------- Forms (auth + order) ---------- */
.auth-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--mormor-deep), var(--mormor-blue-dark) 60%, var(--mormor-blue));
    position: relative; overflow: hidden; padding: 40px 16px;
}
.auth-card {
    background: #fff; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
    max-width: 460px; width: 100%; padding: 44px 38px; position: relative; z-index: 2;
}
.form-control, .form-select { border-radius: 12px; padding: 0.65rem 0.9rem; border-color: #dce6ee; }
.form-control:focus, .form-select:focus { border-color: var(--mormor-blue); box-shadow: 0 0 0 0.2rem rgba(0,180,216,0.18); }

/* ---------- Customer dashboard ---------- */
.stat-pill {
    background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--card-shadow);
    display: flex; align-items: center; gap: 16px; height: 100%;
}
.stat-pill .icon-circle {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; flex-shrink: 0;
}
.badge-status { padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.badge-pending { background: #fff3cd; color: #92720b; }
.badge-delivered { background: #d1f5e0; color: #0f7a44; }
.badge-cancelled { background: #fde2e2; color: #b32424; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mormor-deep); color: rgba(255,255,255,0.75); position: relative; overflow: hidden; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.social-circle {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); transition: all 0.25s ease;
}
.social-circle:hover { background: var(--mormor-blue); transform: translateY(-3px); }

/* Whatsapp float */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 1200;
    width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(37,211,102,0.5);
    animation: pulse-wa 2.4s ease-in-out infinite;
}
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

@media (max-width: 767.98px) {
    .section { padding: 64px 0; }
    .hero { min-height: 82vh; text-align: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
}
