/* =========================================================
   BIRUNI PEST CONTROL
   Global Foundation
   File: assets/css/main.css
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
  /* Brand colors */
  --color-primary: #009933;
  --color-primary-dark: #225c12;
  --color-primary-darker: #173f0c;
  --color-primary-soft: #eaf6ed;

  --color-accent: #ff6600;
  --color-accent-dark: #d95200;
  --color-accent-soft: #fff0e6;

  /* Neutral colors */
  --color-white: #ffffff;
  --color-off-white: #f7f7f4;
  --color-surface: #ffffff;
  --color-surface-soft: #f2f6f1;

  --color-text: #20251f;
  --color-text-soft: #4f5a50;
  --color-muted: #687168;
  --color-border: #dfe6df;
  --color-border-dark: #cbd7cb;

  --color-success: #16803a;
  --color-warning: #d97706;
  --color-danger: #c62828;

  /* Gradients */
  --gradient-primary:
    linear-gradient(
      135deg,
      var(--color-primary-dark) 0%,
      var(--color-primary) 100%
    );

  --gradient-soft:
    linear-gradient(
      135deg,
      var(--color-primary-soft) 0%,
      var(--color-white) 55%,
      var(--color-accent-soft) 100%
    );

  --gradient-dark:
    linear-gradient(
      135deg,
      var(--color-primary-darker) 0%,
      var(--color-primary-dark) 100%
    );

  /* Typography */
  --font-body:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-heading:
    Manrope,
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --line-height-tight: 1.15;
  --line-height-heading: 1.25;
  --line-height-body: 1.7;

  /* Layout */
  --container-width: 1200px;
  --container-wide: 1360px;
  --container-small: 840px;

  --page-padding: 20px;
  --section-space: clamp(72px, 8vw, 120px);
  --section-space-small: clamp(48px, 6vw, 80px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* Border radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs:
    0 1px 2px rgba(23, 63, 12, 0.06);

  --shadow-sm:
    0 6px 20px rgba(23, 63, 12, 0.08);

  --shadow-md:
    0 16px 40px rgba(23, 63, 12, 0.12);

  --shadow-lg:
    0 24px 64px rgba(23, 63, 12, 0.16);

  /* Transitions */
  --transition-fast: 160ms ease;
  --transition-base: 260ms ease;
  --transition-slow: 420ms ease;

  /* Layers */
  --z-base: 1;
  --z-dropdown: 40;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}


/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--color-white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-body);

  color: var(--color-text);
  background-color: var(--color-white);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-menu-open,
body.is-modal-open {
  overflow: hidden;
}

main {
  display: block;
  min-height: 60vh;
}

header,
footer,
section,
article,
aside,
nav,
figure,
figcaption {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
}

textarea {
  resize: vertical;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

address {
  font-style: normal;
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background-color: var(--color-border);
}

::selection {
  color: var(--color-white);
  background-color: var(--color-primary);
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-toast);

  padding: 12px 18px;
  border-radius: var(--radius-sm);

  color: var(--color-white);
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);

  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-heading);
  letter-spacing: -0.025em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 8vw, 5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.875rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  color: var(--color-text-soft);
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: var(--font-size-sm);
}

.text-lead {
  max-width: 720px;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: var(--color-text-soft);
}

.text-small {
  font-size: var(--font-size-sm);
}

.text-muted {
  color: var(--color-muted);
}

.text-primary {
  color: var(--color-primary);
}

.text-primary-dark {
  color: var(--color-primary-dark);
}

.text-accent {
  color: var(--color-accent);
}

.text-white {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.heading-balance {
  text-wrap: balance;
}

.paragraph-pretty {
  text-wrap: pretty;
}


/* =========================================================
   5. GLOBAL LAYOUT
   ========================================================= */

.container {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--container-width)
  );
  margin-inline: auto;
}

.container-wide {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--container-wide)
  );
  margin-inline: auto;
}

.container-small {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--container-small)
  );
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-small {
  position: relative;
  padding-block: var(--section-space-small);
}

