/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  --font-title: 'OpenDyslexic', sans-serif;
  --font-body: 'Lexend', sans-serif;
  --contactimg: url("../assets/img/fdf.avif");

  /* Theme colors */
  --mainbackground: #0c0000;
  --grenat: #6E0B14;
  --bordeaux: #800000;
  --cardinal: #B82010;
  --madrasred: #ba3e45;
  --madras-gold: #caa953;
  --darkerred: #2d0000;
  --treeleaves: #484b2b;
  --treeleaves-shade: #222516;
  --madrasgreen: #5e5d22;

  /* Illustration palette */
  --hair: #251E19;
  --eyes: #64454a;
  --skin: #9f705e;
  --patch: #c39683;
  --blueclearsky: #bce7f9;

  /* UI colors */
  --bg: var(--mainbackground);
  --fg: #ddd8cc;
  --muted: #cdc0c0;
  --accent: #f2b35b;
  --accent-soft: #f2b35b22;
  --light: #191f16;

  /* Gradients */
  --gradient-green-bottom: linear-gradient(to bottom, var(--treeleaves), var(--treeleaves-shade));
  --gradient-green-top: linear-gradient(to top, var(--treeleaves), var(--treeleaves-shade));
  --gradient-goldgreen: linear-gradient(to top, var(--madras-gold), var(--treeleaves));
  --gradient-greengold: linear-gradient(to top, var(--treeleaves), var(--madras-gold));

  /* Cookies settings Modal variables */
  --bg-section: #0f0f0f;
  --radius-soft: 12px;
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.4);
  --text-soft: #cdc0c0;
}

/* =========================================================
   FONTS
   ========================================================= */

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Bold-Italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

/* =========================================================
   GLOBAL RESET
   ========================================================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  text-align: center;
  font-family: var(--font-body);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, .section-title, .hero-title {
  font-family: var(--font-title);
}

/* p { text-align: justify; } */

/* =========================================================
   ALIGNMENT UTILITIES
   ========================================================= */


.align-center {                   /* Center text + center block elements */
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

.align-left {                   /* Left alignment (override justify rules) */
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  display: block;
}

.align-right {                  /* Right alignment */
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  display: block;
}

.center-all {                 /* Centered alignment */
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  margin-bottom: 2.5rem;
  padding: 4rem 1.25rem;
}

.section-content {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.section-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-main { flex: 1; }
.section-aside { flex: 0 0 260px; }

/* ============================
   NAVIGATION (clean rewrite)
   ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient-green-bottom);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.nav-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.nav-link-item {
  position: relative;
}

.nav-link-item > a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-link-item > a:hover {
  color: var(--accent);
}

.nav-links, .nav-link-item, .nav-dropdown { text-align: left; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: var(--treeleaves-shade);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2000;
}

.nav-dropdown a {
  display: block;
  padding: 0.4rem 0.9rem;
  color: var(--muted);
}

.nav-dropdown a:hover {
  background: var(--treeleaves);
  color: var(--fg);
}

.nav-link-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-yellowrounded {
  background: var(--accent);
  color: #1a1205;
  border-radius: 25px;
  padding: 0.55rem 1.4rem; /* padding: 1rem 1.8rem; */
  font-size: 1rem;
  font-weight: bold;
}

.btn-primary {
  background: var(--accent);
  color: #1a1205;
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-secondary {
  background: #f2e8e4;
  color: #4a3f35;
}

.btn-tertiary {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-group { margin-bottom: 0.9rem; text-align: left; }

.input,
.textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12,0,0,0.7);
  color: var(--fg);
  padding: 0.55rem 0.6rem;
  font-size: 0.9rem;
}

.textarea { min-height: 90px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.6rem 0 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-btn {
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
}

.hero-card {
  background: rgba(188,231,249,0.3);
  backdrop-filter: blur(2px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

/* =========================================================
   TOOLS (products.html)
   ========================================================= */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--treeleaves);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: 0.2s ease;
}

.tool-tag {
  display: inline-block;
  background: var(--gradient-greengold);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--skin);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 6px solid var(--hair);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  text-align: left;
}

/* =========================================================
   COOKIE BANNER (A3 — Dark Neutral)
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
  display: none;
  z-index: 9999;
}

.cookie-banner.visible { display: block; }

.cookie-banner-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--fg);
}

.cookie-banner-buttons button {
  margin: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* =========================================================
   COOKIE MODAL (A3 — Dark Neutral)
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.active .modal-backdrop { opacity: 1; }

.modal-dialog {
  position: relative;
  background: var(--bg-section);
  padding: 2rem;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  max-width: 480px;
  width: 90%;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s ease;
  border: 1px solid var(--accent);
}

.modal.active .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-soft);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 1.25rem 2rem;
  background: var(--gradient-green-top);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: bolder;
    font-size: larger;
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */

@media (max-width: 900px) {
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
}

@media (max-width: 600px) {
  .section { padding: 2.5rem 1rem; }
  .section-title { font-size: 1.4rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
}

@media (max-width: 800px) {
  .nav-content {
    flex-wrap: wrap;
  }
}