/* ============================================
   ITM Solution - Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-primary: #1a8a2e;
  --green-dark: #146622;
  --green-light: #2db040;
  --yellow-accent: #f5a800;
  --red-accent: #cc2200;
  --black-section: #1a1a1a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #e0e0e0;
  --gray-text: #555555;
  --text-dark: #222222;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: Arial, Helvetica, sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-strong: 0 8px 40px rgba(0,0,0,0.18);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 80px 0;
}

/* ---- Zigzag Divider ---- */
.zigzag-bottom,
.zigzag-top {
  display: block;
  width: 100%;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.zigzag-bottom {
  background: var(--green-primary);
  clip-path: polygon(
    0% 0%, 2.08% 0%, 3.13% 100%, 4.17% 0%,
    6.25% 0%, 7.29% 100%, 8.33% 0%,
    10.42% 0%, 11.46% 100%, 12.50% 0%,
    14.58% 0%, 15.63% 100%, 16.67% 0%,
    18.75% 0%, 19.79% 100%, 20.83% 0%,
    22.92% 0%, 23.96% 100%, 25.00% 0%,
    27.08% 0%, 28.13% 100%, 29.17% 0%,
    31.25% 0%, 32.29% 100%, 33.33% 0%,
    35.42% 0%, 36.46% 100%, 37.50% 0%,
    39.58% 0%, 40.63% 100%, 41.67% 0%,
    43.75% 0%, 44.79% 100%, 45.83% 0%,
    47.92% 0%, 48.96% 100%, 50.00% 0%,
    52.08% 0%, 53.13% 100%, 54.17% 0%,
    56.25% 0%, 57.29% 100%, 58.33% 0%,
    60.42% 0%, 61.46% 100%, 62.50% 0%,
    64.58% 0%, 65.63% 100%, 66.67% 0%,
    68.75% 0%, 69.79% 100%, 70.83% 0%,
    72.92% 0%, 73.96% 100%, 75.00% 0%,
    77.08% 0%, 78.13% 100%, 79.17% 0%,
    81.25% 0%, 82.29% 100%, 83.33% 0%,
    85.42% 0%, 86.46% 100%, 87.50% 0%,
    89.58% 0%, 90.63% 100%, 91.67% 0%,
    93.75% 0%, 94.79% 100%, 95.83% 0%,
    97.92% 0%, 98.96% 100%, 100% 0%, 100% 100%, 0% 100%
  );
}

/* Zigzag divider SVG approach */
.divider-zigzag {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block;
}

.divider-zigzag svg {
  display: block;
  width: 100%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,138,46,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
}

.btn-link {
  background: none;
  border: none;
  color: var(--green-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.btn-link::after {
  content: '→';
}

.btn-link:hover {
  gap: 10px;
  color: var(--green-dark);
}

/* ---- Overline Label ---- */
.overline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-text);
  display: block;
  margin-bottom: 10px;
}

/* ---- Two-column grid ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ---- Section Colors ---- */
.section-white { background: var(--white); }
.section-gray  { background: var(--gray-light); }
.section-green { background: var(--green-primary); }
.section-black { background: var(--black-section); }

.section-green h1,
.section-green h2,
.section-green h3,
.section-green p {
  color: var(--white);
}

.section-black h1,
.section-black h2,
.section-black h3 {
  color: var(--yellow-accent);
}

.section-black p {
  color: #cccccc;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col   { grid-template-columns: 1fr; gap: 36px; }
  .three-col { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-pad { padding: 56px 0; }
}

@media (max-width: 600px) {
  .three-col { grid-template-columns: 1fr; }
  .section-pad { padding: 40px 0; }
}