/* ============================================================
   Girona IT — hero, sections, contact form, responsive
   ============================================================ */

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef4ff 0%, #f5f8fc 100%); padding: 72px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(37, 99, 235, .08) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-content .badge { margin-bottom: 22px; }
.hero-content h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.hero-text { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.terminal { background: #0b1220; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace; font-size: .88rem; }
.terminal-bar { display: flex; gap: 7px; padding: 13px 16px; background: #101b31; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar span:nth-child(1) { background: #f87171; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: #34d399; }
.terminal-body { padding: 22px 20px; color: #cbd5e1; line-height: 1.9; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .ok { color: #34d399; }
.terminal-body .cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow); }
.float-chip svg { width: 16px; height: 16px; color: var(--primary); }
.chip-1 { top: -20px; left: -18px; }
.chip-2 { bottom: -20px; right: -12px; }

/* ===== Services ===== */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #dbe6ff; }
.service-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--bg-tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .94rem; }

/* ===== About ===== */
.about { background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.about-lang h3 { font-size: 1.35rem; margin-bottom: 6px; }
.about-lang > p { color: var(--muted); margin-bottom: 18px; }
.lang-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lang-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .92rem; }
.lang-chip svg { width: 16px; height: 16px; color: var(--primary); }

/* ===== Features ===== */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { text-align: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow-sm); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* ===== Contact ===== */
.contact { background: linear-gradient(180deg, #eef4ff 0%, #f5f8fc 100%); }
.contact-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.contact-info > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); flex: none; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list .label { font-size: .82rem; color: var(--muted); }
.contact-list .value { font-weight: 600; color: var(--text); }
.contact-list a.value:hover { color: var(--primary); }

.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { font-family: inherit; font-size: .98rem; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; transition: border-color .18s ease, box-shadow .18s ease; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); background: #fff; }
.form-submit { margin-top: 22px; }
.form-note { margin-top: 14px; font-size: .84rem; color: var(--muted); }
.form-status { display: none; margin-top: 16px; font-size: .95rem; font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.success { display: block; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }
.form-status.error { display: block; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; }
.consent input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 3px; accent-color: var(--primary); cursor: pointer; }
.consent label { font-size: .92rem; color: var(--muted); cursor: pointer; }
.consent a { color: var(--primary); font-weight: 600; }
.consent a:hover { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ===== Legal / single pages ===== */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 26px; }
.page .prose { max-width: 760px; }
.page .prose h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.page .prose p { color: #37455e; margin-bottom: 14px; }
.page .prose ul, .page .prose ol { margin: 0 0 16px 22px; color: #37455e; }
.page .prose li { margin-bottom: 6px; }
.page .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 72px; }
  .site-nav { position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px 16px 16px; gap: 4px; display: none; }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
}

