/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Open Sans', sans-serif; color: #777; line-height: 1.7; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: #89b837; transition: color .3s; }
a:hover { color: #6d9a1e; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Open Sans', sans-serif; color: #2e353e; font-weight: 700; line-height: 1.3; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ===== Header ===== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(46,53,62,.95); backdrop-filter: blur(8px); transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(46,53,62,.98); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text { color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; }
.logo-text span { color: #89b837; }

/* Nav */
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: #ccc; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 5px 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #89b837; transition: width .3s; }
.main-nav a:hover, .main-nav a.active { color: #89b837; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(46,53,62,.75); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-content h1 { color: #fff; font-size: 3.2rem; margin-bottom: 15px; font-weight: 700; }
.hero-content h1 span { color: #89b837; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btn { display: inline-block; padding: 14px 36px; background: #89b837; color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; border-radius: 3px; transition: background .3s, transform .3s; }
.hero-btn:hover { background: #6d9a1e; color: #fff; transform: translateY(-2px); }

/* Page hero (inner pages) */
.page-hero { padding: 140px 0 80px; background-size: cover; background-position: center; position: relative; text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(46,53,62,.8); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 10px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); font-size: .95rem; }
.page-hero .breadcrumb a { color: #89b837; }

/* ===== Section common ===== */
.section { padding: 80px 0; }
.section-alt { background: #f7f7f7; }
.section-dark { background: #2e353e; color: #ccc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 10px; }
.section-title p { color: #999; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-title .divider { width: 60px; height: 3px; background: #89b837; margin: 15px auto 0; }

/* ===== Tabs (Strategy/Design/Dev/Marketing) ===== */
.tabs-section { padding: 80px 0; }
.tabs-nav { display: flex; justify-content: center; gap: 5px; margin-bottom: 40px; flex-wrap: wrap; }
.tabs-nav button { background: #2e353e; color: #ccc; border: none; padding: 14px 30px; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background .3s, color .3s; font-family: 'Open Sans', sans-serif; }
.tabs-nav button.active, .tabs-nav button:hover { background: #89b837; color: #fff; }
.tab-content { display: none; max-width: 800px; margin: 0 auto; text-align: center; }
.tab-content.active { display: block; }
.tab-content p { font-size: 1.05rem; line-height: 1.8; }

/* ===== Who We Are ===== */
.who-we-are { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.who-we-are img { border-radius: 5px; }
.who-we-are-text h2 { font-size: 2rem; margin-bottom: 20px; }
.who-we-are-text p { margin-bottom: 15px; }

/* ===== Portfolio / Work ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 5px; }
.portfolio-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .5s; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item .overlay { position: absolute; inset: 0; background: rgba(137,184,55,.9); display: flex; align-items: center; justify-content: center; flex-direction: column; opacity: 0; transition: opacity .4s; }
.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-item .overlay h4 { color: #fff; font-size: 1.1rem; margin-bottom: 5px; }
.portfolio-item .overlay span { color: rgba(255,255,255,.8); font-size: .85rem; }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: #fff; padding: 35px 30px; border-radius: 5px; box-shadow: 0 5px 25px rgba(0,0,0,.08); text-align: center; }
.section-alt .testimonial-card { background: #fff; }
.testimonial-card .avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; border: 3px solid #89b837; }
.testimonial-card blockquote { font-style: italic; font-size: .95rem; margin-bottom: 20px; color: #888; line-height: 1.7; }
.testimonial-card .author { font-weight: 700; color: #2e353e; font-size: .95rem; }
.testimonial-card .role { color: #89b837; font-size: .8rem; }

/* ===== Stats / Counters ===== */
.stats-section { padding: 70px 0; background: #89b837; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 2.8rem; color: #fff; font-weight: 700; }
.stat-item p { color: rgba(255,255,255,.85); font-size: .95rem; margin-top: 5px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card { background: #fff; border-radius: 5px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.service-card img { height: 220px; width: 100%; object-fit: cover; }
.service-card-body { padding: 30px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { font-size: .95rem; }
.section-alt .service-card { background: #fff; }

/* ===== About page ===== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.about-content img { border-radius: 5px; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 15px; }
.about-text p { margin-bottom: 15px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value-card { text-align: center; padding: 30px 20px; }
.value-card .icon { font-size: 2.5rem; color: #89b837; margin-bottom: 15px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { font-size: .9rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-info-item .icon { width: 50px; height: 50px; background: #89b837; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-info-item p { font-size: .9rem; }
.contact-form { background: #f7f7f7; padding: 40px; border-radius: 5px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: #2e353e; margin-bottom: 5px; font-size: .9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 3px; font-family: 'Open Sans', sans-serif; font-size: .95rem; transition: border-color .3s; background: #fff; }
.form-group input:focus, .form-group textarea:focus { border-color: #89b837; outline: none; }
.form-group textarea { height: 150px; resize: vertical; }
.submit-btn { display: inline-block; padding: 14px 36px; background: #89b837; color: #fff; border: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; border-radius: 3px; cursor: pointer; font-family: 'Open Sans', sans-serif; transition: background .3s; }
.submit-btn:hover { background: #6d9a1e; }
.form-success { display: none; text-align: center; padding: 30px; }
.form-success h3 { color: #89b837; margin-bottom: 10px; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; background: #2e353e; text-align: center; }
.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 15px; }
.cta-section p { color: #ccc; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.site-footer { background: #1a1f25; padding: 50px 0 0; color: #999; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about .logo-footer { height: 40px; margin-bottom: 15px; }
.footer-about p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #999; font-size: .9rem; transition: color .3s; }
.footer-col ul a:hover { color: #89b837; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; }

/* ===== Portfolio filters ===== */
.filter-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-nav button { background: transparent; border: 2px solid #ddd; padding: 8px 20px; font-size: .85rem; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: .3s; font-family: 'Open Sans', sans-serif; color: #777; border-radius: 3px; }
.filter-nav button.active, .filter-nav button:hover { border-color: #89b837; background: #89b837; color: #fff; }

/* ===== Timeline ===== */
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; width: 2px; background: #89b837; top: 0; bottom: 0; transform: translateX(-50%); }
.timeline-item { padding: 20px 0; display: flex; justify-content: flex-end; width: 50%; position: relative; }
.timeline-item:nth-child(even) { margin-left: 50%; justify-content: flex-start; }
.timeline-item .content { background: #fff; padding: 20px 25px; border-radius: 5px; box-shadow: 0 3px 15px rgba(0,0,0,.08); max-width: 300px; }
.timeline-item .content h4 { color: #89b837; font-size: .9rem; margin-bottom: 5px; }
.timeline-item .content p { font-size: .9rem; }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .who-we-are, .about-content, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 70px; left: 0; width: 100%; background: rgba(46,53,62,.98); padding: 20px 0; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 15px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 1.8rem; }
  .tabs-nav button { padding: 10px 18px; font-size: .8rem; }
  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .filter-nav button { padding: 6px 14px; font-size: .75rem; }
}
