/* =============================================
   SAHAZA - Eco Living | styles.css
   ============================================= */

/* SMOOTH SCROLL */
html {
    scroll-behavior: smooth;
}

/* BASE */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #F5F1E8;
    color: #1E2D24;
}

/* GLOBAL CONTAINER */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;
}

/* =============================================
   NAV
   ============================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: #F5F1E8;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.logo {
    height: 50px;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1E2D24;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: #0B8F2F;
    color: white;
}

.nav-links a.active {
    color: #0B8F2F;
    font-weight: 600;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #1E2D24;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #F5F1E8;
    padding: 10px 20px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-menu a {
    text-decoration: none;
    color: #1E2D24;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid #e0dbd0;
    transition: color 0.2s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: #0B8F2F;
}

.mobile-menu.open {
    display: flex;
}

/* =============================================
   HERO (index)
   ============================================= */
.hero {
    height: 100vh;
    background-image: url('images/mainImage1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    animation: fadeUp 0.9s ease both;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 6vw, 56px);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero p {
    margin-top: 20px;
    font-size: clamp(15px, 2.5vw, 18px);
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: 70px 0;
    text-align: center;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 20px;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 24px 20px;
    border-radius: 14px;
    width: 260px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 28px rgba(11,143,47,0.15);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.04);
}

/* LIGHT BG SECTION */
.bg-light {
    background: #E8E3D8;
    border-radius: 30px;
    margin: 0 16px;
}

/* =============================================
   MISSION SECTION
   ============================================= */
.section p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 720px;
    text-align: left;
}

.mission-list li {
    padding: 12px 0 12px 24px;
    border-bottom: 1px solid #e0dbd0;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
}

.mission-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0B8F2F;
    font-weight: bold;
}

.mission-list li:last-child {
    border-bottom: none;
}

/* =============================================
   BUTTON
   ============================================= */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 24px;
    background: #0B8F2F;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background: #097326;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(11,143,47,0.25);
}

.btn:active {
    transform: translateY(0);
}

/* =============================================
   FLOATING CONTACT BUTTONS
   ============================================= */
.whatsapp,
.email {
    position: fixed;
    right: 20px;
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.whatsapp {
    bottom: 20px;
    background: #0B8F2F;
}

.email {
    bottom: 72px;
    background: #096825;
}

.whatsapp:hover,
.email:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    background: #054b18;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: #1b1b1b;
    color: #fff;
    padding: 50px 30px 16px;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.footer-section h2,
.footer-section h3 {
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #bbb;
    text-decoration: none;
    line-height: 1.9;
    display: block;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 14px;
    font-size: 13px;
    color: #777;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
    text-align: center;
    padding: 70px 20px 50px;
    background: linear-gradient(135deg, #e8f5ec 0%, #f5f1e8 100%);
}

.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 14px;
}

.contact-hero p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 24px;
    max-width: 1000px;
    margin: auto;
}

.contact-info {
    flex: 1;
    min-width: 260px;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.6;
}

.socials {
    margin: 18px 0;
    display: flex;
    gap: 12px;
}

.socials a {
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-block;
}

.socials a:hover {
    transform: scale(1.3);
}

.contact-note {
    margin-top: 20px;
    font-size: 13px;
    color: #777;
    background: #f0f0e8;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid #0B8F2F;
}

.contact-form {
    flex: 1;
    min-width: 260px;
}

.contact-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0B8F2F;
    box-shadow: 0 0 0 3px rgba(11,143,47,0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.success-message {
    display: none;
    margin-top: 14px;
    color: #0B8F2F;
    font-weight: 500;
    background: #e8f5ec;
    padding: 10px 14px;
    border-radius: 8px;
}

/* Map protection */
.map-container {
    position: relative;
}
.map-container iframe {
    pointer-events: none; /* Prevents scroll trapping */
}
.map-container.active iframe {
    pointer-events: auto; /* Re-enables on tap */
}
.map-instruction {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    display: block;
}

.map-section {
    padding: 0 24px 50px;
    max-width: 1000px;
    margin: auto;
}

.map-section iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* =============================================
   OUR VALUES PAGE
   ============================================= */
.values-hero {
    text-align: center;
    padding: 70px 20px 40px;
    background: linear-gradient(135deg, #e8f5ec 0%, #f5f1e8 100%);
}

.values-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 14px;
}

.intro {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.values-page {
    max-width: 1000px;
    margin: auto;
    padding: 0 24px 60px;
}

.values-container {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    align-items: flex-start;
}

/* LEFT IMAGES */
.values-images {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    flex-shrink: 0;
}

.values-images img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0B8F2F;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.values-images img:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(11,143,47,0.25);
}

.img-small  { width: 90px;  height: 90px;  margin-left: 0;  }
.img-medium { width: 120px; height: 120px; margin-left: 20px; }
.img-large  { width: 150px; height: 150px; margin-left: 40px; }

/* RIGHT CONTENT */
.values-content {
    flex: 1;
}

.value {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e0dbd0;
    transition: transform 0.2s;
}

.value:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.value:hover {
    transform: translateX(4px);
}

.value h2 {
    color: #0B8F2F;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.value p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* CTA */
.values-cta {
    background: linear-gradient(135deg, #e8f5ec, #f0f5e8);
    padding: 24px 28px;
    margin-top: 50px;
    border-left: 4px solid #0B8F2F;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    font-size: 15px;
    color: #1E2D24;
}

/* =============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================= */
@media (max-width: 768px) {

    nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Point 1: Highlight active link in Mobile Menu */
    .mobile-menu a.active {
        color: #0B8F2F;
        font-weight: 700;
        border-left: 4px solid #0B8F2F;
        padding-left: 12px;
    }

    /* Point 2: Adjusted Floating Buttons for thumb space */
    .whatsapp, .email {
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    .email { bottom: 68px; }

    /* Point 3: Readability - Better line height for mobile eyes */
    .value p, .mission-list li, .contact-hero p {
        line-height: 1.9;
        font-size: 16px;
    }

    /* Point 4: Larger buttons (Touch Targets) */
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px; /* Larger hit area */
    }

    /* Spacing fixes */
    .section { padding: 50px 0; }
    .values-container { gap: 40px; }
    .cards { gap: 16px; }
    .card { width: 100%; max-width: 320px; margin: 0 auto; }

}

@media (max-width: 480px) {

    /* SINGLE COLUMN CARDS on small phones */
    .card {
        width: 100%;
        max-width: 320px;
    }

    .hero {
        height: 90vh;
    }

    nav {
        padding: 12px 16px;
    }

    .logo {
        height: 42px;
    }

    .map-section {
        padding: 0 16px 40px;
    }

    .map-section iframe {
        height: 240px;
    }
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 125px; /* Positioned above the WhatsApp/Email buttons */
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #0B8F2F;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1E2D24;
    transform: translateY(-3px);
}

/* Adjust for mobile to ensure it doesn't crowd the screen */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 120px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}