/*
Theme Name: Rec Craft
Theme URI: https://lean-x-leonel.net/
Author: Rec Craft
Description: Premium WordPress theme for the Rec Craft Minecraft community.
Version: 3.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rec-craft
*/

:root {
  --night: #100603;
  --night-2: #1b0904;
  --panel: #261008;
  --cream: #fff8ee;
  --muted: #b9a69d;
  --orange: #f4510b;
  --lime: #ff7a16;
  --blue: #9b2805;
  --online: #57f287;
  --line: rgba(255,255,255,.12);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--lime); color: var(--night); }

.nav {
  height: 86px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between;
  position: absolute; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(5,8,15,.82), rgba(5,8,15,.18)); backdrop-filter: blur(14px);
}
.brand, .footer-brand { display: flex; align-items: center; gap: 13px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 0 4px rgba(217,255,67,.08), 0 10px 30px rgba(0,0,0,.3); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 32px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav-links > a { opacity: .8; transition: opacity .2s, color .2s; }
.nav-links > a:hover { opacity: 1; color: var(--lime); }
.nav-links .nav-cta { opacity: 1; padding: 13px 20px; background: var(--orange); color: white; border-radius: 7px; box-shadow: 0 0 28px rgba(244,81,11,.28); }

.hero {
  min-height: 940px; position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden;
  background: #1a0803 url("assets/rec-craft-splash-official.jpg") 72% center/cover no-repeat;
}
.hero:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,6,3,.99) 0%, rgba(16,6,3,.94) 34%, rgba(16,6,3,.3) 67%, rgba(16,6,3,.05) 100%), linear-gradient(0deg, var(--night) 0%, transparent 26%); }
.hero:after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(90deg,#000,transparent 72%); }
.hero-copy { width: min(790px, 92vw); padding: 150px 0 110px clamp(22px, 7vw, 112px); position: relative; z-index: 2; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 28px; color: var(--lime); font: 800 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 10px; height: 10px; background: var(--orange); border-radius: 2px; box-shadow: 0 0 18px rgba(255,90,42,.7); }
.hero h1, .section-title, .subhero h1, .faq-header h1 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 { max-width: 820px; font-size: clamp(76px, 9.4vw, 154px); line-height: .81; text-wrap: balance; }
.hero h1 em { color: var(--orange); font-style: normal; text-shadow: 0 0 42px rgba(255,90,42,.2); }
.hero-text { max-width: 660px; margin: 35px 0 34px; color: #cbd3df; font-size: clamp(18px,1.6vw,22px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 58px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 8px; border: 1px solid var(--line); font: 850 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: white; background: var(--orange); border-color: var(--orange); box-shadow: 0 14px 40px rgba(244,81,11,.3); }
.button-secondary { background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.button-secondary:hover { background: rgba(255,255,255,.14); }
.hero-trust { margin: 25px 0 0; display: flex; gap: 22px; align-items: center; color: #8993a6; font: 700 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.hero-trust strong { color: var(--cream); }
.online-dot, .status-dot { width: 8px; height: 8px; display: inline-block; background: var(--online); border-radius: 50%; box-shadow: 0 0 0 5px rgba(87,242,135,.1), 0 0 18px rgba(87,242,135,.55); }
.scroll-cue { position: absolute; left: clamp(22px,7vw,112px); bottom: 35px; display: flex; gap: 10px; align-items: center; color: #8c96a8; font: 700 9px var(--mono); letter-spacing: .15em; text-transform: uppercase; }

.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); background: #170804; }
.stat { min-height: 140px; padding: 34px clamp(20px,4vw,60px); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.stat:last-child { border-right: 0; }
.stat strong { font: 900 clamp(28px,3vw,46px) var(--display); letter-spacing: -.02em; color: var(--lime); }
.stat span { margin-top: 8px; color: var(--muted); font: 700 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.section { padding: clamp(90px,10vw,160px) clamp(22px,7vw,112px); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: end; margin-bottom: 80px; }
.section-kicker { color: var(--orange); }
.section-title { font-size: clamp(56px,7.8vw,118px); line-height: .86; }
.section-title em { color: var(--lime); font-style: normal; }
.world { background: radial-gradient(circle at 85% 15%,rgba(244,81,11,.2),transparent 34%), var(--night); }
.world-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(35px,7vw,110px); align-items: start; }
.world-lead { margin: 0; max-width: 720px; font-size: clamp(25px,3vw,44px); font-weight: 680; line-height: 1.18; letter-spacing: -.035em; }
.world-lead em { color: var(--orange); font-style: normal; }
.feature-stack { display: grid; gap: 14px; }
.feature { padding: 28px; display: grid; grid-template-columns: 54px 1fr; gap: 22px; background: linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025)); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .2s; }
.feature:hover { transform: translateX(5px); border-color: rgba(217,255,67,.45); }
.feature-num { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: rgba(244,81,11,.14); color: var(--lime); font: 900 12px var(--mono); }
.feature h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; }

.roadmap { background: var(--cream); color: var(--night); }
.roadmap .section-kicker { color: #b43818; }
.roadmap .section-title em { color: var(--orange); }
.roadmap-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 2px solid var(--night); }
.phase { position: relative; padding: 42px 28px 35px 0; border-right: 1px solid rgba(7,10,18,.2); min-height: 280px; }
.phase:not(:first-child) { padding-left: 28px; }
.phase:last-child { border-right: 0; }
.phase:before { content: ""; width: 13px; height: 13px; position: absolute; top: -8px; left: 0; background: var(--cream); border: 3px solid var(--night); border-radius: 50%; }
.phase:not(:first-child):before { left: 28px; }
.phase.active:before { background: var(--orange); box-shadow: 0 0 0 7px rgba(255,90,42,.15); }
.phase small { font: 800 10px var(--mono); letter-spacing: .1em; color: #68665e; }
.phase h3 { margin: 28px 0 14px; font-size: clamp(23px,2vw,32px); letter-spacing: -.04em; }
.phase p { margin: 0; color: #5d5c56; line-height: 1.58; }
.phase .phase-state { margin-top: 28px; display: inline-flex; padding: 8px 11px; background: var(--night); color: white; border-radius: 5px; font: 800 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.phase.active .phase-state { background: var(--orange); }

.server-zone { background: radial-gradient(circle at 85% 15%,rgba(255,122,22,.32),transparent 35%), linear-gradient(135deg,#7a1d02,#160804 72%); }
.server-shell { border: 1px solid rgba(255,255,255,.2); border-radius: 22px; overflow: hidden; background: rgba(5,9,18,.6); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.server-bar { min-height: 70px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 800 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.server-status { display: flex; align-items: center; gap: 12px; color: var(--online); }
.server-main { padding: clamp(38px,6vw,82px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.server-main h2 { margin: 0; max-width: 760px; font: 900 clamp(54px,7vw,110px)/.84 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.server-main h2 em { color: var(--lime); font-style: normal; }
.server-main p { max-width: 650px; color: #bdc7d8; font-size: 18px; line-height: 1.65; }
.server-facts { margin: 0; display: grid; align-content: center; }
.server-facts div { padding: 21px 0; border-bottom: 1px solid var(--line); }
.server-facts dt { margin-bottom: 7px; color: var(--muted); font: 700 9px var(--mono); letter-spacing: .13em; }
.server-facts dd { margin: 0; font: 850 15px var(--mono); }
.server-footer { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--orange); color: white; font: 850 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; }

.community { min-height: 650px; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 40%,#ff8424 0%,var(--orange) 52%,#c83104 100%); color: var(--night); }
.community .section-kicker { color: var(--night); justify-content: center; }
.community:before { content: "RC"; position: absolute; font: 900 min(55vw,760px)/1 var(--display); color: rgba(7,10,18,.07); letter-spacing: -.08em; }
.community-inner { max-width: 1000px; position: relative; z-index: 1; }
.community h2 { margin: 0; font: 900 clamp(72px,12vw,180px)/.8 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.community p { max-width: 650px; margin: 32px auto; font-size: 20px; line-height: 1.5; }
.community .button { background: var(--night); color: white; border-color: var(--night); box-shadow: 0 15px 35px rgba(7,10,18,.2); }

footer { min-height: 210px; padding: 50px clamp(22px,7vw,112px); display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 35px; align-items: center; background: #05070c; border-top: 1px solid var(--line); font: 650 10px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
footer p { color: #788195; text-align: center; }
.footer-links { display: flex; gap: 24px; justify-content: flex-end; }
.footer-links a:hover { color: var(--lime); }

.subpage { min-height: 100vh; background: var(--night); }
.subhero { min-height: 760px; padding: 180px clamp(22px,8vw,130px) 100px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; background: radial-gradient(circle at 75% 20%,rgba(244,81,11,.32),transparent 35%), var(--night-2); border-bottom: 1px solid var(--line); }
.subhero:after { content: "RC"; position: absolute; right: -2vw; bottom: -11vw; color: rgba(255,255,255,.035); font: 900 clamp(260px,42vw,680px)/1 var(--display); letter-spacing: -.1em; }
.subhero > * { position: relative; z-index: 2; }
.subhero h1, .faq-header h1 { max-width: 1200px; font-size: clamp(72px,10vw,155px); line-height: .82; }
.subhero h1 em, .faq-header h1 em { color: var(--orange); font-style: normal; }
.subhero > p:not(.section-kicker) { max-width: 740px; color: #bdc7d8; font-size: clamp(18px,2vw,25px); line-height: 1.6; }
.discord-page .subhero { background: linear-gradient(90deg,rgba(16,6,3,.98),rgba(16,6,3,.42)), url("assets/rec-craft-banner-official.jpg") center/cover; }
.server-icon { width: 108px; height: 108px; margin-bottom: 35px; border-radius: 24px; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 0 0 8px rgba(217,255,67,.08), 0 25px 60px rgba(0,0,0,.3); }
.subdetails { display: grid; grid-template-columns: repeat(3,1fr); }
.subdetails > div { min-height: 310px; padding: 65px clamp(24px,5vw,72px); border-right: 1px solid var(--line); background: var(--night-2); }
.subdetails > div:last-child { border-right: 0; }
.subdetails span { color: var(--lime); font: 850 11px var(--mono); }
.subdetails h2 { margin: 38px 0 15px; font-size: 36px; }
.subdetails p { color: var(--muted); line-height: 1.65; }
.server-table { display: grid; grid-template-columns: repeat(2,1fr); background: var(--lime); color: var(--night); }
.server-table div { min-height: 190px; padding: 43px clamp(24px,6vw,85px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(7,10,18,.2); border-bottom: 1px solid rgba(7,10,18,.2); }
.server-table span { font: 750 10px var(--mono); letter-spacing: .12em; }
.server-table strong { font: 900 clamp(24px,3.5vw,48px) var(--display); }
.faq-header { padding: 190px clamp(22px,8vw,130px) 110px; background: var(--orange); color: var(--night); }
.faq-list { padding: 20px clamp(22px,8vw,130px) 90px; }
.faq-list article { padding: 55px 0; display: grid; grid-template-columns: 90px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.faq-list article > span { color: var(--lime); font: 850 12px var(--mono); }
.faq-list h2 { margin: 0; font-size: clamp(29px,4vw,60px); letter-spacing: -.04em; }
.faq-list p { max-width: 820px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.faq-cta { padding: 100px clamp(22px,8vw,130px); background: linear-gradient(120deg,#8f2304,#160804); }
.faq-cta h2 { margin: 0; font: 900 clamp(55px,8vw,120px)/.9 var(--display); text-transform: uppercase; }
.faq-cta p { max-width: 650px; color: #bdc7d8; font-size: 19px; line-height: 1.6; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { .hero-copy > * { animation: rise .7s both; } .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; } }

@media (max-width: 900px) {
  .section-head, .world-grid, .server-main { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .roadmap-grid { grid-template-columns: repeat(2,1fr); }
  .phase:nth-child(2) { border-right: 0; }
  .section-head { gap: 20px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 650px) {
  .nav { height: 72px; padding: 0 17px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-links { gap: 0; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { padding: 11px 14px; }
  .hero { min-height: 850px; background-position: 54% center; align-items: flex-end; }
  .hero:before { background: linear-gradient(0deg,rgba(5,9,18,.99) 8%,rgba(5,9,18,.85) 58%,rgba(5,9,18,.25) 100%); }
  .hero-copy { width: 100%; padding: 130px 20px 105px; }
  .hero h1 { font-size: clamp(66px,21vw,96px); }
  .hero-text { font-size: 17px; line-height: 1.55; }
  .hero-actions .button { width: 100%; }
  .hero-trust { align-items: flex-start; flex-direction: column; gap: 10px; }
  .scroll-cue { left: 20px; }
  .stat-strip, .roadmap-grid, .subdetails, .server-table { grid-template-columns: 1fr; }
  .stat { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 82px 20px; }
  .section-head { margin-bottom: 50px; }
  .world-grid { gap: 55px; }
  .feature { grid-template-columns: 45px 1fr; padding: 22px 18px; }
  .feature-num { width: 40px; height: 40px; }
  .phase, .phase:not(:first-child) { padding: 38px 0; border-right: 0; border-bottom: 1px solid rgba(7,10,18,.2); min-height: 0; }
  .phase:not(:first-child):before { left: 0; }
  .server-main { padding: 40px 20px; gap: 35px; }
  .server-footer { align-items: flex-start; flex-direction: column; }
  .community { min-height: 560px; }
  .community h2 { font-size: clamp(72px,23vw,110px); }
  .subhero { min-height: 720px; padding: 145px 20px 80px; }
  .subhero h1, .faq-header h1 { font-size: clamp(66px,19vw,100px); }
  .subdetails > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-header { padding: 150px 20px 75px; }
  .faq-list { padding: 0 20px 60px; }
  .faq-list article { grid-template-columns: 1fr; gap: 12px; }
  .faq-cta { padding: 75px 20px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-copy > * { animation: none !important; } }
