/*
Theme Name: Reli Risk Solutions
Theme URI: https://relirisksolutions.co.uk
Author: Reli Risk Solutions
Description: Custom WordPress theme for Reli Risk Solutions — Protection that performs.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: reli
*/

/* ── CSS Variables ── */
:root {
  --navy: #1e2d45;
  --navy-dark: #162236;
  --navy-mid: #253552;
  --orange: #e8621a;
  --orange-light: #f07830;
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #1e2d45;
  --text-light: #5a6a7e;
  --border: #dde3ec;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 92px;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 60px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 16px;
  color: var(--navy); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  border-radius: 4px; transition: color .2s, background .2s;
}
.nav-links > li > a:hover { color: var(--orange); background: rgba(255,255,255,.08); }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  min-width: 220px; padding: 8px 0; list-style: none;
}
.nav-links > li:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block; padding: 10px 20px;
  color: var(--navy); font-size: .875rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-dropdown li a:hover { background: var(--cream); color: var(--orange); }
.nav-links > li:last-of-type { margin-left: 16px; }
.nav-cta {
  background: var(--orange); color: var(--white) !important;
  border-radius: 6px; padding: 9px 20px !important;
  font-weight: 600 !important; transition: background .2s !important;
}
.nav-cta:hover { background: var(--orange-light) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh; background: var(--navy);
  position: relative; display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(232,98,26,.12) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.04) 0%, transparent 45%);
}
.hero-shield {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 680px; height: 680px; opacity: .06;
}
.hero-shield svg { width: 100%; height: 100%; }
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 80px 48px;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,98,26,.18); color: var(--orange-light);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  animation: fadeUp .7s .1s both;
}
.hero-eyebrow span { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600;
  color: var(--white); line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 24px; animation: fadeUp .7s .2s both;
}
.hero-headline em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.6); }
.hero-sub {
  font-size: 1.08rem; color: rgba(255,255,255,.65);
  line-height: 1.75; max-width: 480px; margin-bottom: 40px;
  animation: fadeUp .7s .3s both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .7s .4s both; }
.btn-primary {
  background: var(--orange); color: var(--white);
  padding: 14px 28px; border-radius: 6px;
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,.8);
  padding: 14px 28px; border-radius: 6px;
  font-size: .9rem; font-weight: 500; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: var(--white); }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  border-radius: 12px; overflow: hidden; animation: fadeUp .7s .5s both;
}
.stat-card {
  background: rgba(255,255,255,.06); padding: 36px 32px;
  border: 1px solid rgba(255,255,255,.08); transition: background .2s;
}
.stat-card:hover { background: rgba(255,255,255,.1); }
.stat-card:first-child { border-radius: 12px 0 0 0; }
.stat-card:nth-child(2) { border-radius: 0 12px 0 0; }
.stat-card:nth-child(3) { border-radius: 0 0 0 12px; }
.stat-card:last-child { border-radius: 0 0 12px 0; }
.stat-number {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 6px;
}
.stat-number span { color: var(--orange); }
.stat-label { font-size: .83rem; color: rgba(255,255,255,.5); font-weight: 400; line-height: 1.4; }

/* ── STRIP ── */
.strip {
  background: var(--orange); padding: 18px 48px;
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.strip-item { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: .875rem; font-weight: 500; }
.strip-icon { font-size: 1.1rem; }

/* ── SECTION COMMONS ── */
section { padding: 96px 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 48px; }
.section-eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600; line-height: 1.15; color: var(--navy); margin-bottom: 20px;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--text-light); }
.section-body { font-size: 1rem; line-height: 1.8; color: var(--text-light); max-width: 600px; }

/* ── ABOUT ── */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap {
  background: var(--navy); border-radius: 12px;
  aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.about-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(232,98,26,.3));
}
.about-pattern {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(232,98,26,.2) 0%, transparent 50%);
  display: flex; align-items: center; justify-content: center;
}
.about-pattern img { width: 502px; opacity: .9; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--orange); border-radius: 10px;
  padding: 20px 24px; text-align: center;
  box-shadow: 0 8px 30px rgba(232,98,26,.4);
}
.about-badge-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--white); line-height: 1; }
.about-badge-label { font-size: .75rem; color: rgba(255,255,255,.8); font-weight: 500; margin-top: 4px; }
.about-content { padding-right: 20px; }
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-list li { font-size: .95rem; line-height: 1.6; color: var(--text-light); display: flex; gap: 10px; }
.about-list li::before {
  content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 50%;
  flex-shrink: 0; margin-top: 8px;
}

