/* ============================================
   ONLY DIGITAL — conseil.only-digital.ch
   Design System: Warm Trust / Accessible
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Serif+Display&display=swap');

/* --- CSS Variables --- */
:root {
  /* Primary palette — warm teal + golden accent */
  --primary: #0B7A6F;
  --primary-light: #0FA292;
  --primary-dark: #065E56;
  --primary-bg: #E8F6F4;
  --accent: #E8A838;
  --accent-light: #FFF3DB;
  --accent-dark: #C48A1A;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F7F9FA;
  --gray-50: #F0F2F4;
  --gray-100: #E2E5E9;
  --gray-200: #C5CAD1;
  --gray-400: #8A929D;
  --gray-600: #505862;
  --gray-800: #2A2F36;
  --gray-900: #1A1D22;

  /* Semantic */
  --success: #2D9F5C;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE57;

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Spacing */
  --section-gap: 5rem;
  --container-width: 1140px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 18px; /* Larger base for seniors */
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--gray-900); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--gray-600); }

/* --- Skip Nav (Accessibility) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 600;
}
.skip-nav:focus { top: 1rem; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gray-900);
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-body);
}

.nav-main { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--gray-900); }

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: var(--gray-50);
  border-radius: 8px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--gray-400);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.lang-switch button.active,
.lang-switch button:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  margin: 5px 0;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-main {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav-main.open { transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 0.5rem; }
  .nav-links a { font-size: 1.05rem; padding: 0.6rem 0; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(170deg, var(--white) 0%, var(--primary-bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,122,111,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,168,56,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '🇨🇭'; }

.hero h1 span { color: var(--primary); }

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-600);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  max-width: 400px;
  width: 100%;
}
.hero-visual-card .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 0.4rem; }

.trust-badges {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}
.trust-badge {
  text-align: center;
}
.trust-badge .number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}
.trust-badge .label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-visual-card { margin: 0 auto; }
  .trust-badges { justify-content: center; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(11,122,111,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,122,111,0.35);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ============================================
   SERVICES SECTION
   ============================================ */
.section { padding: var(--section-gap) 0; }
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}
.section-header p { color: var(--gray-400); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.service-icon.tech { background: #EDF4FF; }
.service-icon.life { background: #FFF3E8; }
.service-icon.finance { background: #E8FFF0; }
.service-icon.health { background: #FFE8F0; }
.service-icon.pro { background: #F0E8FF; }
.service-icon.travel { background: #E8F8FF; }

.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 1rem; }
.service-price {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--gray-50);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-bg), var(--primary), var(--primary-bg));
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 15px rgba(11,122,111,0.15);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .steps-grid::before { display: none; }
}

/* ============================================
   PRICING
   ============================================ */
.pricing-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.pricing-banner h2 { color: var(--white); }
.pricing-banner p { color: rgba(255,255,255,0.85); }
.price-range {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin: 1rem 0;
}
.payment-methods {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--gray-800);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease);
  background: var(--off-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; color: var(--gray-900); font-size: 0.9rem; }
.contact-info-item span { color: var(--gray-600); font-size: 0.85rem; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   GOOGLE MAP
   ============================================ */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-100);
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--gray-900); }
.testimonial-loc { font-size: 0.8rem; color: var(--gray-400); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-200);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: white;
}
.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: wa-pulse 2s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================
   SEO PAGES
   ============================================ */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(170deg, var(--white) 0%, var(--primary-bg) 100%);
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--primary); }

.page-content {
  padding: 3rem 0;
}
.page-content .content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 {
  margin-top: 2rem;
}
.page-content ul, .page-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--gray-600);
}
.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.cta-box {
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0 0;
}
.cta-box h3 { color: var(--primary-dark); margin-bottom: 0.75rem; }
.cta-box p { max-width: 500px; margin: 0 auto 1.5rem; }

/* Legal pages */
.legal-content { max-width: 800px; margin: 0 auto; padding: 2rem 0 4rem; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { margin-top: 2.5rem; font-size: 1.3rem; }
.legal-content p, .legal-content li { font-size: 0.95rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .whatsapp-float::after { animation: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .whatsapp-float { display: none; }
}
