
/* 
===============================================
   Biosusz.pl Modern UI/UX Overrides
   Generated via UI UX Pro Max Skill
===============================================
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Biosusz Brand Colors */
  --color-primary: #00286e;
  --color-secondary: #0040af;
  --color-cta: #0891B2;
  --color-background-light: #f8fafc;
  --color-background-card: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #475569;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Shadows (Depth) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Borders (Organic Biophilic) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Base Typography Overrides */
body, p, span, li, a, div, td, th {
  font-family: 'Open Sans', sans-serif !important;
  color: var(--color-text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  color: var(--color-primary); /* Removed !important to allow layout-specific text colors */
  letter-spacing: -0.02em;
}

/* Organic Shapes & Shadows for Cards and Image Holders */
.feature-box, .feature-box24, .feature-box25, .feature-box26, .feature-box27, .feature-box28, .feature-box29, .feature-box31, .feature-box32, .feature-box33, .feature-box34, .item, .portfolio-box, .team-box, .pricetable-holder4 {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
  transition: all 300ms ease !important;
  border: none !important;
}

.feature-box:hover, .feature-box24:hover, .feature-box25:hover, .feature-box26:hover, .feature-box27:hover, .feature-box28:hover, .feature-box29:hover, .feature-box31:hover, .feature-box32:hover, .feature-box33:hover, .feature-box34:hover, .item:hover, .portfolio-box:hover, .team-box:hover, .pricetable-holder4:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-4px);
}

img {
  border-radius: var(--radius-sm);
}

/* Buttons Modernization */
.btn, .button, input[type="submit"], input[type="button"], button {
  font-family: 'Poppins', sans-serif !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  transition: all 200ms ease !important;
  cursor: pointer !important;
  box-shadow: var(--shadow-sm);
  text-transform: none !important; 
  padding: 12px 24px !important;
}

.btn:hover, .button:hover, input[type="submit"]:hover, input[type="button"]:hover, button:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Color and background normalization for interactive elements */
a, button, .btn, .button, .product-card, .team-card {
  transition: all 300ms ease !important;
  cursor: pointer !important;
}
a:hover {
  color: var(--color-secondary) !important;
}

/* Forms and Inputs */
input[type="text"], input[type="email"], input[type="password"], textarea, select, .input {
  border-radius: var(--radius-md) !important;
  border: 1px solid #cbd5e1 !important;
  padding: 12px 16px !important;
  font-family: 'Open Sans', sans-serif !important;
  transition: border-color 200ms ease, box-shadow 200ms ease !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus, .input:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 40, 110, 0.2) !important;
}

/* Tweak site background to lighter modern neutral instead of stark white */
body {
  background-color: var(--color-background-light);
}

/* Make header bars and footers match primary color fully */
.header-inner, .header-inner-2, .navbar-default, .footer, .bottom-shape1, .top-shape1 {
  background-color: var(--color-primary) !important;
  background-blend-mode: multiply;
}

/* Mega menu drop downs with organic radius */
.dropdown-menu {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: none !important;
}

/* Logo Positioning & Transparency Override */
.desktop-view .navbar {
    background-image: url('../Biosusz logo.png') !important;
    background-position: left center !important;
    background-color: #ffffff !important; /* Full Opacity White */
    justify-content: flex-end !important;
}
.desktop-view .navbar::before {
    display: none !important;
}
.desktop-view .navbar-nav {
    justify-content: flex-end !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* Footer Logo Override */
.section-copyrights img {
    background: transparent !important;
    display: inline-block;
    vertical-align: middle;
}
.section-copyrights span {
    margin-top: 15px !important; /* Vertically align text with smaller logo */
}

/* Contrast Fixes for Dark/Blue Background Sections */
.section-orange-3, .section-fulldark, .parallax-section43, .parallax-section44 {
    background-color: var(--color-primary) !important;
    background-blend-mode: multiply;
}

/* Ensure 'Read More' buttons and text links on dark backgrounds are legible */
.btn.white, .btn-border.white, .btn-border.white:hover, .text-white, .text-white * {
    color: #ffffff !important;
}

/* Equal Height Business Commitment Boxes */
.feature-box-commitment {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
}

.feature-box-commitment:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 40, 110, 0.1);
}

.feature-box-commitment .icon-box {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-box-commitment h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.feature-box-commitment p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.row.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.row.flex-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px; /* Add margin for mobile stacking */
}

@media (max-width: 767px) {
    .row.flex-row {
        flex-direction: column;
    }
    .col-md-4, .col-sm-6 {
        width: 100% !important;
    }
    .member-thumb {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }
}

/* Ensure equal heights for home page feature boxes with overlays */
.feature-box61 {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-box61:hover {
    transform: translateY(-5px);
}

.feature-box61 .image-holder {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Consistent aspect ratio to prevent collapse */
    overflow: hidden;
    flex-shrink: 0;
}

.feature-box61 .image-holder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.feature-box61 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 110, 0.4); /* Brand blue with opacity */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.feature-box61:hover .overlay {
    background-color: rgba(0, 40, 110, 0.6);
}

