/*
Theme Name: Webeye
Theme URI: https://webeye.tech
Author: Webeye
Description: Lightweight, fast, hand-coded theme for Webeye Marketing. No page builder required. Global colors, fonts and CTA are editable from Appearance > Customize > Webeye Settings.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: webeye
*/

/* =========================
   DESIGN TOKENS
   (overridden inline by Customizer — see inc/customizer.php)
========================= */

:root {
  /* Color scheme 1: Evergreen (default) */
  --primary: #0f6e56;
  --primary-dark: #085041;
  --secondary: #16324f;
  --accent: #0f6e56;
  --mint: #e1f5ee;
  --ink: #111827;
  --muted: #5b6472;
  --bg: #ffffff;
  --paper: #f7f7f5;
  --line: #e5e7e3;
  --white: #ffffff;

  /* Fonts (overridden by Customizer font-pairing choice) */
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --max-width: 1160px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-height: 76px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 25px 60px rgba(15, 110, 86, 0.10);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* =========================
   RESET
========================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button, a { -webkit-tap-highlight-color: transparent; cursor: pointer; }

ul { list-style: none; margin: 0; padding: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Focus visibility for accessibility (keyboard users only) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================
   LAYOUT
========================= */

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--paper); }

/* =========================
   TYPOGRAPHY
========================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p { color: var(--muted); }

.lead { max-width: 680px; font-size: 18px; line-height: 1.6; }

.small { font-size: 13px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  transition: gap .2s var(--ease), opacity .2s var(--ease);
}
.text-link:hover { gap: 10px; opacity: .85; }

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--mint); color: var(--primary-dark); }
.btn-secondary:hover { transform: translateY(-2px); }

.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-light { background: var(--white); color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.logo img { height: 32px; width: auto; display: block; }
.logo-dot { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; color: #333b46; padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .18s var(--ease), border-color .18s var(--ease); }
.main-nav a:hover, .main-nav a.current { color: var(--primary); border-color: var(--primary); }

.header-cta { margin-left: 6px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 199;
  background: var(--white);
  padding: 28px 20px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-heading); font-size: 17px; font-weight: 650; color: var(--ink); }
.mobile-nav .btn { width: 100%; margin-top: 20px; }

/* =========================
   HERO
========================= */

.hero { padding: clamp(48px, 9vw, 100px) 0 clamp(48px, 7vw, 88px); }

.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 64px; align-items: center; }

.hero-copy { max-width: 720px; }

.hero-note { margin-top: 14px; font-size: 12.5px; color: #818984; }

.hero-visual { padding: 18px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow-lg); }

