/* =========================================================
   CREATIVE MEDICAL WEB DESIGN — DROP-IN CSS UPGRADE
   IMPORTANT: Existing class names are intentionally preserved.
   ========================================================= */

@font-face {
    font-family: 'Parastoo';
    src: url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.eot');
    src: url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.eot?#iefix') format('embedded-opentype'),
        url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.woff') format('woff'),
        url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #1167d8;
    --primary-dark: #08489d;
    --secondary-color: #64748b;
    --success-color: #159a78;
    --danger-color: #dc4c64;
    --warning-color: #d79b18;
    --info-color: #159fc0;

    --light-bg: #f5f8fc;
    --dark-bg: #101827;
    --ink: #172033;
    --muted: #69758a;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --line: rgba(20, 45, 80, .09);

    --sidebar-width: 280px;
    --header-height: 76px;

    --border-radius: 20px;
    --border-radius-sm: 13px;
    --border-radius-lg: 28px;

    --box-shadow: 0 8px 30px rgba(19, 45, 78, .07);
    --box-shadow-lg: 0 20px 55px rgba(19, 45, 78, .13);
    --box-shadow-hover: 0 24px 60px rgba(17, 103, 216, .16);

    --transition: 260ms cubic-bezier(.2, .8, .2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Parastoo', Tahoma, sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(17, 103, 216, .055), transparent 28%),
        radial-gradient(circle at 92% 42%, rgba(21, 159, 192, .045), transparent 25%),
        var(--light-bg);
    color: var(--ink);
    padding-top: var(--header-height);
    padding-bottom: 80px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* subtle site-wide texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    z-index: -1;
    background-image:
        linear-gradient(rgba(17, 103, 216, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 103, 216, .018) 1px, transparent 1px);
    background-size: 42px 42px;
}

/* ========================= Header ========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(20, 45, 80, .06);
    box-shadow: 0 8px 30px rgba(15, 35, 65, .045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1050;
    padding: 0 24px;
}

.site-header .navbar {
    height: 100%;
    padding: 0;
}

.brand-text {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--primary-color);
    position: relative;
}

.brand-text::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 50%;
    background: #25b9a0;
    box-shadow: 0 0 0 5px rgba(37, 185, 160, .10);
}

.nav-link {
    color: #536176 !important;
    font-weight: 500;
    padding: 9px 15px !important;
    border-radius: 11px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 15px;
    left: 15px;
    bottom: 3px;
    height: 2px;
    border-radius: 10px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(17, 103, 216, .065);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-cta {
    padding: 10px 23px;
    border-radius: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #2588ee);
    border: 1px solid rgba(255, 255, 255, .25);
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(17, 103, 216, .19);
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(17, 103, 216, .26);
}

/* ========================= Hero ========================= */

.hero-section {
    position: relative;
    padding: 105px 0 115px;
    background:
        radial-gradient(circle at 83% 28%, rgba(58, 160, 255, .17), transparent 23%),
        radial-gradient(circle at 72% 75%, rgba(39, 193, 170, .10), transparent 22%),
        linear-gradient(135deg, #f9fbff 0%, #edf5fd 100%);
    min-height: 610px;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -160px;
    top: -210px;
    border: 1px solid rgba(17, 103, 216, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(17, 103, 216, .025),
        0 0 0 95px rgba(17, 103, 216, .018);
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    bottom: -130px;
    border-radius: 50%;
    background: rgba(37, 185, 160, .07);
}

.hero-section h1 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 22px;
    line-height: 1.16;
    letter-spacing: -.045em;
}

.hero-section h1 span {
    color: var(--primary-color);
    background: linear-gradient(110deg, #1167d8, #16a5bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .subtitle {
    font-size: 1.35rem;
    color: #52647d;
    margin-bottom: 17px;
    font-weight: 500;
}

.hero-section .description {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 620px;
    line-height: 2;
}

/* ========================= Services ========================= */

.service-grid {
    padding: 105px 0;
    position: relative;
}

.service-card {
    position: relative;
    isolation: isolate;
    background: rgba(255, 255, 255, .88);
    border-radius: var(--border-radius);
    padding: 34px 30px 31px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--line);
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: -75px;
    top: -75px;
    border-radius: 50%;
    background: rgba(17, 103, 216, .055);
    z-index: -1;
    transition: var(--transition);
}

.service-card::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 0;
    width: 36px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #1167d8, #22b69f);
    opacity: .55;
}

.service-card:hover {
    transform: translateY(-11px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(17, 103, 216, .16);
}

.service-card:hover::before {
    transform: scale(1.45);
}

.service-card .icon {
    width: 74px;
    height: 74px;
    background: linear-gradient(145deg, rgba(17, 103, 216, .11), rgba(21, 159, 192, .07));
    border: 1px solid rgba(17, 103, 216, .09);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 23px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon {
    transform: rotate(-4deg) scale(1.07);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(17, 103, 216, .13);
}

.service-card h4 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 13px;
    color: var(--ink);
}

.service-card p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.9;
}

/* ========================= Stats ========================= */

.stats-section {
    padding: 76px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    width: 1px;
    height: 60%;
    background: var(--line);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.stat-item .label {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: 9px;
}

/* ========================= About ========================= */

.about-section {
    padding: 105px 0;
}

.about-card {
    position: relative;
    background: rgba(255, 255, 255, .92);
    border-radius: var(--border-radius-lg);
    padding: 38px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--line);
    border-right: 0;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #1167d8, #23b59e);
}

.about-card .quote {
    font-size: 1.16rem;
    font-style: normal;
    color: #48586e;
    padding: 22px 24px;
    background: linear-gradient(135deg, #f3f7fc, #f8fbfd);
    border: 1px solid var(--line);
    border-radius: 17px;
    margin: 24px 0;
    position: relative;
}

.about-card .quote::before {
    content: "“";
    position: absolute;
    left: 17px;
    top: -8px;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: rgba(17, 103, 216, .13);
}

/* ========================= Founder ========================= */

.founder-section {
    padding: 80px 0;
    background: #fff;
}

.founder-card {
    display: flex;
    gap: 34px;
    align-items: center;
    background:
        radial-gradient(circle at 92% 15%, rgba(17, 103, 216, .07), transparent 25%),
        #f7faff;
    border-radius: var(--border-radius-lg);
    padding: 42px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.founder-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: -90px;
    bottom: -110px;
    border: 1px solid rgba(17, 103, 216, .08);
    border-radius: 50%;
}

.founder-card .avatar {
    width: 122px;
    height: 122px;
    border-radius: 34px;
    background: linear-gradient(145deg, var(--primary-color), #21a5c4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 16px 32px rgba(17, 103, 216, .2);
    transform: rotate(-3deg);
}

.founder-card .content h3 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
}

.founder-card .content .role {
    color: var(--primary-color);
    font-weight: 600;
}

.founder-card .content .bio {
    color: #5d6a7d;
    line-height: 1.9;
    margin-top: 10px;
}

/* ========================= Timeline ========================= */

.timeline-section {
    padding: 80px 0;
}

.timeline-item {
    display: flex;
    gap: 25px;
    padding: 24px 0;
    border-right: 2px solid rgba(17, 103, 216, .18);
    padding-right: 24px;
    margin-right: 20px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    right: -6px;
    top: 31px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(17, 103, 216, .09);
}

.timeline-item:last-child {
    border-right: none;
}

.timeline-item .year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 80px;
}

.timeline-item .desc {
    color: #5b687b;
    line-height: 1.85;
}

/* ========================= Contact ========================= */

.contact-section {
    padding: 105px 0;
}

.contact-form {
    background: rgba(255, 255, 255, .95);
    border-radius: var(--border-radius-lg);
    padding: 42px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--line);
}