.feature-box61 .overlay h3 {
    color: #fff !important;
    font-size: 22px;
    margin-bottom: 5px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.feature-box61 .overlay span {
    color: #fff !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Our Team Section Styling */
.team-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.team-card {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 40px !important;
    border: 1px solid #edf2f7 !important;
    height: calc(100% - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.team-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 40, 110, 0.1) !important;
}

.member-thumb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-top: -70px; /* Pull image up halfway */
    margin-bottom: 20px;
    border: 8px solid #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.team-card h4 {
    margin-bottom: 5px !important;
    font-size: 18px !important;
    color: var(--color-primary) !important;
}

.team-card .designation {
    font-size: 14px !important;
    color: var(--color-cta) !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
}

/* Product Card Styling (List Page) */
.product-card {
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #edf2f7 !important;
    margin-bottom: 30px !important;
}

.product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 40, 110, 0.12) !important;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    border-radius: 0 !important;
}

.product-card:hover .product-image img {
    transform: scale(1.1) !important;
}

.product-info {
    padding: 25px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-info h3 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
}

.product-info h3 a {
    color: var(--color-primary) !important;
    text-decoration: none !important;
}

.product-info p {
    font-size: 14px !important;
    color: var(--color-text-muted) !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
}

.product-btn {
    display: inline-block !important;
    padding: 10px 20px !important;
    background-color: transparent !important;
    border: 2px solid var(--color-secondary) !important;
    color: var(--color-secondary) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    width: fit-content !important;
    text-decoration: none !important;
}

.product-btn:hover {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
}

/* Background Utility Classes */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.bg-light-blue {
    background-color: #3b82f6 !important; /* Brighter Blue for contrast */
}

.feature-box-78 {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px; /* Ensure a decent base height */
    justify-content: center;
}

.feature-box-78:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Padding utilities if missing */
.padding-3 { padding: 30px !important; }

/* Feature Box Icons */
.icon-feature {
    font-size: 36px !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    display: inline-block;
}

.feature-box-78 h5 {
    margin-bottom: 15px !important;
    font-size: 18px !important;
}

