/*
Theme Name: Eco Ban
Theme URI: https://ecobanfiber.com
Description: Eco Ban — an Elementor-based WordPress theme for EcoBanFiber, a Bangladesh-based supplier of 100% natural banana pseudostem fibre. Built on the Hello Elementor starter theme.
Author: EcoBanFiber
Author URI: https://ecobanfiber.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eco-ban
Template: hello-elementor
Tags: elementor, one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ==========================================================================
   Eco Ban — custom styles (ported from the static site)
   Most layout is handled by Elementor; this file only carries the design
   tokens, component styles and animations that Elementor does not provide.
   ========================================================================== */

:root {
  /* plant palette */
  --stem-deep: #1c3326;
  --stem: #2f5d3f;
  --shoot: #7fa25c;
  --kraft: #efe6d3;
  --paper: #fbf7ee;
  --fiber: #c08a3e;
  --ink: #1a1712;
  --rind: #d9cbae;

  --ink-soft: #5c5346;
  --on-dark: #e8e2d2;
  --on-dark-soft: #a8b6a2;

  --display: "Young Serif", "Bookman Old Style", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --data: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 100%;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --bay: clamp(3.5rem, 8vw, 7rem);

  --edge: 3px;
  --hair: 1px solid var(--rind);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.68 var(--body);
  letter-spacing: 0.002em;
  background-image: url("assets/img/grain.png");
  background-size: 256px 256px;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); line-height: 1.2; }

a { color: var(--stem); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fiber); }

/* ---- elementor canvas tweaks ---- */
.elementor-section, .e-con { --e-con-width: var(--shell); }

/* ---- custom scrollbar ---- */
::-webkit-scrollbar { width: 13px; }
::-webkit-scrollbar-track { background: var(--stem-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--fiber), #a97528);
  border-radius: 8px;
  border: 3px solid var(--stem-deep);
}
::-webkit-scrollbar-thumb:hover { background: #a97528; }
* { scrollbar-width: thin; scrollbar-color: var(--fiber) var(--stem-deep); }

/* ---- utilities ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
