/* ============================================================
   Girona IT — core styles (reset, base, buttons)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4ff;
  --text: #0e1726;
  --muted: #5a6b85;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --accent: #06b6d4;
  --border: #e4e9f2;
  --footer-bg: #0b1220;
  --footer-text: #aeb9cc;
  --footer-heading: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 26px 60px -22px rgba(16, 24, 40, .28);
  --maxw: 1140px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--text); }

::selection { background: rgba(37, 99, 235, .18); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.accent { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .75); }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--primary); background: var(--bg-tint); border: 1px solid #dbe6ff; padding: 6px 14px; border-radius: 999px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(6, 182, 212, .18); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--text); }
.brand:hover { color: var(--primary); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-logo { height: 50px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.active { color: var(--primary); background: var(--bg-tint); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--border); background: #fff;
  padding: 9px 34px 9px 14px; border-radius: 999px; font-family: inherit; font-size: .9rem; font-weight: 500;
  color: var(--text); cursor: pointer; line-height: 1.2;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%235a6b85" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat; background-position: right 13px center;
}
.lang-select:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 1px solid var(--border); border-radius: 9px; padding: 9px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 64px 24px 48px; }
.footer-inner h4 { color: var(--footer-heading); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-brand { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand:hover { color: #fff; }
.footer-logo { height: 46px; width: auto; display: block; }
.footer-about p { font-size: .95rem; max-width: 340px; margin-bottom: 8px; }
.footer-about a { color: var(--footer-text); }
.footer-about a:hover { color: #fff; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--footer-text); font-size: .95rem; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: .88rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

