﻿@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@600;700&display=swap');

/* -----------------------------------------------------------
   COLOR PALETTE (CNS BRAND)
----------------------------------------------------------- */
:root {
    --primary: #bd0000; /* CNS Red */
    --primary-dark: #8b0000; /* Darker red for depth */
    --accent: #ffd600; /* CNS Gold */
    --black: #000000;
    --white: #ffffff;
    --bg: #f5f5f5;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --font-heading: 'Sora', 'Segoe UI', sans-serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

/* -----------------------------------------------------------
   GLOBAL
----------------------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden; /* eliminate horizontal scroll/white edge */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

html {
    overflow-x: hidden;
}

.container {
    width: min(1100px, 100% - 40px);
    margin: 0 auto;
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */

.site-header {
    position: relative;
    background: #bd0000;
    color: white;
    padding: 20px 0 14px;
    border-bottom: 4px solid #ffd600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* header wrapper */
.header-inner {
    position: relative;                /* for absolute-positioned hamburger */
    display: flex;
    align-items: flex-start;           /* keep logo at top when nav wraps */
    justify-content: space-between;    /* logo left, nav right on wide screens */
    width: 100%;
    margin: 0 auto;                    /* centre the container */
    padding: 0 20px;                   /* horizontal breathing room */
}

/* keep the logo flex item from growing too large */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;           /* allow shrinking so the menu icon can fit */
    min-width: 0;             /* allow child text to truncate */
}

.logo-text {
    min-width: 0;
}

.logo-main {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* logo image size – already responsive but add a max-width */
.site-logo {
    height: clamp(42px, 6vw, 70px);
    width: auto;
    max-width: 150px;      /* prevents extreme scaling on very wide screens */
    object-fit: contain;
}

/* shrink the logo text on narrow viewports so it doesn't wrap with the menu */
@media (max-width: 640px) {
    /* On very small phones we keep the shortened "CNSTC" replacement consistently visible.
       The 820px rule handles the substitution, so avoid overriding it here. */
    .logo-sub {
        display: none; /* hide Trading Co. to save space */
    }
}
.logo-sub {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.8vw, 1.2rem);
    font-weight: 600;
}

/* Menu toggle button (hidden on desktop) */
.hamburger-btn {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.45);
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    z-index: 999;
}

.hamburger-btn span {
    display: none;
}

.hamburger-btn::before {
    content: "Menu";
}

.hamburger-btn::after {
    content: "▾";
    font-size: 0.8rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.hamburger-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Navigation */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-body);
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 10px;
}

/* header wrapper */
.header-inner {
    position: relative;                /* for absolute-positioned hamburger */
    display: flex;
    align-items: flex-start;           /* keep logo at top when nav wraps */
    justify-content: space-between;    /* logo left, nav right on wide screens */
    width: 100%;
    margin: 0 auto;                    /* centre the container */
    padding: 0 20px;                   /* horizontal breathing room */
}

/* keep the logo flex item from growing too large */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;           /* allow shrinking so the menu icon can fit */
    min-width: 0;             /* allow child text to truncate */
}

/* logo image size – already responsive but add a max-width */
.site-logo {
    height: clamp(42px, 6vw, 70px);
    width: auto;
    max-width: 150px;      /* prevents extreme scaling on very wide screens */
    object-fit: contain;
}

/* Tablet/Mobile responsive nav (expanded breakpoint for tablets) */
@media (max-width: 1100px) {
    .hamburger-btn {
        display: inline-flex;
        margin-left: auto;
        min-height: 40px;
        justify-content: center;
    }

    /* make logo area shrinkable so menu button never overlaps */
    .logo {
        max-width: calc(100% - 112px); /* leave room for the Menu toggle */
    }

    .logo-main {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* align header contents vertically when menu icon shown */
    .header-inner {
        align-items: center;
    }

    /* dropdown panel attached to the header */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #8b0000;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.25);
        z-index: 900;
    }
}

