/* 
====================================================================
   Sapmita Naturals - Enterprise Corporate Design System
   Version: 2.0
   Author: Senior UI/UX Architect
   Description: Unified styling for premium corporate identity.
==================================================================== 
*/

/* ------------------------------------------------------------------
   1. GLOBAL RESET & BASE STYLES
------------------------------------------------------------------ */
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #F59E0B;

    --text-color: #475569;

    --container-width: 1200px; /* Used as max-width for consistency */

    --radius: 8px;

    --transition: 0.3s ease;

    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;
    --color-primary-950: #172554;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-accent: #f59e0b;
    --color-accent-hover: #d97706;

    --font-primary: 'Inter', sans-serif;

    --spacing-section: 5rem;
    /* py-20 equivalent */
    --border-radius-card: 1rem;
    /* rounded-2xl */
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-slate-600);
    background-color: var(--color-slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
}

/* iOS & Mobile Fixes */
button, a {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px; /* Apple recommended */
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-600);
}

/* ------------------------------------------------------------------
   2. TYPOGRAPHY SYSTEM
------------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-slate-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    /* tight tracking for modern look */
}

h1 {
    font-size: 2.5rem;
    /* md:text-5xl */
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }

    /* lg:text-6xl */
}

h2 {
    font-size: 2.25rem;
    /* text-4xl */
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    /* text-2xl */
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-lead {
    font-size: 1.125rem;
    /* text-lg */
    color: var(--color-slate-600);
}

/* ------------------------------------------------------------------
   3. LAYOUT & CONTAINER SYSTEM
------------------------------------------------------------------ */
.container-custom {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    /* px-6 */
    padding-right: 1.5rem;
    max-width: 1280px;
    /* max-w-7xl equivalent */
}

.section-padding {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

/* ------------------------------------------------------------------
   4. COMPONENT: BUTTONS
------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    /* py-3 px-8 */
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    /* rounded-full */
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Button (Green) */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--color-primary-800);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(4, 120, 87, 0.2);
}

/* Outline Button (White/Transparent) */
.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Secondary/Ghost Button */
.btn-secondary {
    background-color: white;
    color: var(--color-primary-700);
    border: 1px solid var(--color-slate-200);
}

.btn-secondary:hover {
    background-color: var(--color-slate-50);
    color: var(--color-primary-800);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   5. COMPONENT: CARDS
------------------------------------------------------------------ */
.card {
    background-color: white;
    border-radius: var(--border-radius-card);
    /* rounded-2xl */
    padding: 2rem;
    /* p-8 */
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-slate-100);
    transition: all 0.3s ease;
    height: 100%;
    /* Ensures equal height in grid */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-100);
}

/* Icon Container in Cards */
.card-icon {
    width: 3.5rem;
    /* w-14 */
    height: 3.5rem;
    /* h-14 */
    border-radius: 0.75rem;
    /* rounded-xl */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

/* ------------------------------------------------------------------
   6. HEADER & NAVIGATION
------------------------------------------------------------------ */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-slate-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    color: var(--color-slate-600);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary-700);
    background-color: var(--color-slate-50);
}

/* ------------------------------------------------------------------
   7. FOOTER
------------------------------------------------------------------ */
.footer-dark {
    background-color: var(--color-slate-900);
    color: var(--color-slate-300);
    padding-top: 4rem;
    /* py-16 */
    padding-bottom: 4rem;
    border-top: 1px solid var(--color-slate-800);
}

.footer-link {
    color: var(--color-slate-400);
    transition: color 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
    /* text-sm */
}

.footer-link:hover {
    color: white;
}

/* ------------------------------------------------------------------
   8. FORM STYLES
------------------------------------------------------------------ */
.form-input,
.form-textarea {
    width: 100%;
    background-color: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 0.75rem 1rem;
    color: var(--color-slate-900);
    transition: all 0.2s;
    font-size: 16px; /* Prevent iOS zoom */
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    /* ring-primary-600 */
    background-color: white;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-slate-700);
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------
   9. UTILITIES & ANIMATIONS
------------------------------------------------------------------ */
/* Smooth Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Image Aspect Ratios */
.aspect-card-image {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
}

/* Responsive Grid Utilities (Tailwind override/complement) */
.grid-standard {
    display: grid;
    gap: 2rem;
    /* gap-8 */
}

@media (min-width: 768px) {
    .grid-cols-2-md {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-3-md {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-cols-4-md {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-primary-600);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-700);
    transform: scale(1.1);
}

/* ------------------------------------------------------------------
   10. GLOBAL ANIMATION SYSTEM
------------------------------------------------------------------ */

/* Base class for elements to be animated */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* Scale In Animation (for cards) */
.scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.scale-in-on-scroll.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Blur In Animation (for backgrounds/images) */
.blur-in-on-scroll {
    opacity: 0;
    filter: blur(10px);
    transition: all 1s ease-out;
}

.blur-in-on-scroll.is-visible {
    opacity: 1;
    filter: blur(0);
}

/* Texture Overlay Class */
.bg-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   11. COOKIE CONSENT BANNER (GLASSMORPHISM UI)
------------------------------------------------------------------ */
.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(10, 25, 47, 0.95); /* Dark Blue with transparency */
    backdrop-filter: blur(10px); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    color: #e6f1ff;
    margin: 0;
    font-size: 14px;
}

.policy-link {
    color: #ff9d00;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Accept Button (Orange) */
.btn-accept {
    background-color: #ff9d00;
    color: #000;
    border: none;
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-accept:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

/* Decline Button (Outline) */
.btn-decline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ------------------------------------------------------------------
   12. PRIVACY POLICY PAGE
------------------------------------------------------------------ */
.privacy-section {
    padding: 80px 20px;
    background-color: #f9fbff; /* Very light blue tint */
    color: #333;
    line-height: 1.8;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.privacy-container h1 {
    font-size: 2.5rem;
    color: #0a192f; /* Your theme Dark Blue */
    margin-bottom: 10px;
    font-weight: 800;
}

.last-updated {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.policy-block {
    margin-bottom: 30px;
}

.policy-block h2 {
    font-size: 1.4rem;
    color: #0a192f;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.policy-block p, .policy-block li {
    font-size: 1.05rem;
    color: #444;
}

.policy-block ul {
    padding-left: 20px;
}

.policy-block ul li {
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .privacy-container {
        padding: 25px;
    }
    .privacy-container h1 {
        font-size: 2rem;
    }
}

.policy-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f1f4f8;
    text-align: center;
}

.policy-footer p {
    margin-bottom: 25px;
    color: #666;
}

.contact-link {
    color: #ff9d00; /* Your Brand Orange */
    font-weight: 600;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.btn-back-home {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0a192f; /* Your Brand Blue */
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.2);
}

.btn-back-home:hover {
    background-color: #ff9d00; /* Switches to Orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 157, 0, 0.3);
}

/* Adding an icon margin if you use FontAwesome */
.btn-back-home i {
    margin-right: 8px;
}

/* ------------------------------------------------------------------
   13. RESPONSIVE CONTAINER UTILITIES
------------------------------------------------------------------ */

/* Desktop / Default */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* Tablet */
@media (max-width: 992px) {
  .container {
    width: 90%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 10px;
  }
}

/* ------------------------------------------------------------------
   14. SWIPER CUSTOMIZATION
------------------------------------------------------------------ */
.heroSwiper {
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}

.heroSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Only hide homepage hero */
.hero-section {
  display: none !important;
}
