/* ============================================================
   GIS HUB — Style Sheet
   Palette: Smartlands Yellow #F5C800 · Dark #1C1C1C · Coral #EF4444
   ============================================================ */

@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-ExtraLightItalic.ttf') format('truetype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-SemiBoldItalic.ttf') format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../../font/TitilliumWeb-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --yellow:       #F5C800;
  --yellow-dark:  #C9A500;
  --yellow-light: #FFFAE5;
  --yellow-mid:   #FFF3A3;
  --dark:         #1C1C1C;
  --dark-2:       #2C2C2C;
  --dark-3:       #3C3C3C;
  --coral:        #EF4444;
  --coral-light:  #FEF2F2;
  /* Neutrals */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --white:    #FFFFFF;
  /* WhatsApp */
  --wa: #25D366;
  /* Misc */
  --font:   'Titillium Web', sans-serif;
  --r:      12px;
  --sh:     0 4px 24px rgba(0,0,0,.07);
  --sh-lg:  0 12px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-800); line-height: 1.65; background: var(--white); }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: 'Consolas','Fira Code',monospace; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: .85em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-link { display: flex; align-items: center; }
.logo { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.65); transition: color .2s; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--yellow); text-decoration: none; border-bottom-color: var(--yellow); }
.main-nav a.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* Language switcher */
.lang-switcher { display: flex; gap: 2px; margin-left: 8px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.5); font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-family: var(--font); transition: all .2s; line-height: 1.4; }
.lang-btn:hover, .lang-btn.active { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }


/* Footer social row */
.footer-social-row { display: flex; justify-content: center; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.footer-social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: all .2s; }
.footer-social-btn:hover { background: var(--yellow); color: var(--dark); border-color: var(--yellow); text-decoration: none; }

/* ── HERO ── */
.hero { background: var(--dark); padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,200,0,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.badge { display: inline-block; background: var(--yellow); color: var(--dark); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }
.hero-text h1 { font-size: 2.7rem; font-weight: 800; line-height: 1.15; color: var(--white); margin-bottom: 20px; }
.hero-text h1 span { color: var(--yellow); }
.hero-text p { font-size: 1.08rem; color: rgba(255,255,255,.65); margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img { border-radius: var(--r); box-shadow: var(--sh-lg); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: .93rem; transition: all .2s; cursor: pointer; border: none; font-family: var(--font); letter-spacing: .01em; }
.btn-primary  { background: var(--yellow); color: var(--dark); }
.btn-primary:hover  { background: var(--yellow-dark); text-decoration: none; color: var(--dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,200,0,.35); }
.btn-secondary { background: transparent; border: 2px solid rgba(255,255,255,.25); color: var(--white); }
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--yellow); color: var(--yellow); }
.btn-outline:hover { background: var(--yellow); color: var(--dark); text-decoration: none; }
.btn-sm  { padding: 7px 14px; font-size: .84rem; }
.btn-lg  { padding: 16px 40px; font-size: 1.05rem; }

/* ── INTRO BAND ── */
.intro-band { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 40px 0; }
.intro-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.intro-item { display: flex; flex-direction: column; gap: 5px; }
.intro-icon { font-size: 1.7rem; margin-bottom: 6px; }
.intro-item strong { font-weight: 700; font-size: .95rem; }
.intro-item span   { font-size: .86rem; color: var(--gray-600); }

