html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(120deg, var(--stone-grey) 0%, var(--muted-yellow) 100%);
  color: var(--primary-green);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@import url('color.css');

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile-friendly navigation menu */
.nav-menu {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem;
}
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.nav-menu li {
    display: block;
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.nav-menu a:hover {
    background: #f0f0f0;
}

/* Hamburger styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .nav-menu ul {
        flex-direction: column;
        display: none;
        width: 100%;
    }
    .nav-menu ul.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
        margin-bottom: 0.5rem;
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--earth-brown);
    color: #fff;
    box-shadow: var(--nature-shadow);
}

.btn-success:hover {
    background-color: var(--earth-brown);
    border-color: var(--primary-green);
    color: var(--muted-yellow);
}

.min-vh-50 {
    min-height: 50vh !important;
}

.min-vh-40 {
    min-height: 40vh !important;
}


/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: var(--earth-brown);
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-green);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background: linear-gradient(90deg, var(--earth-brown) 60%, var(--stone-grey) 100%);
    color: var(--primary-green);
    box-shadow: var(--nature-shadow);
}

.hero-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.feature-card {
    transition: all 0.2s ease;
    border-radius: 12px;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    }

.icon-circle {
    width: 60px;
    height: 60px;
    background: #198754;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn {
    border-radius: 8px;
}


.blog-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.blog-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }

.blog-title {
    font-weight: 700;
    color: #005a9e;
}

.blog-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-excerpt {
    color: #444;
}

.btn-read {
    font-weight: 600;
    color: #005a9e;
    text-decoration: none;
}

    .btn-read:hover {
        text-decoration: underline;
    }

.navbar-logo {
    max-height: 90px;
    max-width: 180px;
    width: auto;
    height: auto;
}

.company-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.35rem;
    white-space: nowrap;
}

/* Desktop */
@media (min-width: 992px) {
    .company-name {
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Mobile */
@media (max-width: 991.98px) {
    .navbar-logo {
        max-height: 60px;
        max-width: 100px;
    }

    /* Prevent overlap with hamburger/menu */
    .company-name {
        position: static;
        transform: none;
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: .35rem;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        font-size: 1rem;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}


/* Keep floated image contained within hero */
.hero-content {
    display: flow-root;
}

/* Image starts at top-right */
.hero-float-image {
    float: right;
    display: block;
    width: 42%;
    max-width: 500px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    /* Space between image and wrapped text */
    margin: 0 0 20px 35px;
    border-radius: 12px;
}

/* Heading and description wrap naturally */
.hero-content h1 {
    line-height: 1.15;
    overflow-wrap: break-word;
}

.hero-description {
    line-height: 1.8;
}

    .hero-description p {
        margin-bottom: 1rem;
    }

/* Buttons can wrap beside or below image */
.hero-actions {
    display: block;
}

    .hero-actions .btn {
        display: inline-block;
        margin: 0 10px 10px 0;
    }

/* Tablet */
@media (max-width: 991.98px) {
    .hero-float-image {
        width: 40%;
        max-width: 350px;
        margin-left: 24px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .hero-float-image {
        float: none;
        width: 100%;
        max-width: 320px;
        max-height: 320px;
        margin: 0 auto 24px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 0 0 12px;
    }
}



/* =========================================
   Floating Contact Widget
   ========================================= */

#contactWidget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Collapsed button */
#contactWidgetToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    background: #198754;
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

    #contactWidgetToggle:hover {
        background: #146c43;
        transform: translateY(-2px);
    }

/* Expanded panel */
#contactWidgetPanel {
    width: 355px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,.25);
    overflow: hidden;
    color: #333;
}

/* Main content */
.contact-widget-main {
    position: relative;
    padding: 24px;
    text-align: center;
}

/* Close button */
.contact-widget-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #555;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

    .contact-widget-close:hover {
        background: #e5e7eb;
        color: #111;
    }

/* Company logo */
.contact-widget-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0 15px;
    min-height: 50px;
}

    .contact-widget-logo:empty {
        display: none;
    }

    .contact-widget-logo img {
        max-width: 150px;
        max-height: 70px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

/* Heading */
.contact-widget-main h3 {
    margin: 10px 0 12px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    color: #397b35;
}

/* Description */
.contact-widget-main p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Main Contact Us button */
.contact-widget-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: #198754;
    color: white !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s;
}

    .contact-widget-primary:hover {
        background: #146c43;
        color: white !important;
    }

/* Footer quick actions */
.contact-widget-footer {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px 8px;
}

/* Individual action */
.contact-widget-action {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 5px 3px;
    color: #555 !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
}

    .contact-widget-action:hover {
        color: #198754 !important;
    }

/* Action icon circles */
.contact-widget-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8f5ec;
    color: #198754;
    font-size: 19px;
    transition: background .2s;
}

.contact-widget-action:hover
.contact-widget-action-icon {
    background: #d2ebd9;
}

/* Hidden elements */
#contactWidgetToggle[hidden],
#contactWidgetPanel[hidden] {
    display: none !important;
}

/* Mobile */
@media (max-width: 575.98px) {
    #contactWidget {
        right: 10px !important;
        bottom: 15px !important;
    }

    #contactWidgetPanel {
        width: min(355px, calc(100vw - 20px));
    }

    .contact-widget-main {
        padding: 20px;
    }

        .contact-widget-main h3 {
            font-size: 21px;
        }
}
