/* --- YOUR ORIGINAL VARIABLES & RESET --- */
:root {
    --primary: #0f172a;
    --accent: #c5a059;
    --text-main: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden; /* Added to stop horizontal scroll */
}

/* --- YOUR ORIGINAL NAVIGATION --- */
nav {
    position: fixed; top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 40px; z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--primary); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-cta { background: var(--accent); color: white !important; padding: 10px 24px; border-radius: 100px; }

/* --- YOUR ORIGINAL HERO & REVEAL --- */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; min-height: 85vh; align-items: center; background: var(--white); padding: 120px 0 0 0; }
.hero-content { padding: 0 10% 0 12%; }
.hero-content h1 { font-family: 'Quicksand', sans-serif; font-size: clamp(2.5rem, 6vw, 2.5rem); line-height: 1.2; margin-bottom: 25px;    color: #2e8b57; }
.hero-image { height: 100%; min-height: 500px; background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1000&q=80') center/cover; border-radius: 100px 0 0 100px; }

.cta-pill { margin-top: 25px;padding: 18px 45px; background: var(--primary); color: white; text-decoration: none; border-radius: 100px; display: inline-block; font-weight: 700; transition: 0.4s; }
.reveal { opacity: 0; transform: translateY(40px) scale(0.95); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* --- YOUR ORIGINAL SECTIONS --- */
section { padding: 100px 8%; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-family: 'Quicksand', sans-serif; font-size: 3rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.s-card { background: white; padding: 50px 21px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.03); transition: 0.4s; }
.s-card:hover { transform: translateY(-15px) rotate(1deg); border-color: var(--accent); }
.s-card h3 { font-family: 'Quicksand', sans-serif; color: var(--accent); margin-bottom: 20px; font-size: 1.6rem; }
.s-card ul { list-style: revert; color: #666; font-size: 0.95rem; line-height: 2; padding-left: 5px; }

.sectors-section { background: white; border-radius: 80px 80px 0 0; text-align: center; }
.sectors-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; max-width: 900px; margin: 0 auto; }
.sector-bubble { padding: 15px 30px; border-radius: 100px; font-weight: 700; border: 2px solid var(--accent); transition: 0.3s; }
.sector-bubble:hover { background: var(--accent); color: white; transform: scale(1.1); }

/* --- YOUR ORIGINAL ABOUT & CONTACT --- */
.about-grid { display: grid; grid-template-columns: 3fr 1.2fr; gap: 80px; align-items: start; }
.member-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 20px 20px 0px var(--accent); }
.member-card img { width: 85%; height: 230px; object-fit: cover;border-radius: 200px; }
.member-info { padding: 20px; text-align: center; }

.contact-info p {
    color: #555;
    margin-bottom: 30px;
}
.contact-details .label {
    color: var(--accent);
    margin-bottom: 5px;
}
.contact-details .detail-item {
    margin-bottom: 15px;
}
.contact-wrap { background: #f0f4f3; padding: 80px; border-radius: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
input, textarea { width: 100%; padding: 20px 30px; margin-bottom: 15px; border-radius: 30px; border: 1px solid #ddd; outline: none; }
.btn-submit { border: none; width: 100%; cursor: pointer; }
footer { text-align: center; padding: 60px; color: #999; font-size: 0.9rem; }

/* --- ADDED: MOBILE & HAMBURGER FIXES --- */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary); transition: 0.3s; }

@media (max-width: 968px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%;
        height: 100vh; width: 75%;
        background: white; flex-direction: column;
        justify-content: center; align-items: center;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active { right: 0; }
    .nav-links li { margin: 15px 0; }

    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-content { padding: 40px 5%; order: 2; }
    .hero-image { order: 1; height: 300px; width: 90%; margin: 0 auto 30px auto; border-radius: 30px; }
    
    .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
    .team-display { padding-top: 20px; }
}

/* Hamburger Animation */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile overflow safety patch (place at end of style.css) --- */

/* Ensure predictable sizing */
*, *::before, *::after { box-sizing: border-box; }

/* Page-level guard */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Keep fixed nav inside viewport on very small screens */
nav {
  width: calc(100% - 32px);
  left: 50%;
  transform: translateX(-50%);
  padding-inline: 16px;
  box-sizing: border-box;
}

/* Prevent any element using 100vw from overflowing due to scrollbars */
.hero, .hero-image, .hero-shape, .services-grid, .about-grid, .contact-wrap, footer {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Make sure responsive images and media never overflow */
img, picture, video, iframe, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile menu safety */
.nav-links {
  box-sizing: border-box;
  max-width: 100%;
}

/* Break long unbroken content that can force width expansion */
.s-card ul, .contact-details, .sector-bubble, .detail-item {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Neutralize inline styles that explicitly set 100vw */
*[style*="100vw"], *[style*="width: 100vw"], *[style*="width:100vw"] {
  width: 100% !important;
  max-width: 100vw !important;
}