/* iPad mini and small phones: show abbreviated logo */
@media (max-width: 820px) {
    .logo-text .logo-main {
        font-size: 0;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .logo-text .logo-main::before {
        content: "CNSTC";
        font-size: 1.4rem;
        font-family: var(--font-heading);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: white;
    }

    .logo-sub {
        display: none;
    }

    .hamburger-btn {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
    }
}

/* very small phones */
@media (max-width: 640px) {
    .header-inner {
        align-items: center;
    }

    .logo {
        max-width: calc(100% - 64px);
    }

    .hamburger-btn {
        margin-left: auto;
    }
}

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 6px 12px;
        border-radius: 20px;
        transition: 0.25s;
    }

    .nav-menu a:hover {
        background: #ffd600;
        color: black;
    }

    .nav-menu a.is-active,
    .nav-menu a.is-active:hover {
        background: #ffd600;
        color: #000000;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    }

/* Mobile nav link styling */
@media (max-width: 1100px) {
    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 0.9rem;
    }

    .nav-menu.active a {
        display: block;
    }

    .nav-menu a:hover {
        background: rgba(255,214,0,0.2);
        color: #ffd600;
    }

    .nav-menu a.is-active,
    .nav-menu a.is-active:hover {
        background: rgba(255, 214, 0, 0.28);
        color: #ffd600;
        font-weight: 700;
    }
}
/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 68px);
    color: var(--white);
    border-bottom: 4px solid var(--accent);
    overflow: hidden;
}

/* reduce vertical padding on tablet/iPad to avoid large empty space */
@media (max-width: 1100px) {
    .hero {
        padding: clamp(40px, 7vw, 64px) 0 clamp(34px, 5vw, 56px);
    }
}

.hero-inner {
    position: relative;
    min-height: 280px;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: min(700px, 100%);
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero p {
    max-width: min(650px, 100%);
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-logo-bg {
    position: absolute;
    right: 5%;                      /* hug the right edge */
    top: 50%;                       /* centre vertically */
    transform: translate(50%, -50%);/* shift into view and offset y */
    width: min(42vw, 560px);
    height: auto;
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

/* shrink or move the background logo on narrower viewports */
@media (max-width: 900px) {
    /* slide the logo behind the hero text at tablet widths and below */
    .hero-logo-bg {
        right: 50%;
        top: 50%;
        transform: translate(50%, -50%);
        width: min(42vw, 560px);     /* retain the normal responsive size */
        opacity: 0.4;               /* subtle behind text */
    }
    .hero-text {
        position: relative;
        z-index: 2;
    }
}

/* the 640px rule is now redundant and can be removed */
/* -----------------------------------------------------------
   BUTTONS
----------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s;
}

/* Gold Button */
.btn-primary {
    background: var(--accent);
    color: var(--black);
    border: 2px solid var(--accent);
}

    .btn-primary:hover {
        background: #ffea76;
        border-color: #ffea76;
    }

/* White Outline Button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.15);
    }

/* -----------------------------------------------------------
   SECTION COMMON
----------------------------------------------------------- */
section {
    padding: 55px 0;
}

h2 {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 35px;
    text-align: center;
    color: var(--muted);
}

/* -----------------------------------------------------------
   CARDS
----------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

/* Keep 4 cards on the first row and center the remaining 2 on desktop */
@media (min-width: 1200px) {
    #specialties .cards {
        grid-template-columns: repeat(4, minmax(230px, 1fr));
    }

    #specialties .cards .card:nth-child(5) {
        grid-column: 2;
    }

    #specialties .cards .card:nth-child(6) {
        grid-column: 3;
    }
}

.card {
    background: var(--white);
    padding: 22px;
    border-radius: 10px;
    border: 2px solid var(--accent);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
    transition: 0.25s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 6px 16px rgba(0,0,0,0.15);
        border-color: var(--primary);
    }

    .card h3 {
        margin-top: 0;
        color: var(--primary-dark);
    }

    .card p {
        color: var(--muted);
    }

/* -----------------------------------------------------------
   PARTNER HIGHLIGHT BOX
----------------------------------------------------------- */
.highlight-card {
    background: var(--white);
    border-left: 6px solid var(--accent);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

    .highlight-card h3 {
        color: var(--primary);
    }

/* -----------------------------------------------------------
   CLIENTS SECTION
----------------------------------------------------------- */

.clients-section {
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
    padding: 70px 0;
}

.clients-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 35px;
}

