
/* --- Root Variables and Base Styles --- */
:root {
    --primary-dark: #0D2447;
    --secondary-orange: #F97316;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --black: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    color: var(--gray-800);
    background-color: var(--white);
    margin: 0;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }

/* --- Grid System --- */
.grid {
    display: grid;
}
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.items-center { align-items: center; }

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-contact { grid-template-columns: 2fr 1fr; }


/* --- Header --- */
.header {
    background-color: var(--primary-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease-in-out;
}
.header.scrolled {
    background-color: rgba(13, 36, 71, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo-accent {
    color: var(--secondary-orange);
}
.main-nav {
    display: none; /* Hidden on mobile */
    gap: 1.5rem;
}
.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--secondary-orange);
}
.nav-link.active {
    color: var(--secondary-orange);
}
.mobile-menu-button {
    display: block; /* Shown on mobile */
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}
.mobile-menu-button .icon {
    width: 1.5rem;
    height: 1.5rem;
}
.mobile-menu {
    background-color: rgba(13, 36, 71, 0.95);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark);
    color: var(--gray-300);
    padding: 3rem 0;
}
.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}
.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-text { font-size: 0.875rem; }
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a:hover, .footer-social a:hover {
    color: var(--secondary-orange);
    transition: color 0.3s ease;
}
.footer-contact li { font-size: 0.875rem; }
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-secondary {
    background-color: var(--secondary-orange);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: #EA580C; /* darker orange */
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* --- Sections & Page Hero --- */
.section {
    padding: 5rem 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar from animations */
}
.bg-light { background-color: var(--gray-50); }
.bg-primary { background-color: var(--primary-dark); color: var(--white); }
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.section-subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-600);
    margin-bottom: 3rem;
}
.page-hero {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 6rem 0;
}
.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
}
.page-hero-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--gray-300);
}


/* --- Cards --- */
.card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transform: translateY(-8px);
}
.card-image {
    display: block;
}
.card-img-top {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-image:hover .card-img-top {
    transform: scale(1.05);
}
.card-body {
    padding: 1.5rem;
    text-align: left;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.card-title-sm {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.card p {
    color: var(--gray-600);
}
.text-sm {
    font-size: 0.875rem;
}
.card-img-top-small {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}
.card-image-full {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-image-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.card-img-top-large {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}


/* --- Animations --- */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
    opacity: 0; /* Start hidden */
}
.animate-fade-in-down {
  animation: fade-in-down 0.8s ease-out forwards;
}
.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards 0.4s;
}
.hero-content .btn.animate-fade-in-up {
    animation-delay: 0.6s;
}

/* Base state for scroll animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.17, 0.55, 0.55, 1) 0.1s,
                transform 0.7s cubic-bezier(0.17, 0.55, 0.55, 1) 0.1s;
}

/* Default animation: fade up */
.animate-on-scroll {
    transform: translateY(30px);
}
.animate-on-scroll.from-left {
    transform: translateX(-30px);
}
.animate-on-scroll.from-right {
    transform: translateX(30px);
}

/* Visible state */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}


/* Staggered animation delays for grid items */
.grid > .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.grid > .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.grid > .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.grid > .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.grid > .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.grid > .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }
.grid > .animate-on-scroll:nth-child(7) { transition-delay: 0.7s; }
.grid > .animate-on-scroll:nth-child(8) { transition-delay: 0.8s; }
.grid > .animate-on-scroll:nth-child(9) { transition-delay: 0.1s; } /* Restart for next row with a small delay */
.grid > .animate-on-scroll:nth-child(10) { transition-delay: 0.2s; }
.grid > .animate-on-scroll:nth-child(11) { transition-delay: 0.3s; }
.grid > .animate-on-scroll:nth-child(12) { transition-delay: 0.4s; }
.grid > .animate-on-scroll:nth-child(13) { transition-delay: 0.5s; }
.grid > .animate-on-scroll:nth-child(14) { transition-delay: 0.6s; }
.grid > .animate-on-scroll:nth-child(15) { transition-delay: 0.7s; }
.grid > .animate-on-scroll:nth-child(16) { transition-delay: 0.8s; }


/* --- Home Page Specific --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    color: var(--white);
    overflow: hidden;
}
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1.05);
}
.hero-image.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 8s ease-out;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--primary-dark);
    opacity: 0.6;
}
.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
}
.hero-content .btn {
    margin-top: 2rem;
}

.about-snippet-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.about-snippet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-number {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--secondary-orange);
}
.stat-label {
    margin-top: 0.5rem;
    font-size: 1.125rem;
}
.testimonial-card {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.testimonial-card:hover {
    transform: translateY(-8px);
}
.testimonial-quote {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-name {
    font-weight: 700;
    color: var(--primary-dark);
}
.testimonial-company {
    font-size: 0.875rem;
    color: var(--secondary-orange);
}

/* --- Service Pages --- */
.feature-card {
    text-align: center;
    padding: 1.5rem;
}
.feature-img {
    height: 6rem;
    width: 6rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    margin: 0 auto 1rem auto;
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-img {
    transform: scale(1.1);
}
.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Local Supply Page */
.supply-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    height: 16rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.supply-card:hover {
    transform: translateY(-8px);
}
.supply-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.supply-card:hover .supply-card-img {
    transform: scale(1.1);
}
.supply-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}
.supply-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    width: 100%;
}
.supply-card-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    transform: translateY(0.5rem);
    opacity: 0.9;
    transition: all 0.3s ease;
}
.supply-card:hover .supply-card-title {
    transform: translateY(0);
    opacity: 1;
}

/* Product Gallery Page */
.gallery-card {
    position: relative;
    display: block;
    background-color: var(--black);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 20rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-card:hover {
    transform: translateY(-8px);
}
.gallery-card-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.4s ease;
}
.gallery-card:hover .gallery-card-img {
    opacity: 0.5;
    transform: scale(1.05);
}
.gallery-card-content {
    position: relative;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.gallery-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}
.gallery-card-description {
    margin-top: 1rem;
    transform: translateY(2rem);
    opacity: 0;
    transition: all 0.3s ease;
}
.gallery-card:hover .gallery-card-description {
    transform: translateY(0);
    opacity: 1;
}
.gallery-card-description p {
    font-size: 0.875rem;
    color: var(--white);
}

/* About Page */
.mission-vision-card {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}
.mission-vision-card:hover {
    transform: translateY(-5px);
    background-color: #122d52;
}
.mission-vision-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-orange);
}
.team-member {
    text-align: center;
}
.team-member-img {
    margin: 0 auto 1rem auto;
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
.team-member:hover .team-member-img {
    transform: scale(1.05);
}
.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.team-member-title {
    color: var(--secondary-orange);
}

/* Contact Page */
.contact-form-container {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--secondary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.contact-info-container {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.contact-info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-subtitle {
    font-weight: 700;
    color: var(--secondary-orange);
}
.map-section {
    width: 100%;
    height: 24rem;
}


/* --- Responsive Design --- */
@media (min-width: 768px) {
    .main-nav { display: flex; }
    .mobile-menu-button { display: none; }
    .mobile-menu { display: none !important; }

    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }

    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.5rem; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-cols-contact { grid-template-columns: 2fr 1fr; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