/* ── EXPERTISE ── */
.expertise-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; flex-wrap: wrap; gap: 20px;
}
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.expertise-card {
  background: var(--cream); padding: 40px 36px;
  position: relative; overflow: hidden; transition: background .25s; cursor: pointer;
}
.expertise-card:hover { background: var(--navy); }
.expertise-card:hover .ec-title { color: var(--white); }
.expertise-card:hover .ec-body { color: rgba(255,255,255,.6); }
.expertise-card:hover .ec-arrow { color: var(--orange); }
.expertise-card:first-child { border-radius: 12px 0 0 0; }
.expertise-card:nth-child(3) { border-radius: 0 12px 0 0; }
.expertise-card:nth-child(4) { border-radius: 0 0 0 12px; }
.expertise-card:last-child { border-radius: 0 0 12px 0; }
.ec-icon {
  width: 55px; height: 55px; background: rgba(232,98,26,.12);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem; transition: background .25s;
}
.ec-icon svg { width: 45px; height: 45px; fill: var(--orange); }
.expertise-card:hover .ec-icon { background: rgba(232,98,26,.25); }
.ec-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; transition: color .25s; }
.ec-body { font-size: .875rem; line-height: 1.65; color: var(--text-light); transition: color .25s; }
.ec-arrow { position: absolute; bottom: 28px; right: 28px; font-size: 1.2rem; color: var(--border); transition: color .25s, transform .25s; }
.expertise-card:hover .ec-arrow { transform: translate(3px, -3px); }

/* ── HOW WE WORK ── */
.how { background: var(--cream); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 64px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); position: relative; }
.step:last-child { border-bottom: none; }
.step-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--border); line-height: 1; min-width: 48px; transition: color .3s; }
.step:hover .step-num { color: var(--orange); }
.step-content h4 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step-content p { font-size: .875rem; line-height: 1.7; color: var(--text-light); }
.how-visual { background: var(--navy); border-radius: 12px; padding: 56px 48px; position: relative; overflow: hidden; }
.how-visual::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 250px; height: 250px; background: rgba(232,98,26,.15); border-radius: 50%;
}
.how-visual-quote { font-family: var(--font-display); font-size: 1.35rem; font-weight: 300; font-style: italic; color: var(--white); line-height: 1.6; position: relative; z-index: 1; }
.how-visual-quote strong { font-weight: 600; font-style: normal; color: var(--orange-light); }
.how-visual-attr { margin-top: 24px; font-size: .82rem; color: rgba(255,255,255,.5); letter-spacing: .05em; text-transform: uppercase; }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--navy); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-eyebrow { color: var(--orange-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.testi-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 36px 32px; transition: background .2s; }
.testi-card:hover { background: rgba(255,255,255,.1); }
.testi-stars { color: var(--orange); font-size: .9rem; margin-bottom: 18px; letter-spacing: 2px; }
.testi-text { font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.7); margin-bottom: 24px; font-style: italic; }
.testi-sector { display: inline-block; background: rgba(232,98,26,.2); color: var(--orange-light); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }

/* ── CONTACT SECTION ── */
.contact-section { background: var(--orange); padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.contact-detail-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; text-decoration: none; transition: background .2s, border-color .2s;
}
a.contact-detail-item:hover { background: rgba(255,255,255,.1); border-color: rgba(232,98,26,.4); }
.contact-detail-label { font-size: .75rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-detail-value { font-size: .9rem; color: var(--white); font-weight: 500; }
.contact-promise { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; background: rgba(232,98,26,.1); border: 1px solid rgba(232,98,26,.2); border-radius: 8px; }
.contact-promise p { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.contact-form-card { background: var(--white); border-radius: 16px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.form-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--navy); letter-spacing: .03em; }
.form-group .req { color: var(--orange); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 6px;
  font-family: var(--font-body); font-size: .9rem; color: var(--navy);
  background: var(--white); transition: border-color .2s, box-shadow .2s; outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #aab4c2; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,98,26,.12); }
.form-group input.error, .form-group textarea.error { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1); }
.field-error { font-size: .78rem; color: #e53e3e; display: none; margin-top: 2px; }
.field-error.visible { display: block; }
.btn-submit { width: 100%; background: var(--navy); color: var(--white); border: none; border-radius: 6px; padding: 14px 24px; font-family: var(--font-body); font-size: .9rem; font-weight: 600; cursor: pointer; margin-top: 4px; transition: background .2s, transform .15s; }
.btn-submit:hover { background: var(--orange); transform: translateY(-1px); }
.form-success { text-align: center; padding: 32px 16px; }
.form-success-icon { width: 56px; height: 56px; background: #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin: 0 auto 16px; }
.form-success h4 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.form-success p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 72px 0 32px; }
.footer-grid { max-width: 1180px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand img { height: 60px; margin-bottom: 20px; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 260px; }
.footer-col h5 { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 24px 48px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .about-grid, .how-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .strip { padding: 18px 24px; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* WordPress core styles */
.wp-block { max-width: 1180px; }
img { max-width: 100%; height: auto; }
a { color: var(--orange); }