.clients-eyebrow {
    color: #bd0000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.clients-section h2 {
    margin-bottom: 12px;
}

.clients-intro {
    max-width: 760px;
    margin: 0 auto;
}

.clients-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 35px auto 40px;
    max-width: 950px;
}

.client-stat {
    background: #ffffff;
    border: 1px solid rgba(189, 0, 0, 0.08);
    border-top: 4px solid #ffd600;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

    .client-stat h3 {
        margin: 0 0 8px;
        color: #bd0000;
        font-size: 1.7rem;
    }

    .client-stat p {
        margin: 0;
        color: #555;
        font-size: 0.95rem;
    }

.clients-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 24px;
    align-items: center;
    margin-top: 10px;
}

.clients-showcase-text {
    background: #ffffff;
    border-left: 6px solid #bd0000;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

    .clients-showcase-text h3 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #7d0000;
        font-size: 1.25rem;
    }

    .clients-showcase-text p {
        margin: 0;
        line-height: 1.7;
        color: #444;
    }

.clients-logo-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

    .clients-logo-panel img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
    }

.clients-list-preview {
    max-width: 900px;
    margin: 28px auto 0;
    text-align: center;
    color: #666;
    font-size: 0.96rem;
    line-height: 1.7;
}

.clients-hospital-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #444;
}

    .clients-hospital-grid p {
        margin: 0;
    }

.clients-more {
    grid-column: span 2;
    font-style: italic;
    color: #777;
    font-weight: 600;
}

.news-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

.news-section h2,
.news-section .section-intro {
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
    gap: 18px;
    align-items: flex-start;
    margin-top: 32px;
}

.facebook-news {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.facebook-news .fb-page,
.facebook-news .fb-page span,
.facebook-news .fb-page iframe {
    width: 100% !important;
    min-width: 0 !important;
}

.viber-panel {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.viber-card {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.viber-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #6a2c91;
    font-size: 1.35rem;
}

.viber-card p {
    margin: 0 0 18px;
    color: #444;
    line-height: 1.7;
}

.viber-card .viber-note {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .viber-panel {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .news-grid {
        display: block;
        gap: 24px;
    }

    .facebook-news,
    .viber-panel {
        width: 100%;
    }

    .facebook-news {
        overflow-x: hidden;
    }

    .facebook-news .fb-page,
    .facebook-news .fb-page span,
    .facebook-news .fb-page iframe {
        width: 100% !important;
        min-width: 0 !important;
    }

    .viber-panel {
        margin-top: 24px;
        justify-content: center;
    }

    .viber-card {
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .clients-showcase {
        grid-template-columns: 1fr;
    }

    .clients-stats {
        grid-template-columns: 1fr;
    }
}
/* -----------------------------------------------------------
   PRODUCT LIST
----------------------------------------------------------- */
.product-brand-list h3 {
    margin-top: 24px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.product-brand-list p {
    margin: 6px 0 14px 0;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: start;
}

.product-list li {
    margin: 0;
    display: flex;
    justify-content: center;
}

.product-list li a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    min-height: 150px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    text-align: center;
    padding: 10px 12px;
}

.product-list li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.product-list li a .pdf-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-list li a .pdf-file-name {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
    max-width: 240px;
}

/* -----------------------------------------------------------
   VIDEO SECTION
----------------------------------------------------------- */
.video-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.story-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

@media (max-width: 992px) {
    section {
        padding: 44px 0;
    }

    h2 {
        font-size: 1.65rem;
    }

    .section-intro {
        margin-bottom: 28px;
        font-size: 0.98rem;
        padding: 0 8px;
    }

    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-list li a {
        max-width: 100%;
        min-height: 140px;
        padding: 10px;
        font-size: 0.98rem;
    }
}

@media (max-width: 640px) {
    section {
        padding: 34px 0;
    }

    h2 {
        font-size: 1.38rem;
        line-height: 1.25;
    }

    .section-intro {
        font-size: 0.94rem;
        margin-bottom: 22px;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-list li a {
        min-height: 128px;
        gap: 8px;
        font-size: 0.94rem;
        line-height: 1.35;
    }

    .product-list li a .pdf-icon {
        width: 64px;
        height: 64px;
    }
}


/* then contact block continues */
/* -----------------------------------------------------------
   CONTACT
----------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
}
.contact-details p {
    margin: 2px 0;
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--primary);
    font-weight: 600;
}

    .contact-details a:hover {
        color: var(--accent);
    }

/* phone list styling */
.phone-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 15px 0;
}

.phone-list li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text);
}
.contact-form {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 14px;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

    input:focus, textarea:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 2px rgba(189,0,0,0.25);
    }

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
footer {
    background: var(--black);
    color: var(--white);
    padding: 18px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary);
}
/* HERO variation for contact page */
.contact-hero {
    /* start with the same responsive padding as regular hero */
    padding: clamp(50px, 8vw, 90px) 0 clamp(40px, 6vw, 80px);
}

/* override on contact page specifically */
.contact-page .contact-hero {
    /* fixed small padding to keep header short */
    padding: 3rem 0; /* roughly three lines of text height */
}

/* also disable the default hero-inner minimum height on contact page */
.contact-page .hero-inner {
    min-height: auto;
}

/* on very narrow phones reduce even more */
@media (max-width: 640px) {
    .contact-page .contact-hero {
        padding: 2.5rem 0;
    }
    /* align header contents vertically at smallest sizes */
    .header-inner {
        align-items: center;
    }
}

/* Very small phones (iPhone SE, Galaxy Z Fold, etc.) */
@media (max-width: 360px) {
    .header-inner {
        align-items: center;
    }

    .logo-text .logo-main {
        font-size: 0; /* keep original text hidden; ::before shows "CNSTC" */
    }

    .logo-text .logo-main::before {
        font-size: 1.1rem; /* slightly smaller to fit very narrow screens */
    }
}

/* 🌟 Floating Contact Button -------------------------------------*/
.floating-contact-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    border: 2px solid var(--accent);
    z-index: 300;
    transition: 0.25s;
}

    .floating-contact-btn:hover {
        background: var(--accent);
        color: var(--black);
        transform: translateY(-2px);
    }