/* ── SECTIONS ── */
.section { padding: 84px 0; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--dark); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.1rem; font-weight: 800; margin-bottom: 14px; }
.section-header p  { font-size: 1.05rem; color: var(--gray-600); max-width: 640px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,.6); }
.section-header .section-badge { display: inline-block; background: var(--yellow-light); color: var(--yellow-dark); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.section-header.light .section-badge { background: rgba(245,200,0,.15); color: var(--yellow); }

/* ── PLUGIN CARDS ── */
.plugin-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.plugin-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r); padding: 36px; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.plugin-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.plugin-card-header { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--gray-100); }
.plugin-card-header.wp   { border-left: 4px solid var(--coral); padding-left: 14px; }
.plugin-card-header.qgis { border-left: 4px solid var(--yellow); padding-left: 14px; }
.plugin-card-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.plugin-type { display: inline-block; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 20px; margin-bottom: 4px; }
.plugin-type.wp-tag   { background: var(--coral-light); color: var(--coral); }
.plugin-type.qgis-tag { background: var(--yellow-light); color: var(--yellow-dark); }
.plugin-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.plugin-version { font-size: .82rem; color: var(--gray-400); }
.plugin-desc { color: var(--gray-600); margin-bottom: 20px; font-size: .96rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.feature-list li { padding-left: 22px; position: relative; font-size: .92rem; color: var(--gray-800); }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 800; }
.plugin-use-case { background: var(--yellow-light); border-left: 3px solid var(--yellow); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: .9rem; color: var(--gray-600); }
.plugin-use-case strong { color: var(--dark); }

/* ── STEPS ── */
.steps { display: flex; align-items: flex-start; gap: 8px; }
.step { flex: 1; text-align: center; padding: 28px 18px; background: var(--white); border-radius: var(--r); box-shadow: var(--sh); border-top: 3px solid var(--yellow); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--dark); font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step h4 { font-weight: 700; margin-bottom: 8px; font-size: .97rem; }
.step p { font-size: .88rem; color: var(--gray-600); }
.step-arrow { font-size: 1.4rem; color: var(--yellow); padding-top: 48px; flex-shrink: 0; }

/* ── COMPATIBILITY ── */
.compat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.compat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r); padding: 28px; }
.compat-card h4 { font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.compat-card h4 span { font-size: 1.2rem; }
.compat-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.compat-card li { font-size: .9rem; color: var(--gray-600); padding-left: 16px; position: relative; }
.compat-card li::before { content: '·'; position: absolute; left: 4px; font-weight: 800; color: var(--yellow); }

/* ── DOWNLOAD ── */
.download-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.download-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 36px 28px; text-align: center; transition: border-color .2s; }
.download-card:hover { border-color: rgba(245,200,0,.4); }
.download-icon { font-size: 2.8rem; margin-bottom: 14px; }
.download-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 6px; }
.dl-type { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); display: block; margin-bottom: 12px; }
.download-card p { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 4px; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--gray-600); margin-bottom: 14px; line-height: 1.7; }
.about-meta { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.about-meta span { font-size: .88rem; color: var(--gray-600); }
.about-meta strong { color: var(--dark); }
.about-image { text-align: center; }
.about-image img { max-width: 340px; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.12)); }

/* ── CONTACTS ── */
.contact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.contact-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; background: var(--white); border-radius: var(--r); box-shadow: var(--sh); transition: transform .2s; }
.contact-item:hover { transform: translateY(-2px); }
.contact-icon { font-size: 1.8rem; }
.contact-item strong { font-weight: 700; font-size: .9rem; }
.contact-item a { color: var(--coral); font-size: .9rem; word-break: break-word; }
.contact-item a:hover { color: var(--dark); }

/* ── SOCIAL BAR ── */
.social-bar { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.social-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600; background: var(--gray-100); color: var(--gray-800); transition: all .2s; }
.social-btn:hover { background: var(--yellow); color: var(--dark); text-decoration: none; transform: translateY(-1px); }

/* ── ACCESSIBILITY WIDGET ── */
.acc-trigger {
  position: fixed; bottom: 26px; left: 26px; z-index: 9998;
  width: 58px; height: 58px; border-radius: 14px;
  background: #1565C0; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(21,101,192,.45); transition: transform .2s, box-shadow .2s;
  padding: 0;
}
.acc-trigger:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(21,101,192,.65); }
.acc-trigger svg { width: 34px; height: 34px; }
.acc-trigger-icon { width: 38px; height: 38px; object-fit: contain; }