.contact-form .form-control {
    border-radius: 13px;
    padding: 13px 16px;
    border: 1px solid #dfe6ef;
    background: #fbfcfe;
    color: var(--ink);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: rgba(17, 103, 216, .55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(17, 103, 216, .08);
}

.contact-info {
    padding: 42px;
    background:
        radial-gradient(circle at 100% 0, rgba(21, 159, 192, .12), transparent 30%),
        linear-gradient(145deg, #f2f7fd, #f8fbfd);
    border: 1px solid var(--line);
    border-radius: var(--border-radius-lg);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(20, 45, 80, .08);
}

.contact-info .info-item:last-child {
    border-bottom: none;
}

.contact-info .info-item i {
    font-size: 1.35rem;
    color: var(--primary-color);
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 103, 216, .08);
    border-radius: 13px;
    flex-shrink: 0;
}

/* ========================= Footer ========================= */

.site-footer {
    background:
        radial-gradient(circle at 15% 0, rgba(32, 120, 220, .18), transparent 28%),
        linear-gradient(145deg, #0e1726, #121f32);
    color: #fff;
    padding: 70px 0 22px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .045;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 18px 18px;
}

.site-footer .brand-text {
    color: #fff;
}

.site-footer .brand-text::after {
    background: #29c1a7;
}

.site-footer .brand-slogan {
    color: #9eacc0;
    margin-top: 7px;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 21px;
    font-weight: 600;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 11px;
}

.site-footer ul li a {
    color: #9eacc0;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer ul li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-contact li {
    color: #9eacc0;
}

.footer-contact li i {
    margin-left: 10px;
    color: #28bca5;
}

.footer-bottom {
    text-align: center;
    padding-top: 23px;
    margin-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: #7f8da2;
    font-size: .9rem;
}

/* ========================= Mobile Tab Bar ========================= */

.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .92);
    border-top: 1px solid rgba(20, 45, 80, .08);
    display: flex;
    justify-content: space-around;
    padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
    z-index: 1050;
    box-shadow: 0 -12px 30px rgba(15, 35, 65, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8290a4;
    text-decoration: none;
    font-size: .7rem;
    padding: 5px 13px;
    border-radius: 12px;
    transition: var(--transition);
}

.tab-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
    transition: var(--transition);
}

