/*
Theme Name: Fraternity
Theme URI: https://rffrat.com/
Author: Fraternity Guild
Description: A cinematic Elementor-ready theme for the Fraternity RF Online Next guild.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fraternity
*/

:root {
  --fr-bg: #05090c;
  --fr-bg-soft: #0a1116;
  --fr-panel: rgba(12, 24, 29, 0.82);
  --fr-line: rgba(103, 234, 225, 0.2);
  --fr-accent: #32e6d0;
  --fr-accent-bright: #91fff2;
  --fr-text: #f2f8f7;
  --fr-muted: #9aadb0;
  --fr-heading: "Barlow Condensed", sans-serif;
  --fr-body: "Rajdhani", sans-serif;
  --fr-shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fr-text);
  background:
    radial-gradient(circle at 12% 20%, rgba(22, 116, 119, 0.13), transparent 28rem),
    linear-gradient(180deg, #060a0d 0%, #05090c 100%);
  font-family: var(--fr-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(75, 227, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 227, 214, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
::selection { color: #03100e; background: var(--fr-accent); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  color: #021210;
  background: var(--fr-accent);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 255, 246, 0.14);
  background: linear-gradient(180deg, rgba(2, 6, 8, 0.9), rgba(2, 6, 8, 0.18));
}

.admin-bar .site-header { top: 32px; }
.site-header__inner {
  width: var(--fr-shell);
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding__mark { width: 38px; color: var(--fr-accent); filter: drop-shadow(0 0 12px rgba(50, 230, 208, 0.4)); }
.site-branding__text { display: grid; line-height: 1; }
.site-branding__name {
  font-family: var(--fr-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-branding__tag {
  margin-top: 6px;
  color: var(--fr-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.primary-menu { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.primary-menu a {
  position: relative;
  color: #c8d7d8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.primary-menu a::after {
  position: absolute;
  right: 100%;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--fr-accent);
  transition: right 180ms ease;
}
.primary-menu a:hover, .primary-menu a:focus { color: #fff; }
.primary-menu a:hover::after, .primary-menu a:focus::after { right: 0; }

.site-header__cta {
  padding: 12px 18px;
  border: 1px solid rgba(77, 238, 222, 0.5);
  color: var(--fr-accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.site-header__cta:hover { color: #03110f; background: var(--fr-accent); box-shadow: 0 0 24px rgba(50, 230, 208, 0.25); }
.nav-toggle { display: none; border: 0; color: #fff; background: transparent; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 6px 0; background: currentColor; }

.site-main { min-height: 60vh; }
.site-main > .page-shell,
.site-main > article:not(.elementor-page) { width: var(--fr-shell); padding: 160px 0 90px; margin: 0 auto; }
body.elementor-page .site-main > article { width: auto; padding: 0; margin: 0; }
.entry-title { font-family: var(--fr-heading); font-size: clamp(48px, 7vw, 86px); line-height: 0.95; text-transform: uppercase; }

.site-footer { position: relative; padding: 62px 0 30px; border-top: 1px solid var(--fr-line); background: #030608; }
.site-footer::before { position: absolute; top: -1px; left: 8%; width: 180px; height: 2px; content: ""; background: var(--fr-accent); box-shadow: 0 0 18px var(--fr-accent); }
.site-footer__inner { width: var(--fr-shell); margin: 0 auto; }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; padding-bottom: 42px; }
.site-footer__intro { max-width: 460px; }
.site-footer__intro p { color: var(--fr-muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 12px; }
.site-footer__nav a { color: #c5d4d5; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); color: #718386; font-size: 13px; }

@media (max-width: 900px) {
  :root { --fr-shell: min(100% - 32px, 1180px); }
  .admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 76px; }
  .nav-toggle { display: block; z-index: 2; }
  .site-header__cta { display: none; }
  .site-navigation {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    background: rgba(3, 8, 11, 0.98);
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .site-navigation.is-open { visibility: visible; opacity: 1; }
  .primary-menu { flex-direction: column; gap: 28px; }
  .primary-menu a { font-family: var(--fr-heading); font-size: 28px; }
  .site-footer__top, .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