.acc-panel {
  position: fixed; top: 0; right: -340px; bottom: 0; width: 320px;
  background: var(--white); box-shadow: -4px 0 32px rgba(0,0,0,.18);
  z-index: 99999; display: flex; flex-direction: column;
  transition: right .3s ease; overflow-y: auto;
}
.acc-panel.open { right: 0; }
.acc-panel-header {
  background: #1565C0; color: #fff;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.acc-close { background: transparent; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 0 2px; }
.acc-close:hover { opacity: .75; }
.acc-panel-body { flex: 1; padding: 20px; }
.acc-section { margin-bottom: 22px; }
.acc-section-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: #1565C0; margin-bottom: 10px; }
.acc-section-label svg { width: 18px; height: 18px; fill: #1565C0; flex-shrink: 0; }
.acc-stepper { display: flex; align-items: center; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.acc-step-btn { width: 48px; height: 48px; border: none; background: var(--white); font-size: 1.4rem; cursor: pointer; color: #1565C0; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .15s; flex-shrink: 0; font-family: var(--font); }
.acc-step-btn:hover { background: #e8f0f7; }
.acc-step-val { flex: 1; text-align: center; font-weight: 700; font-size: .9rem; color: var(--dark); }
.acc-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--gray-100); font-size: .9rem; color: var(--dark); }
.acc-toggle-row > span { display: flex; align-items: center; gap: 8px; }
.acc-toggle-row svg { width: 18px; height: 18px; fill: #1565C0; flex-shrink: 0; }
.acc-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.acc-toggle input { opacity: 0; width: 0; height: 0; }
.acc-slider { position: absolute; inset: 0; background: var(--gray-200); border-radius: 26px; cursor: pointer; transition: background .2s; }
.acc-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.acc-toggle input:checked + .acc-slider { background: #1565C0; }
.acc-toggle input:checked + .acc-slider::before { transform: translateX(22px); }
.acc-panel-footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.acc-reset-btn { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 6px; padding: 9px; font-size: .88rem; cursor: pointer; font-family: var(--font); transition: background .15s; font-weight: 600; }
.acc-reset-btn:hover { background: var(--gray-200); }
.acc-decl-link { font-size: .82rem; color: #1565C0; text-align: center; text-decoration: none; }
.acc-decl-link:hover { text-decoration: underline; }

/* Accessibility modes */
body.acc-night { filter: invert(1) hue-rotate(180deg); }
body.acc-night img, body.acc-night video, body.acc-night iframe { filter: invert(1) hue-rotate(180deg); }
body.acc-hc * { border-color: #000 !important; }
body.acc-hc { filter: contrast(1.6); }
body.acc-dyslexia, body.acc-dyslexia * { font-family: Arial, Helvetica, sans-serif !important; word-spacing: .12em !important; }

/* ── WHATSAPP WIDGET ── */
.wa-widget { position: fixed; bottom: 26px; right: 26px; z-index: 9999; display: flex; align-items: center; gap: 0; }
.wa-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.5s infinite;
  position: relative;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); text-decoration: none; }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }
.wa-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--dark); color: var(--white);
  font-size: .82rem; font-weight: 600; font-family: var(--font);
  padding: 7px 13px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.wa-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-right: none; border-left-color: var(--dark);
}
.wa-widget:hover .wa-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.75), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.6; }
.footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--yellow); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: .88rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col li a:hover { color: var(--yellow); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: .82rem; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-legal a:hover { color: var(--yellow); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .download-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: repeat(2,1fr); }
  .steps          { flex-wrap: wrap; }
  .step           { min-width: 160px; }
  .step-arrow     { padding-top: 0; }
}
@media (max-width: 900px) {
  .hero-inner, .plugin-cards, .about-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .intro-grid { grid-template-columns: repeat(2,1fr); }
  .compat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text h1 { font-size: 2.1rem; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-inner { padding: 0 16px; }
  .intro-grid, .download-cards, .contact-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: stretch; }
  .step-arrow { transform: rotate(90deg); text-align: center; padding: 0; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .wa-tooltip { display: none; }
}