.tab-item.active {
    color: var(--primary-color);
    background: rgba(17, 103, 216, .065);
}

.tab-item.active i {
    transform: translateY(-2px) scale(1.08);
}

/* ========================= FAB ========================= */

.fab {
    position: fixed;
    bottom: 94px;
    left: 22px;
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, #1167d8, #21a4c2);
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 15px 30px rgba(17, 103, 216, .25);
    z-index: 1050;
    text-decoration: none;
    transition: var(--transition);
}

.fab:hover {
    background: linear-gradient(145deg, #08489d, #1167d8);
    transform: translateY(-5px) rotate(-3deg);
    color: #fff;
    box-shadow: 0 20px 38px rgba(17, 103, 216, .3);
}

/* ========================= Page Header ========================= */

.page-header {
    position: relative;
    padding: 78px 0 62px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .13), transparent 23%),
        radial-gradient(circle at 85% 80%, rgba(38, 197, 170, .16), transparent 25%),
        linear-gradient(135deg, #0c55ad, #1167d8 58%, #168eb9);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -170px;
    top: -170px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .035);
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.page-header p {
    font-size: 1.15rem;
    opacity: .9;
    max-width: 640px;
    margin: 11px auto 0;
}

/* ========================= Features ========================= */

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--success-color);
    font-size: 1.1rem;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 154, 120, .09);
    border-radius: 50%;
}

/* ========================= Print Products ========================= */