.dashboard { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.dashboard-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 25px; color: var(--muted); font-size: 12px; }
.dashboard-number { margin-bottom: 4px; font-family: var(--font-heading); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.dashboard-growth { margin-bottom: 28px; color: var(--primary); font-size: 12px; font-weight: 700; }

.chart { display: flex; height: 150px; align-items: flex-end; gap: 9px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.chart-bar { flex: 1; min-height: 16px; border-radius: 6px 6px 0 0; background: var(--mint); transition: background .2s var(--ease); }
.chart-bar:nth-child(7) { background: var(--primary); }
.chart-bar:nth-child(1) { height: 28%; } .chart-bar:nth-child(2) { height: 39%; } .chart-bar:nth-child(3) { height: 48%; }
.chart-bar:nth-child(4) { height: 45%; } .chart-bar:nth-child(5) { height: 68%; } .chart-bar:nth-child(6) { height: 75%; } .chart-bar:nth-child(7) { height: 92%; }

/* =========================
   TRUST STRIP
========================= */

.trust-strip { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }

/* =========================
   SECTION HEADER
========================= */

.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-header p { max-width: 460px; margin-bottom: 0; }

/* =========================
   CARDS / GRIDS
========================= */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.card-soft { border-color: transparent; background: var(--paper); }
.card p { margin-bottom: 0; font-size: 14.5px; }

.card-number { margin-bottom: 44px; color: var(--primary); font-family: var(--font-heading); font-size: 12px; font-weight: 800; letter-spacing: 0.03em; }

.service-card { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }

/* =========================
   PROCESS
========================= */

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-step { padding: 26px; border-top: 3px solid var(--primary); background: var(--white); border-radius: 0 0 12px 12px; }
.process-step strong { display: block; margin-bottom: 34px; color: var(--primary); font-family: var(--font-heading); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.process-step p { font-size: 14.5px; }

/* =========================
   PROOF
========================= */

.proof { padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--secondary); color: white; }
.proof h2 { max-width: 720px; color: white; }
.proof p { max-width: 640px; color: #cfd8e3; }
.proof .eyebrow { background: rgba(255,255,255,.12); color: #ffffff; }

/* =========================
   CTA
========================= */

.final-cta { padding: clamp(36px, 6vw, 60px); border-radius: var(--radius-lg); background: var(--mint); text-align: center; }
.final-cta p { max-width: 560px; margin: 0 auto 26px; }
.final-cta .actions { justify-content: center; }

/* =========================
   PAGE HERO
========================= */

.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); }
.page-hero .lead { max-width: 700px; }

/* =========================
   FOOTER
========================= */

.site-footer { padding: 64px 0 30px; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-description { max-width: 300px; font-size: 13.5px; margin-top: 14px; }
.footer-title { margin-bottom: 14px; font-family: var(--font-heading); font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); }
.footer-link { display: block; margin: 9px 0; color: var(--muted); font-size: 14px; transition: color .18s var(--ease); }
.footer-link:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: #8b918d; font-size: 12.5px; }

/* =========================
   BLOG
========================= */

.featured-post { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; margin-bottom: 36px; }
.featured-post-main { min-height: 380px; display: flex; align-items: flex-end; padding: 34px; border-radius: var(--radius-lg); background: var(--secondary); color: white; }
.featured-post-main h2 { color: white; }
.featured-post-main p { color: #cfd8e3; }
.post-meta { margin-bottom: 10px; color: var(--primary); font-family: var(--font-heading); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.featured-post-main .post-meta { color: #a9c8e8; }
.post-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card p { font-size: 14.5px; }

/* =========================
   ARTICLE
========================= */

.article { max-width: 760px; margin: auto; padding: clamp(40px,6vw,72px) 0 clamp(60px,8vw,100px); }
.article h1 { font-size: clamp(38px, 5.6vw, 62px); }
.article h2 { margin-top: 52px; font-size: 28px; }
.article p { font-size: 17px; color: #4f5864; }
.article-visual { height: 320px; display: flex; align-items: center; justify-content: center; margin: 36px 0; border-radius: var(--radius-lg); background: var(--paper); color: var(--primary); font-family: var(--font-heading); font-weight: 800; letter-spacing: 0.02em; }

/* =========================
   CONTACT
========================= */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-box { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-box p { font-size: 15px; }

/* =========================
   MOBILE CTA
========================= */

.mobile-cta { display: none; }

/* =========================
   RESPONSIVE
========================= */

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

@media (max-width: 820px) {

  body { padding-bottom: 74px; }
  .container { width: min(calc(100% - 28px), var(--max-width)); }

  .site-header { height: 64px; }
  :root { --header-height: 64px; }

  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { padding: 44px 0 48px; }

  .hero-grid, .featured-post, .contact-grid { grid-template-columns: 1fr; gap: 28px; }

  .lead { font-size: 16px; }

  .section-header { display: block; }
  .section-header p { margin-top: 12px; }

  .grid-2, .grid-3, .process { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .mobile-cta {
    position: fixed; z-index: 100; right: 12px; bottom: 12px; left: 12px;
    display: block; padding: 15px; border-radius: 12px;
    background: var(--primary); color: white; text-align: center;
    font-family: var(--font-heading); font-weight: 800;
    box-shadow: 0 14px 36px rgba(0,0,0,.18);
  }
}

@media (max-width: 560px) {
  .actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .dashboard-number { font-size: 26px; }
  .featured-post-main { min-height: 300px; padding: 24px; }
  .card, .contact-box { padding: 22px; }
}