/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--black);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    border: 2px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    z-index: 299;
}

    .back-to-top-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top-btn:hover {
        background: var(--primary);
        color: var(--white);
    }

@media (max-width: 600px) {
    .back-to-top-btn {
        right: 16px;
        bottom: 78px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}
/* Responsive tweak */
@media (max-width: 600px) {
    .floating-contact-btn {
        right: 16px;
        bottom: 16px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .header-inner {
        align-items: center;
    }

    .site-header nav {
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* HERO BUTTONS MOBILE FIX */
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

        .hero-actions .btn {
            width: 100%;
            max-width: 260px;
            text-align: center;
        }
}
/* ----- BRAND WEBSITE BUTTON STYLE ----- */
.btn-primary {
    background: #bd0000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
}

    .btn-primary:hover {
        background: #8b0000;
    }
/* PROMO PAGE */

.promo-placeholder {
    text-align: center;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

    .promo-placeholder h3 {
        color: #bd0000;
        margin-bottom: 10px;
    }

    .promo-placeholder p {
        margin-bottom: 10px;
    }
/* COMPANY PROFILE */

.company-profile-page main > section:not(.hero) {
    padding: 20px 0;
}

@media (max-width: 992px) {
    .company-profile-page main > section:not(.hero) {
        padding: 20px 0;
    }
}

@media (max-width: 640px) {
    .company-profile-page main > section:not(.hero) {
        padding: 20px 0;
    }
}

.company-values {
    max-width: 600px;
    margin: 20px auto;
    padding-left: 20px;
}

    .company-values li {
        margin-bottom: 8px;
        font-weight: 500;
    }
/* PARTNERS GRID */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 80px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* collapse to two columns on tablets, one on phones */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 40px;
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 12px 0;
        max-width: 100%;
        padding: 0 20px;
    }
}
    .partners-grid a {
        color: #bd0000;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.05rem;
    }

        .partners-grid a:hover {
            text-decoration: underline;
        }