.print-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.print-products .product-item {
    background: linear-gradient(145deg, #f5f8fc, #fff);
    padding: 17px;
    border-radius: 15px;
    text-align: center;
    font-weight: 500;
    border: 1px solid var(--line);
    transition: var(--transition);
}

.print-products .product-item:hover {
    background: linear-gradient(145deg, var(--primary-color), #159fc0);
    color: #fff;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(17, 103, 216, .18);
}

/* ========================= Responsive ========================= */

@media (max-width: 992px) {
    .hero-section {
        padding: 78px 0 85px;
    }

    .hero-section h1 {
        font-size: 2.9rem;
    }

    .founder-card {
        flex-direction: column;
        text-align: center;
    }

    .timeline-item {
        flex-direction: column;
        gap: 5px;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 23px;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 76px;
    }

    .site-header {
        padding: 0 15px;
    }

    .hero-section {
        padding: 58px 0 65px;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .subtitle {
        font-size: 1.15rem;
    }

    .service-grid,
    .about-section,
    .contact-section {
        padding: 72px 0;
    }

    .contact-form,
    .contact-info {
        padding: 25px;
    }

    .founder-card {
        padding: 28px 22px;
    }

    .about-card {
        padding: 28px 24px;
    }

    .print-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .fab {
        width: 54px;
        height: 54px;
        bottom: 91px;
        left: 16px;
        border-radius: 16px;
    }
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }

    .mobile-tab-bar,
    .fab {
        display: none !important;
    }
}

/* ========================= Accessibility / polish ========================= */

a,
button,
.nav-link,
.btn-cta,
.tab-item,
.fab,
.service-card,
.print-products .product-item {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(17, 103, 216, .16);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(17, 103, 216, .25);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* =========================================================
   UNIVERSAL RESPONSIVE HARDENING
   No existing class names changed.
   Designed for: tiny phones → tablets → laptops → ultrawide.
   ========================================================= */

/* Prevent common overflow bugs */
html,
body {
    width: 100%;
    max-width: 100%;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

iframe {
    border: 0;
}

table {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

textarea {
    resize: vertical;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
    overflow-wrap: anywhere;
}

/* Bootstrap/container-safe fluid widths */
.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
}

.row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.row>* {
    min-width: 0;
}

/* Make every major section incapable of causing horizontal scroll */
.site-header,
.hero-section,
.service-grid,
.stats-section,
.about-section,
.founder-section,
.timeline-section,
.contact-section,
.site-footer,
.page-header {
    width: 100%;
    max-width: 100%;
}

/* Flexible navigation */
.site-header .navbar {
    min-width: 0;
}

.site-header .navbar>*,
.site-header .navbar .container,
.site-header .navbar .container-fluid {
    min-width: 0;
}

.brand-text {
    max-width: min(42vw, 260px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flexible cards/content */
.service-card,
.about-card,
.founder-card,
.contact-form,
.contact-info,
.print-products .product-item {
    min-width: 0;
}

/* Do not let long Persian/Latin content break layouts */
.service-card p,
.about-card,
.founder-card .content,
.contact-info,
.contact-form,
.timeline-item .desc,
.site-footer {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* =========================================================
   LARGE DESKTOP / ULTRAWIDE
   ========================================================= */

@media (min-width: 1400px) {
    :root {
        --header-height: 82px;
    }

    .site-header {
        padding-left: clamp(28px, 3vw, 64px);
        padding-right: clamp(28px, 3vw, 64px);
    }

    .hero-section {
        min-height: 680px;
        padding-top: clamp(110px, 8vw, 150px);
        padding-bottom: clamp(110px, 8vw, 150px);
    }

    .service-grid,
    .about-section,
    .contact-section {
        padding-top: clamp(105px, 7vw, 145px);
        padding-bottom: clamp(105px, 7vw, 145px);
    }

    .service-card {
        padding: 40px 34px 36px;
    }
}

/* =========================================================
   LAPTOPS / SMALL DESKTOP
   ========================================================= */

@media (min-width: 993px) and (max-width: 1199.98px) {
    .site-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .btn-cta {
        padding-left: 17px;
        padding-right: 17px;
    }

    .hero-section {
        padding-top: 85px;
        padding-bottom: 90px;
    }

    .hero-section h1 {
        font-size: clamp(2.6rem, 5vw, 3.8rem);
    }

    .service-card {
        padding: 28px 22px;
    }

    .contact-form,
    .contact-info {
        padding: 32px;
    }
}

/* =========================================================
   TABLET LANDSCAPE / TABLET PORTRAIT
   ========================================================= */

@media (min-width: 768px) and (max-width: 992.98px) {
    :root {
        --header-height: 72px;
    }

    body {
        padding-top: var(--header-height);
    }

    .site-header {
        height: var(--header-height);
        padding: 0 18px;
    }

    .brand-text {
        max-width: 45vw;
    }

    .hero-section {
        min-height: auto;
        padding: 72px 0 78px;
    }

    .hero-section h1 {
        font-size: clamp(2.45rem, 6vw, 3.4rem);
    }

    .hero-section .description {
        max-width: 100%;
    }

    .service-grid,
    .about-section,
    .contact-section {
        padding: 78px 0;
    }

    .service-card {
        padding: 30px 24px;
    }

    .stats-section {
        padding: 58px 0;
    }

    .founder-card {
        padding: 34px 28px;
        gap: 25px;
    }

    .contact-form,
    .contact-info {
        padding: 30px;
    }

    .page-header {
        padding: 62px 0 52px;
    }

    .mobile-tab-bar {
        display: flex;
    }

    .fab {
        display: flex;
    }

    body {
        padding-bottom: 76px;
    }
}

/* =========================================================
   PHONES — GENERAL
   ========================================================= */

@media (max-width: 767.98px) {
    :root {
        --header-height: 64px;
        --border-radius: 17px;
        --border-radius-lg: 22px;
    }

    html {
        font-size: 15px;
    }

    body {
        padding-top: var(--header-height);
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .site-header {
        height: var(--header-height);
        padding: 0 12px;
    }

    .site-header .navbar {
        min-height: var(--header-height);
    }

    .brand-text {
        font-size: 1.25rem;
        max-width: 52vw;
    }

    .brand-text::after {
        width: 6px;
        height: 6px;
        margin-right: 4px;
    }

    /* If Bootstrap's nav remains visible at narrow widths,
       allow it to wrap rather than overflow. */
    .site-header .navbar-nav {
        max-width: 100%;
        min-width: 0;
    }

    .nav-link {
        padding: 8px 10px !important;
    }

    .btn-cta {
        padding: 9px 14px;
        border-radius: 11px;
        white-space: nowrap;
    }

    .hero-section {
        min-height: auto;
        padding: 55px 0 62px;
    }

    .hero-section::before {
        width: 280px;
        height: 280px;
        left: -170px;
        top: -135px;
    }

    .hero-section::after {
        width: 190px;
        height: 190px;
        right: -100px;
        bottom: -95px;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.25;
        margin-bottom: 17px;
    }

    .hero-section .subtitle {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.8;
    }

    .hero-section .description {
        font-size: .98rem;
        line-height: 1.9;
        max-width: 100%;
    }

    .service-grid,
    .about-section,
    .contact-section {
        padding: 65px 0;
    }

    .service-card {
        padding: 27px 21px 25px;
    }

    .service-card .icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 1.65rem;
        margin-bottom: 18px;
    }

    .service-card h4 {
        font-size: 1.06rem;
    }

    .service-card p {
        font-size: .92rem;
    }

    .stats-section {
        padding: 48px 0;
    }

    .stat-item {
        padding: 15px 8px;
    }

    .stat-item .number {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .stat-item .label {
        font-size: .9rem;
    }

    .about-card {
        padding: 26px 21px;
    }

    .about-card .quote {
        font-size: 1rem;
        padding: 19px 18px;
    }

    .founder-section,
    .timeline-section {
        padding: 62px 0;
    }

    .founder-card {
        padding: 27px 20px;
        gap: 21px;
    }

    .founder-card .avatar {
        width: 92px;
        height: 92px;
        border-radius: 25px;
        font-size: 2.3rem;
    }

    .founder-card .content h3 {
        font-size: 1.3rem;
    }

    .founder-card .content .bio {
        font-size: .94rem;
    }

    .timeline-item {
        gap: 3px;
        padding: 18px 0;
    }

    .timeline-item .year {
        min-width: 0;
        font-size: 1.25rem;
    }

    .timeline-item .desc {
        font-size: .94rem;
    }

    .contact-form,
    .contact-info {
        padding: 23px 18px;
        border-radius: 20px;
    }

    .contact-form .form-control {
        min-height: 46px;
    }

    .contact-info .info-item {
        gap: 12px;
        padding: 14px 0;
        align-items: flex-start;
    }

    .contact-info .info-item i {
        width: 39px;
        height: 39px;
        font-size: 1.15rem;
    }

    .page-header {
        padding: 55px 15px 46px;
    }

    .page-header h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.25;
    }

    .page-header p {
        font-size: 1rem;
        line-height: 1.85;
    }

    .print-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .print-products .product-item {
        padding: 14px 9px;
        min-width: 0;
    }

    .features-list li {
        align-items: flex-start;
    }

    .mobile-tab-bar {
        display: flex;
        min-height: 64px;
    }

    .tab-item {
        min-width: 0;
        flex: 1 1 0;
        padding: 5px 4px;
        font-size: .65rem;
        white-space: nowrap;
    }

    .tab-item i {
        font-size: 1.25rem;
    }

    .fab {
        display: flex;
        bottom: calc(83px + env(safe-area-inset-bottom));
        left: 14px;
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 1.35rem;
    }

    .site-footer {
        padding: 55px 0 20px;
        margin-top: 35px;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 18px;
    }
}

/* =========================================================
   VERY SMALL PHONES — 320 / 360px
   ========================================================= */

@media (max-width: 380px) {
    html {
        font-size: 14px;
    }

    .site-header {
        padding-left: 9px;
        padding-right: 9px;
    }

    .brand-text {
        font-size: 1.12rem;
        max-width: 47vw;
    }

    .nav-link {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .btn-cta {
        padding: 8px 10px;
        font-size: .82rem;
    }

    .hero-section {
        padding-top: 45px;
        padding-bottom: 52px;
    }

    .hero-section h1 {
        font-size: 1.85rem;
    }

    .hero-section .subtitle {
        font-size: .98rem;
    }

    .service-card,
    .about-card,
    .contact-form,
    .contact-info {
        padding-left: 16px;
        padding-right: 16px;
    }

    .founder-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .founder-card .avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .print-products {
        gap: 8px;
    }

    .print-products .product-item {
        padding: 12px 6px;
        font-size: .85rem;
    }

    .tab-item {
        font-size: .58rem;
        padding-left: 2px;
        padding-right: 2px;
    }

    .tab-item i {
        font-size: 1.1rem;
    }

    .fab {
        left: 10px;
        width: 48px;
        height: 48px;
    }
}

/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .hero-section h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-header {
        padding-top: 42px;
        padding-bottom: 38px;
    }

    .mobile-tab-bar {
        min-height: 58px;
    }

    .fab {
        bottom: calc(68px + env(safe-area-inset-bottom));
    }
}

/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }

    .service-card:hover .icon {
        transform: none;
        box-shadow: none;
    }

    .print-products .product-item:hover {
        transform: none;
    }

    .btn-cta:hover,
    .fab:hover {
        transform: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link,
    .btn-cta,
    .tab-item,
    .fab {
        min-height: 44px;
    }

    .form-control,
    button,
    select {
        font-size: 16px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}