/* common.css — Shared styles for GiBEO.io */

:root {
  --bg: #1A1A1A;
  --bg2: #141414;
  --bg3: #202020;
  --green: #007a3a;
  --green-dim: rgba(0, 122, 58, 0.12);
  --green-glow: rgba(0, 122, 58, 0.25);
  --white: #FFFFFF;
  --grey: #a0a0a0;
  --border: rgba(255, 255, 255, 0.07);
  --font-brand: 'Fira Code', monospace;
  --font-body: 'Inter', sans-serif;
  --font-io: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { width: 40px; height: 36px; }

.nav-logo-text {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-i { color: var(--green); }

.logo-io {
  color: var(--white);
  font-style: italic;
  font-family: var(--font-io);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* LANG TOGGLE */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-brand);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.lang-btn.active {
  background: var(--green);
  color: var(--white);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 20px 5vw 28px;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links li { border-bottom: 1px solid var(--border); }

.mobile-nav-links a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-brand);
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.mobile-nav-links a:hover { color: var(--green); }

.mob-cta {
  display: block;
  margin-top: 20px;
  font-family: var(--font-brand);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.04em;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 88px 5vw 0;
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb a,
.breadcrumb span {
  font-family: var(--font-brand);
  font-size: 0.7rem;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.4; }

/* PAGE HERO */
.page-hero {
  padding: 32px 5vw 80px;
  position: relative;
}

.page-hero .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.page-hero h1 .accent { color: var(--green); }

.page-hero .lead {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.8;
  font-weight: 300;
  max-width: 750px;
  margin-bottom: 40px;
}

/* SECTIONS */
section {
  padding: 80px 5vw;
  position: relative;
}

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

.section-tag {
  font-family: var(--font-brand);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag::before { content: '// '; opacity: 0.5; }

h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 36px;
}

h2 .accent { color: var(--green); }

/* CONTENT BLOCKS */
.content-section { background: var(--bg2); }

.content-block { margin-bottom: 48px; }

.content-block h3 {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--white);
}

.content-block p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 16px;
}

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block li {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.8;
  font-weight: 300;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.content-block li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* CARD GRIDS */
.process-grid,
.services-grid,
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.advantages-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.process-step,
.service-card,
.advantage-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.service-card { padding: 32px 28px; }

.process-step .step-num {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.process-step h3,
.advantage-card h3 {
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card h3 {
  font-family: var(--font-brand);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-step p,
.service-card p,
.advantage-card p {
  font-size: 0.84rem;
  color: var(--grey);
  line-height: 1.75;
  font-weight: 300;
}

.process-step p { font-size: 0.82rem; line-height: 1.7; }

.service-card .icon,
.advantage-card .icon {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.advantage-card .icon { font-size: 1.3rem; margin-bottom: 14px; }

/* FAQ */
.faq-section { background: var(--bg); }
.faq-category { margin-bottom: 56px; }

.faq-category h3 {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  width: 100%;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  gap: 16px;
}

.faq-q:hover { color: var(--green); }

.faq-q .arrow {
  transition: transform 0.3s;
  font-size: 0.7rem;
  color: var(--green);
  flex-shrink: 0;
}

.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  padding: 0 24px 20px;
  font-size: 0.86rem;
  color: var(--grey);
  line-height: 1.8;
  font-weight: 300;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* CTA */
.cta-section {
  background: var(--bg2);
  text-align: center;
}

.cta-section p {
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* BUTTONS */
.btn-primary {
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 166, 80, 0.4);
}

.btn-secondary {
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.footer-copy {
  font-size: 0.75rem;
  color: #888;
  font-family: var(--font-brand);
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

/* INTERNAL LINKS */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  justify-content: center;
}

.internal-links a {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  color: var(--green);
  text-decoration: none;
  border: 1px solid rgba(0, 166, 80, 0.3);
  border-radius: 8px;
  padding: 10px 20px;
  transition: background 0.2s;
}

.internal-links a:hover { background: var(--green-dim); }

/* SCROLL REVEAL */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.hidden { opacity: 0; transform: translateY(30px); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .lang-toggle { padding: 2px; gap: 1px; }
  .lang-btn { padding: 4px 8px; font-size: 0.65rem; }

  .process-grid,
  .services-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav { padding: 0 4vw; }

  section,
  .page-hero {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
