/* Convotra base design system - static, ships with every generated site.
   Colors/fonts come from CSS custom properties set by functions.php from the
   cv_design_tokens option (set once per site via set_global_style), so this
   file itself never needs to change per site - only the tokens do. */

:root {
  --cv-primary: #4f46e5;
  --cv-secondary: #1e1b4b;
  --cv-font-heading: 'Poppins', sans-serif;
  --cv-font-body: 'Inter', sans-serif;
  --cv-radius: 20px;
  --cv-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  font-family: var(--cv-font-body);
  color: #1e293b;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .wp-block-heading {
  font-family: var(--cv-font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.cv-section {
  padding: 80px 24px;
}

.cv-section > .wp-block-group__inner-container,
.cv-section {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.cv-bg-brand {
  background: linear-gradient(135deg, var(--cv-primary), var(--cv-secondary));
  color: #fff;
}
.cv-bg-brand h1, .cv-bg-brand h2, .cv-bg-brand h3 { color: #fff; }

.cv-bg-dark { background: #0f172a; color: #fff; }
.cv-bg-dark h1, .cv-bg-dark h2, .cv-bg-dark h3 { color: #fff; }

.cv-hero {
  min-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cv-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.cv-hero p { font-size: 1.15rem; opacity: 0.92; max-width: 620px; margin: 0 auto 28px; }

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cv-btn-primary { background: #fff; color: var(--cv-primary); }
.cv-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.cv-btn-outline { background: transparent; color: inherit; border: 2px solid currentColor; }

.cv-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.cv-card {
  background: #fff;
  border-radius: var(--cv-radius);
  padding: 32px;
  box-shadow: var(--cv-shadow);
  transition: transform 0.2s ease;
}
.cv-card:hover { transform: translateY(-4px); }
.cv-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--cv-primary) 12%, white);
  color: var(--cv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.cv-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cv-gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.cv-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cv-gallery-item:hover img { transform: scale(1.06); }
.cv-gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.cv-testimonial {
  background: #f8fafc;
  border-radius: var(--cv-radius);
  padding: 28px;
  border: 1px solid #eef2f7;
}
.cv-testimonial-quote { font-size: 1.05rem; font-style: italic; color: #334155; }
.cv-testimonial-author { margin-top: 16px; font-weight: 700; color: #0f172a; font-size: 0.9rem; }

.cv-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .cv-section { padding: 56px 20px; }
  .cv-hero { min-height: 56vh; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-card, .cv-btn-primary, .cv-gallery-item img { transition: none; }
}

/* ===== Site header ===== */
.cv-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.cv-site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cv-site-header-logo { flex: 0 0 auto; }
.cv-site-header-logo .site-logo {
  font-family: var(--cv-font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
  text-decoration: none;
}
.cv-site-header-logo img { max-height: 48px; width: auto; display: block; }
.cv-site-header-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.cv-site-header-nav ul.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-site-header-nav .nav-menu a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.cv-site-header-nav .nav-menu a:hover { color: var(--cv-primary); }
.cv-site-header-cta {
  flex: 0 0 auto;
  background: var(--cv-primary);
  color: #fff !important;
  padding: 11px 24px;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cv-primary) 35%, transparent);
}
.cv-site-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--cv-primary) 45%, transparent);
}
.cv-site-header-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.cv-site-header-toggle span { display: block; height: 2px; background: #0f172a; border-radius: 2px; }

@media (max-width: 860px) {
  .cv-site-header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    display: none;
  }
  .cv-site-header-nav.is-open { display: flex; }
  .cv-site-header-nav ul.nav-menu { flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .cv-site-header-toggle { display: flex; }
  .cv-site-header-cta { display: none; }
}

/* ===== Site footer ===== */
.cv-site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 24px 28px;
}
.cv-site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cv-site-footer-brand .site-logo {
  color: #fff;
  font-family: var(--cv-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}
.cv-site-footer-tagline { margin-top: 12px; color: #94a3b8; max-width: 380px; font-size: 0.92rem; }
.cv-site-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-site-footer-nav a { color: #cbd5e1; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.cv-site-footer-nav a:hover { color: #fff; }
.cv-site-footer-copy { max-width: 1200px; margin: 20px auto 0; text-align: center; font-size: 0.82rem; color: #64748b; }

@media (max-width: 640px) {
  .cv-site-footer-inner { grid-template-columns: 1fr; }
  .cv-site-footer-nav ul { justify-content: flex-start; }
}

/* ===== Section dividers & shadow depth variety ===== */
.cv-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
  border: none;
  margin: 0;
}
.cv-divider-wave {
  display: block;
  width: 100%;
  height: 48px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C300,70 900,-10 1200,30 L1200,60 L0,60 Z'/%3E%3C/svg%3E") center/cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C300,70 900,-10 1200,30 L1200,60 L0,60 Z'/%3E%3C/svg%3E") center/cover no-repeat;
}
.cv-shadow-sm { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); }
.cv-shadow-md { box-shadow: var(--cv-shadow); }
.cv-shadow-lg { box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14); }
