/*
Theme Name: First Page Rankers
Theme URI: https://firstpagerankers.com
Author: First Page Rankers
Author URI: https://firstpagerankers.com
Description: A clean, fast, Elementor-ready WordPress theme built for First Page Rankers, a digital marketing agency. Brand colors and typography are pre-set from the agency logo; every page is designed to be built and edited with Elementor (works best with Elementor Pro's Theme Builder for the header/footer).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fpr-theme
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --fpr-navy: #1B1464;
  --fpr-navy-dark: #120D45;
  --fpr-orange: #FF6A13;
  --fpr-orange-dark: #E65A00;
  --fpr-green: #00C853;
  --fpr-bg: #F7F8FB;
  --fpr-white: #FFFFFF;
  --fpr-text: #1A1A2E;
  --fpr-muted: #6B7280;
  --fpr-border: #E5E7EB;
  --fpr-font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --fpr-font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --fpr-radius: 14px;
  --fpr-shadow: 0 10px 30px rgba(27, 20, 100, 0.08);
  --fpr-max-width: 1240px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fpr-font-body);
  color: var(--fpr-text);
  background: var(--fpr-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fpr-navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--fpr-orange); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fpr-font-heading);
  color: var(--fpr-navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.fpr-container {
  max-width: var(--fpr-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fpr-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
}
.skip-link:focus { left: 8px; }

/* ==========================================================================
   3. Buttons (also usable inside Elementor via "fpr-btn" custom CSS classes)
   ========================================================================== */
.fpr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fpr-font-heading);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.fpr-btn-primary {
  background: var(--fpr-orange);
  color: #fff;
}
.fpr-btn-primary:hover {
  background: var(--fpr-orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255,106,19,.35);
}
.fpr-btn-outline {
  background: transparent;
  border-color: var(--fpr-navy);
  color: var(--fpr-navy);
}
.fpr-btn-outline:hover {
  background: var(--fpr-navy);
  color: #fff;
}

/* ==========================================================================
   4. Header & primary navigation
   ========================================================================== */
.fpr-header {
  background: var(--fpr-white);
  border-bottom: 1px solid var(--fpr-border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.fpr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.fpr-logo { display: flex; align-items: center; }
.fpr-logo img, .fpr-logo-img { height: 46px; width: auto; }
.fpr-nav { flex: 1; display: flex; justify-content: center; }
.fpr-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fpr-menu > li { position: relative; }
.fpr-menu > li > a {
  font-family: var(--fpr-font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--fpr-text);
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fpr-menu > li > a:hover,
.fpr-menu > li.current-menu-item > a,
.fpr-menu > li.current-menu-ancestor > a { color: var(--fpr-orange); }
.fpr-menu .menu-item-has-children > a::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: .7;
}
.fpr-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--fpr-white);
  border-radius: var(--fpr-radius);
  box-shadow: var(--fpr-shadow);
  border: 1px solid var(--fpr-border);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}
.fpr-menu .menu-item-has-children:hover > .sub-menu,
.fpr-menu .menu-item-has-children:focus-within > .sub-menu,
.fpr-menu .menu-item-has-children.fpr-open > .sub-menu {
  opacity: 1;
  visibility: visible;
}
.fpr-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--fpr-text);
}
.fpr-menu .sub-menu li a:hover { background: var(--fpr-bg); color: var(--fpr-orange); }
.fpr-header-cta { flex-shrink: 0; }
.fpr-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.fpr-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--fpr-navy);
  border-radius: 2px;
}

/* ==========================================================================
   5. Main content area (kept unwrapped for Elementor full-width sections)
   ========================================================================== */
.fpr-main { min-height: 40vh; }
.fpr-page-fallback {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.fpr-entry-title { margin-bottom: .3em; }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.fpr-footer {
  background: var(--fpr-navy);
  color: #cfd0e6;
  padding: 64px 0 0;
}
.fpr-footer a { color: #cfd0e6; }
.fpr-footer a:hover { color: var(--fpr-orange); }
.fpr-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.fpr-footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.fpr-footer-col ul { list-style: none; margin: 0; padding: 0; }
.fpr-footer-col li { margin-bottom: 10px; font-size: .92rem; }
.fpr-footer-logo img { height: 60px; margin-bottom: 14px; }
.fpr-footer-social { display: flex; gap: 12px; margin-top: 16px; }
.fpr-footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.fpr-footer-social a:hover { background: var(--fpr-orange); border-color: var(--fpr-orange); }
.fpr-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: .85rem;
  color: #9fa0c4;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .fpr-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .fpr-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--fpr-border); box-shadow: var(--fpr-shadow); padding: 10px 0; }
  .fpr-nav.fpr-nav-open { display: block; }
  .fpr-menu { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 24px; }
  .fpr-menu > li { width: 100%; }
  .fpr-menu > li > a { width: 100%; padding: 12px 0; justify-content: space-between; }
  .fpr-menu .sub-menu { position: static; transform: none; box-shadow: none; border: none; opacity: 1; visibility: visible; display: none; width: 100%; padding-left: 12px; }
  .fpr-menu .menu-item-has-children.fpr-open > .sub-menu { display: block; }
  .fpr-header-cta { display: none; }
  .fpr-menu-toggle { display: flex; }
  .fpr-footer-grid { grid-template-columns: 1fr; }
}
