/*
Theme Name: RyEvoTech
Theme URI: https://ryevotech.com
Author: RyEvoTech
Author URI: https://ryevotech.com
Description: A modern, high-tech consulting theme for RyEvoTech featuring a carbon, graphite, silver, and signal-red design system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ryevotech
*/

:root {
  --ryevo-red: #E32636;
  --carbon: #0D1117;
  --graphite: #252A31;
  --titanium: #69727D;
  --silver: #B8C0C8;
  --cloud: #F5F7F9;
  --white: #ffffff;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--cloud);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: blur(14px);
  background: rgba(13,17,23,.88);
  border-bottom: 1px solid rgba(184,192,200,.12);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; font-size: 1.35rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ryevo-red), #8f1220);
  box-shadow: 0 0 30px rgba(227,38,54,.25);
  font-weight: 900;
}
.brand .accent { color: var(--ryevo-red); }
.nav-toggle { display:none; background:transparent; border:1px solid rgba(255,255,255,.15); color:white; border-radius:10px; padding:10px 12px; }
.primary-menu { list-style:none; display:flex; align-items:center; gap:28px; margin:0; padding:0; }
.primary-menu a { color: #d9dee4; font-weight: 600; font-size:.95rem; }
.primary-menu a:hover { color: var(--white); }
.header-cta { padding: 11px 17px; border-radius: 10px; background: var(--ryevo-red); color:white !important; }

.hero {
  position: relative; overflow: hidden;
  min-height: 690px; display:grid; align-items:center;
  background:
    radial-gradient(circle at 75% 25%, rgba(227,38,54,.20), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(184,192,200,.07), transparent 35%),
    linear-gradient(180deg, #0b0f14 0%, #111820 100%);
}
.hero::before {
  content:""; position:absolute; inset:0; opacity:.22; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-inner { position:relative; z-index:2; display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap:70px; padding: 90px 0; }
.eyebrow { text-transform:uppercase; letter-spacing:.16em; color:var(--silver); font-size:.78rem; font-weight:800; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.7rem); line-height:.95; letter-spacing:-.06em; margin:16px 0 26px; max-width: 900px; }
.hero h1 .accent { color:var(--ryevo-red); }
.hero p { font-size:1.18rem; color:#bcc5cf; max-width:690px; }
.button-row { display:flex; gap:14px; flex-wrap:wrap; margin-top:34px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 20px; border-radius:11px; font-weight:800; border:1px solid transparent; transition:.2s ease; }
.btn-primary { background:var(--ryevo-red); color:white; box-shadow:0 10px 30px rgba(227,38,54,.18); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 15px 35px rgba(227,38,54,.28); }
.btn-secondary { border-color:rgba(255,255,255,.16); color:white; background:rgba(255,255,255,.03); }

.hero-panel { position:relative; min-height:420px; }
.tech-card { position:absolute; border:1px solid rgba(184,192,200,.16); background:linear-gradient(180deg, rgba(37,42,49,.82), rgba(18,23,29,.88)); border-radius:20px; box-shadow:var(--shadow); backdrop-filter: blur(10px); }
.tech-card.one { inset: 20px 50px 100px 0; padding:26px; }
.tech-card.two { width:58%; right:0; bottom:25px; padding:22px; }
.tech-card .line { height:8px; border-radius:99px; background:rgba(184,192,200,.15); margin:12px 0; }
.tech-card .line.red { width:48%; background:linear-gradient(90deg,var(--ryevo-red),rgba(227,38,54,.15)); }
.metric { font-size:2.5rem; font-weight:900; letter-spacing:-.05em; }
.metric-label { color:var(--silver); font-size:.9rem; }

.section { padding: 96px 0; }
.section-light { background:var(--cloud); color:var(--carbon); }
.section-kicker { color:var(--ryevo-red); text-transform:uppercase; letter-spacing:.14em; font-size:.78rem; font-weight:900; }
.section-title { font-size:clamp(2.2rem,4vw,4.2rem); line-height:1.05; letter-spacing:-.045em; margin:12px 0 18px; max-width:850px; }
.section-lead { color:var(--titanium); max-width:760px; font-size:1.08rem; }

.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:46px; }
.service-card { padding:30px; border-radius:var(--radius); border:1px solid #dde2e7; background:white; min-height:250px; transition:.2s ease; }
.service-card:hover { transform:translateY(-5px); box-shadow:0 20px 45px rgba(13,17,23,.10); }
.service-icon { width:46px; height:46px; border-radius:12px; background:#fff0f2; color:var(--ryevo-red); display:grid; place-items:center; font-weight:900; margin-bottom:38px; }
.service-card h3 { margin:0 0 10px; font-size:1.3rem; }
.service-card p { color:var(--titanium); margin:0; }

.dark-grid { display:grid; grid-template-columns: 1fr 1fr; gap:46px; align-items:center; }
.feature-list { display:grid; gap:18px; }
.feature { display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:start; padding:18px 0; border-bottom:1px solid rgba(255,255,255,.10); }
.feature-num { color:var(--ryevo-red); font-weight:900; }
.feature h3 { margin:0 0 6px; }
.feature p { margin:0; color:#aab4bf; }

.cta-band { background: linear-gradient(120deg, #1a1f27, #0d1117 60%, #201015); border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
.cta-inner { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:60px 0; }
.cta-inner h2 { margin:0; font-size:clamp(2rem,4vw,3.5rem); letter-spacing:-.04em; }

.site-main article { width:min(100% - 40px, 900px); margin:70px auto; }
.entry-title { font-size:clamp(2.5rem,5vw,4.6rem); line-height:1; letter-spacing:-.045em; }
.entry-content { color:#c4ccd5; }
.entry-content a { color:var(--ryevo-red); text-decoration:underline; }

.site-footer { background:#080b0f; border-top:1px solid rgba(255,255,255,.08); }
.footer-inner { display:grid; grid-template-columns:1.2fr .8fr; gap:40px; padding:55px 0; }
.footer-copy { color:#8e99a6; max-width:520px; }
.footer-bottom { padding:20px 0 30px; color:#717c88; border-top:1px solid rgba(255,255,255,.06); font-size:.9rem; }

@media (max-width: 900px) {
  .nav-toggle { display:block; }
  .primary-menu { display:none; position:absolute; left:20px; right:20px; top:74px; background:#12171e; border:1px solid rgba(255,255,255,.1); padding:18px; border-radius:14px; flex-direction:column; align-items:stretch; gap:8px; }
  .primary-menu.is-open { display:flex; }
  .primary-menu a { display:block; padding:10px 8px; }
  .hero-inner, .dark-grid, .footer-inner { grid-template-columns:1fr; }
  .hero-panel { min-height:360px; }
  .services-grid { grid-template-columns:1fr; }
  .cta-inner { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 580px) {
  .container { width:min(100% - 28px, var(--max)); }
  .hero { min-height:auto; }
  .hero-inner { padding:70px 0 80px; gap:35px; }
  .hero h1 { font-size:3.25rem; }
  .hero-panel { min-height:300px; }
  .tech-card.one { inset:0 25px 85px 0; }
  .tech-card.two { width:70%; }
  .section { padding:72px 0; }
}