.feature-box-78 p {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* Utility to hide the title lines that 'break the content' */
.hide-title-line {
    display: none !important;
}
/* ---- Topbar Spread Layout (desktop) ---- */
.topbar-spread {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 0 !important;
}
.topbar-spread span {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  letter-spacing: 0.5px;
}

/* ===============================================
   MOBILE RESPONSIVE OVERRIDES — UI/UX Pro Max
   Breakpoints: 767px | 480px | 360px
   Rules applied:
     touch-target-size (44×44px min)
     readable-font-size (16px min body)
     horizontal-scroll prevention
     line-length, typography, layout & responsive
   =============================================== */

/* ===================== 767px ===================== */
@media only screen and (max-width: 767px) {

  /* 1. TOPBAR — Reverted to original layout */
  .topbar-spread {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }
  .topbar-spread span {
    font-size: 11px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }

  /* 2. HERO SLIDER — shrink height, readable text */
  .biosusz-hero {
    height: 360px !important;
  }
  .biosusz-hero .slide-content {
    padding: 0 20px !important;
  }
  .biosusz-hero .slide-title {
    font-size: clamp(20px, 6vw, 32px) !important;
    margin-bottom: 12px !important;
  }
  .biosusz-hero .slide-tag {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    padding: 5px 14px !important;
    margin-bottom: 12px !important;
  }
  .biosusz-hero .slide-sub {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    margin-bottom: 16px !important;
  }
  .biosusz-hero .slide-cta {
    font-size: 13px !important;
    padding: 11px 24px !important;
  }

  /* 3. MOBILE LOGO & NAVBAR FIX */
  .mob-view .navbar {
    min-height: 95px !important; /* Increased for larger logo */
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    background-color: #ffffff !important; /* White BG for better logo visibility */
    border-bottom: 1px solid #edf2f7 !important; /* Subtle border to separate from content */
  }
  .mob-view .navbar-brand {
    padding: 10px 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .mob-view .navbar-brand img {
    max-height: 75px !important; /* Increased size */
    width: auto !important;
    object-fit: contain !important;
  }
  .navbar-toggle {
    margin-top: 25px !important; /* Adjusted vertical alignment for taller navbar */
    margin-right: 0 !important;
    background-color: var(--color-primary) !important; /* Make toggle button visible on white bg */
  }
  .navbar-toggle .icon-bar {
    background-color: #ffffff !important;
  }


  /* 4. HEADER VIEWS — mob vs desktop */
  #header .mob-view {
    display: block !important;
  }
  #header .desktop-view {
    display: none !important;
  }

  /* 5. MOBILE DROPDOWN MENU FIX */
  .navbar-collapse {
    width: 100% !important;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    position: absolute !important;
    top: 100% !important; /* Start right below header */
    left: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .navbar-nav {
    margin: 0 !important;
    width: 100% !important;
  }
  .navbar-nav > li {
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
  }
  .navbar-nav > li:last-child {
    border-bottom: none !important;
  }
  .navbar-nav > li > a {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    color: #333333 !important;
    font-weight: 500 !important;
    white-space: normal !important;
  }
  
  /* Dropdown sub-menu fixes */
  .navbar-nav .dropdown-menu {
    background-color: #fafafa !important;
    border: none !important;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.02) !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important; /* Let it push content down naturally */
    float: none !important;
    width: 100% !important;
  }
  .navbar-nav .open .dropdown-menu {
    display: block !important;
  }
  .navbar-nav .dropdown-menu > li {
    border-bottom: 1px solid #eeeeee !important;
  }
  .navbar-nav .dropdown-menu > li:last-child {
    border-bottom: none !important;
  }
  .navbar-nav .dropdown-menu > li > a {
    padding: 12px 20px 12px 40px !important; /* Indent sub-items deeper */
    color: #555555 !important;
    font-size: 15px !important;
    display: block !important;
    white-space: normal !important;
  }


  /* 6. TYPOGRAPHY — min 16px, left-align (no justify rivers) */
  body, p, span, li, div {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  .text-justify,
  p.text-justify,
  .col-md-12 p,
  .col-centered p,
  section p {
    text-align: left !important;
  }
  h1 { font-size: clamp(22px, 7vw, 36px) !important; }
  h2 { font-size: clamp(20px, 6vw, 30px) !important; }
  h3 { font-size: clamp(18px, 5vw, 24px) !important; }
  h4 { font-size: clamp(16px, 4.5vw, 20px) !important; }

  /* 7. OVERFLOW PREVENTION */
  body, .site_wrapper {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 8. GRID → single column */
  .row.flex-row > [class*='col-'] {
    width: 100% !important;
    margin-bottom: 24px !important;
  }
  .col-md-4, .col-md-3, .col-sm-6 {
    width: 100% !important;
  }

  /* 9. TEAM CARDS — fix member-thumb negative margin */
  .team-section {
    padding: 50px 0 !important;
  }
  .row.margin-top-5 {
    margin-top: 60px !important;
  }
  .team-card {
    margin-top: 60px !important;
    padding: 20px 20px 24px !important;
    margin-bottom: 20px !important;
    height: auto !important;
  }
  .member-thumb {
    width: 100px !important;
    height: 100px !important;
    margin-top: -50px !important;
    margin-bottom: 14px !important;
    border-width: 5px !important;
  }

  /* 10. PRODUCT CARDS */
  .product-card {
    margin-bottom: 20px !important;
  }
  .product-image {
    height: 180px !important;
  }
  .product-info {
    padding: 18px !important;
  }
  .product-btn {
    width: 100% !important;
    text-align: center !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 11. FOOTER */
  .section-fulldark .col-md-3 {
    width: 100% !important;
    margin-bottom: 28px !important;
    padding: 0 8px !important;
  }
  .footer .usefull-links li a {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 12. SECTION SPACING */
  .sec-padding {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* 13. FEATURE BOX 61 */
  .feature-box61 .image-holder {
    padding-top: 56% !important;
  }
  .feature-box61 .overlay h3 {
    font-size: 18px !important;
  }

  /* 14. COMMITMENT BOXES */
  .feature-box-commitment {
    padding: 28px 20px !important;
    margin-bottom: 20px !important;
  }

  /* 15. ALL BUTTONS — accessible tap size */
  .btn, .button, input[type="submit"], input[type="button"], button {
    min-height: 44px !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
  }

  /* 16. COPYRIGHTS */
  .section-copyrights .col-md-6 {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }
}

/* ===================== 480px ===================== */
@media only screen and (max-width: 480px) {

  /* Topbar: Horizontal but compact */
  .topbar-spread {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
  }
  .topbar-spread span {
    font-size: 10px !important;
  }

  /* Hero: more compact */
  .biosusz-hero {
    height: 300px !important;
  }
  .biosusz-hero .slide-title {
    font-size: clamp(17px, 6vw, 24px) !important;
  }

  /* Force single-column product cards */
  .col-sm-6 {
    width: 100% !important;
  }

  /* Mobile nav brand logo sizing further */
  .mob-view .navbar-brand img {
    max-height: 50px !important;
  }

  /* Inner page header banners */
  .header-inner, .header-inner-2 {
    min-height: 120px !important;
    height: auto !important;
  }
  .header-inner .title,
  .header-inner-2 .title {
    padding: 30px 16px !important;
    font-size: clamp(18px, 6vw, 26px) !important;
  }
}

/* ===================== 360px ===================== */
@media only screen and (max-width: 360px) {
  .topbar-spread span {
    font-size: 9px !important;
  }
  .biosusz-hero {
    height: 270px !important;
  }
  .biosusz-hero .slide-title {
    font-size: 16px !important;
  }
  .navbar-nav > li > a {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
}