.section-white {
  background-color: var(--color-white);
}

.section-soft {
  background-color: var(--color-off-white);
}

.section-green-soft {
  background-color: var(--color-primary-soft);
}

.section-orange-soft {
  background-color: var(--color-accent-soft);
}

.section-dark {
  color: var(--color-white);
  background: var(--gradient-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
  color: inherit;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section-header {
  display: grid;
  gap: var(--space-5);
  max-width: 760px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-header.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-header.is-centered .section-description {
  margin-inline: auto;
}

.section-description {
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-soft);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  width: fit-content;
  margin: 0;

  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;

  color: var(--color-primary);
}

.section-eyebrow::before {
  width: 28px;
  height: 3px;

  content: "";
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
}

.section-header.is-centered .section-eyebrow {
  margin-inline: auto;
}


/* =========================================================
   6. GRID SYSTEM
   ========================================================= */

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.grid-auto {
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(100%, 260px), 1fr)
    );
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-5 {
  gap: var(--space-5);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-7 {
  gap: var(--space-7);
}

.gap-8 {
  gap: var(--space-8);
}


/* =========================================================
   7. MEDIA
   ========================================================= */

.media-cover {
  position: relative;
  overflow: hidden;
}

.media-cover img,
.media-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-contain img,
.media-contain video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-rounded {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-shadow {
  box-shadow: var(--shadow-md);
}

.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  position: absolute;
  inset: 0;

  content: "";
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      transparent 35%,
      rgba(23, 63, 12, 0.68) 100%
    );
}


/* =========================================================
   8. LINKS
   ========================================================= */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: fit-content;

  font-weight: 700;
  color: var(--color-primary-dark);

  transition:
    color var(--transition-fast),
    gap var(--transition-fast);
}

.text-link:hover {
  gap: 12px;
  color: var(--color-accent);
}

.inline-link {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.inline-link:hover {
  color: var(--color-accent);
}


/* =========================================================
   9. BACKGROUND HELPERS
   ========================================================= */

.bg-white {
  background-color: var(--color-white);
}

.bg-off-white {
  background-color: var(--color-off-white);
}

.bg-green {
  background-color: var(--color-primary);
}

.bg-green-dark {
  background-color: var(--color-primary-dark);
}

.bg-green-soft {
  background-color: var(--color-primary-soft);
}

.bg-orange {
  background-color: var(--color-accent);
}

.bg-orange-soft {
  background-color: var(--color-accent-soft);
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-soft {
  background: var(--gradient-soft);
}


/* =========================================================
   10. BORDER AND SHADOW HELPERS
   ========================================================= */

.border {
  border: 1px solid var(--color-border);
}

.border-top {
  border-top: 1px solid var(--color-border);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-pill {
  border-radius: var(--radius-pill);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}


/* =========================================================
   11. SPACING HELPERS
   ========================================================= */

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-7 {
  margin-top: var(--space-7);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-7 {
  margin-bottom: var(--space-7);
}

.mb-8 {
  margin-bottom: var(--space-8);
}


/* =========================================================
   12. DISPLAY HELPERS
   ========================================================= */

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.isolate {
  isolation: isolate;
}


/* =========================================================
   13. RESPONSIVE FOUNDATION
   ========================================================= */

@media (min-width: 576px) {
  :root {
    --page-padding: 24px;
  }
}

@media (min-width: 768px) {
  :root {
    --page-padding: 32px;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-hidden {
    display: none !important;
  }

  .md-block {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg-hidden {
    display: none !important;
  }

  .lg-block {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-padding: 40px;
  }
}


/* =========================================================
   14. MOTION PREFERENCES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-parallax] {
    transform: none !important;
  }
}


/* =========================================================
   15. PRINT
   ========================================================= */

@media print {
  *,
  *::before,
  *::after {
    color: #000000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  header,
  footer,
  .floating-whatsapp,
  .no-print {
    display: none !important;
  }

  .section {
    padding-block: 24px;
  }
}