/*
Theme Name: Core Peak Tech
Theme URI: https://corepeakte.ch/theme
Author: Core Peak Tech
Author URI: https://corepeakte.ch
Description: Branded theme for Core Peak Tech (broker/fintech). Hero CTA, solutions grid, case studies, partners, and contact capture.
Version: 1.1.20250922
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: core-peak-tech
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, blog, portfolio
*/
:root {
  --cpt-primary: #1E293B; /* dark slate (logo text) */
  --cpt-accent: #2563EB;  /* core blue */
  --cpt-accent-2: #06B6D4;/* cyan secondary */
  --cpt-bg: #0b1220;      /* dark gradient background */
  --cpt-text: #E5E7EB;    /* light text */
  --cpt-muted: #94A3B8;   /* slate-400/500 */
}

body {
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--cpt-text);
  background: linear-gradient(180deg, #0b1220 0%, #0b1220 60%, #0d1325 100%);
}

a { color: var(--cpt-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.header { position: sticky; top:0; z-index: 50; background: rgba(15,23,42,.7); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06);}
.header .inner { display:flex; align-items:center; justify-content:space-between; padding: .9rem 0; }
.logo a { display:flex; align-items:center; gap:.6rem; font-weight:700; letter-spacing:.2px; color:#fff; }
.logo img { height:28px; width:auto; }
.nav ul { display:flex; gap:1.25rem; list-style:none; margin:0; padding:0; }
.nav a { color:#cbd5e1; font-weight:500; }
.nav a:hover, .nav a:focus { color:#fff; }

.btn { display:inline-block; padding:.75rem 1.1rem; border-radius:.75rem; font-weight:600; }
.btn-primary { background:linear-gradient(90deg, var(--cpt-accent), #3b82f6); color:#001018; }
.btn-outline { border:1px solid rgba(255,255,255,.2); color:#e5e7eb; }

.hero { padding: 4.5rem 0 3rem; text-align:center; background: radial-gradient(1200px 600px at 50% -10%, rgba(37,99,235,.25), rgba(6,182,212,.18) 45%, rgba(0,0,0,0) 70%); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height:1.05; margin:.4rem 0; color:#fff; }
.hero p { color:#cbd5e1; max-width: 820px; margin: .75rem auto 1.25rem; font-size:1.1rem; }
.hero .cta { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.hero .metrics { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:1rem; margin-top:2rem; }
.metric { background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); padding:1rem; border-radius:1rem; }
.metric h3 { margin:.25rem 0; color:#fff; }
.metric p { margin:0; color:#9ca3af; font-size:.95rem; }

.section { padding: 2.75rem 0; }
.section h2 { text-align:center; font-size: clamp(1.5rem, 3vw, 2.25rem); margin:0 0 .75rem; }
.section p.section-lead { text-align:center; color:#9ca3af; max-width:800px; margin:0 auto 1.5rem; }

.grid-3 { display:grid; gap:1rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:1rem; padding:1rem; }
.card h3 { margin-top:.2rem; }
.card p { color:#9ca3af; }

.partners { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:1rem; opacity:.9; }
.partner-tile { background: rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); height:64px; border-radius:.75rem; display:flex; align-items:center; justify-content:center; font-weight:600; color:#9ca3af; }

.footer { border-top:1px solid rgba(255,255,255,.06); margin-top:2rem; }
.footer .inner { display:grid; grid-template-columns: 2fr 1fr 1fr; gap:1rem; padding:2rem 0; }
.footer p, .footer a { color:#9ca3af; }
.footer small { display:block; padding: 0 0 1rem 0; color:#6b7280; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero .metrics { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer .inner { grid-template-columns: 1fr; }
}

/* Stack logo above text and center both */
.header .logo .brand-link {
  display: flex;
  flex-direction: column;   /* vertical stack */
  align-items: center;      /* center horizontally */
  text-align: center;       /* center the text line */
  gap: 6px;
}

.header .logo .custom-logo,
.header .logo img {
  display: block;
  max-height: 32px;         /* adjust 28–40px as you like */
  width: auto;
}

.header .logo .brand-title {
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
}
