/*
Theme Name: FiberTech
Theme URI: https://fibertech.com
Author: FiberTech
Author URI: https://fibertech.com
Description: Custom starter WordPress theme for FiberTech, built on an Underscores (_s) foundation and architected for ACF Pro Gutenberg Blocks.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: fibertech
Tags: custom-theme, block-patterns, full-site-editing-compatible, translation-ready

FiberTech WordPress Theme is based on Underscores https://underscores.me/, (C) 2012-2024 Automattic, Inc.
*/

/* ==========================================================================
   WordPress Pagination Styles (Global & Archives)
   ========================================================================== */
.navigation.pagination,
.posts-navigation,
.post-navigation {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

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

.navigation.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navigation.pagination .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--default-font-family, inherit);
  color: var(--foreground, #0f172a);
  background-color: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 0.25rem);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  line-height: 1;
}

.navigation.pagination .nav-links a.page-numbers:hover {
  background-color: var(--secondary, #f1f5f9);
  border-color: var(--accent, #0284c7);
  color: var(--primary, #0f172a);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.navigation.pagination .nav-links .page-numbers.current {
  background-color: var(--primary, #0f172a);
  color: #ffffff !important;
  border-color: var(--primary, #0f172a);
  font-weight: 600;
  cursor: default;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transform: none;
}

.navigation.pagination .nav-links .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--muted-foreground, #64748b);
  box-shadow: none;
  min-width: 1.5rem;
  cursor: default;
}

.navigation.pagination .nav-links .page-numbers.prev,
.navigation.pagination .nav-links .page-numbers.next {
  padding: 0 1.25rem;
  font-weight: 600;
  gap: 0.375rem;
}

.navigation.pagination .nav-links a.page-numbers.prev:hover,
.navigation.pagination .nav-links a.page-numbers.next:hover {
  border-color: var(--accent, #0284c7);
  color: var(--primary, #0f172a);
}

/* ==========================================================================
   WordPress Admin Bar Compatibility for Fixed Header
   ========================================================================== */
.admin-bar header.fixed {
  top: 32px;
}
/* ==========================================================================
   FiberTech – IT Services page
   All classes start with "it-" and every rule is scoped under .it-page
   so nothing clashes with the existing site styles.
   ========================================================================== */

.it-page {
    --it-navy: #0f1d3d;
    --it-navy-dark: #0a1430;
    --it-ink: #16213a;
    --it-muted: #5b6b82;
    --it-cyan: #22b5d6;
    --it-bg: #f7f9fb;
    --it-soft: #eef3f7;
    --it-border: #e2e8f0;
    --it-white: #ffffff;
    --it-radius: 6px;

    font-family: "IBM Plex Sans", Arial, sans-serif;
    color: var(--it-ink);
    background: var(--it-bg);
    line-height: 1.65;
}

.it-page *,
.it-page *::before,
.it-page *::after {
    box-sizing: border-box;
}

.it-page img {
    display: block;
    max-width: 100%;
}

.it-page h1,
.it-page h2,
.it-page h3,
.it-page p,
.it-page ul {
    margin: 0;
    padding: 0;
}

/* ---------- Layout ---------- */

.it-page .it-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.it-page .it-section {
    padding: 96px 0;
}

/* ---------- Typography ---------- */

.it-page .it-eyebrow,
.it-page .it-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--it-cyan);
    margin-bottom: 16px;
}

.it-page .it-heading {
    font-family: "Sora", Arial, sans-serif;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--it-navy);
    margin-bottom: 20px;
}

.it-page .it-text {
    font-size: 17px;
    color: var(--it-muted);
    margin-bottom: 32px;
}

.it-page .it-accent {
    color: var(--it-cyan);
}

/* ---------- Buttons ---------- */

.it-page .it-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--it-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.it-page .it-btn-primary {
    background: var(--it-cyan);
    color: var(--it-navy-dark);
}

.it-page .it-btn-primary:hover {
    background: var(--it-white);
    transform: translateY(-2px);
}

.it-page .it-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--it-white);
}

.it-page .it-btn-outline:hover {
    border-color: var(--it-cyan);
    color: var(--it-cyan);
}

/* ---------- Hero ---------- */

.it-page .it-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--it-navy-dark);
}

.it-page .it-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.it-page .it-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 20, 48, 0.95) 0%, rgba(10, 20, 48, 0.7) 55%, rgba(10, 20, 48, 0.35) 100%);
}

.it-page .it-hero-content {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
}

.it-page .it-hero-title {
    font-family: "Sora", Arial, sans-serif;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    color: var(--it-white);
    max-width: 760px;
    margin-bottom: 24px;
}

.it-page .it-hero-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin-bottom: 36px;
}

.it-page .it-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Intro ---------- */

.it-page .it-intro {
    background: var(--it-white);
}

.it-page .it-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.it-page .it-intro-text p {
    font-size: 17px;
    color: var(--it-muted);
    margin-bottom: 18px;
}

/* ---------- Services ---------- */

.it-page .it-service-alt {
    background: var(--it-white);
}

.it-page .it-service-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.it-page .it-service-grid-reverse .it-service-media {
    order: 2;
}

.it-page .it-service-media img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--it-radius);
    box-shadow: 0 24px 48px rgba(15, 29, 61, 0.18);
}

.it-page .it-feature-list {
    list-style: none;
    display: grid;
    gap: 22px;
}

.it-page .it-feature {
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--it-border);
}

.it-page .it-feature:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.it-page .it-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--it-radius);
    background: var(--it-navy);
    color: var(--it-cyan);
    font-size: 18px;
}

.it-page .it-feature-title {
    font-family: "Sora", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--it-navy);
    margin-bottom: 4px;
}

.it-page .it-feature-text {
    font-size: 15px;
    color: var(--it-muted);
}

/* ---------- Process ---------- */

.it-page .it-process {
    background: var(--it-soft);
}

.it-page .it-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.it-page .it-step {
    background: var(--it-white);
    border: 1px solid var(--it-border);
    border-top: 3px solid var(--it-cyan);
    border-radius: var(--it-radius);
    padding: 32px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.it-page .it-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 29, 61, 0.1);
}

.it-page .it-step-num {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    color: var(--it-cyan);
    margin-bottom: 14px;
}

.it-page .it-step-title {
    font-family: "Sora", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--it-navy);
    margin-bottom: 10px;
}

.it-page .it-step-text {
    font-size: 15px;
    color: var(--it-muted);
}

/* ---------- CTA ---------- */

.it-page .it-cta {
    background: var(--it-navy);
    padding: 72px 0;
}

.it-page .it-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.it-page .it-cta-title {
    font-family: "Sora", Arial, sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    color: var(--it-white);
    margin-bottom: 8px;
}

.it-page .it-cta-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .it-page .it-section {
        padding: 72px 0;
    }

    .it-page .it-intro-grid,
    .it-page .it-service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .it-page .it-service-grid-reverse .it-service-media {
        order: 0;
    }

    .it-page .it-service-media img {
        height: 380px;
    }

    .it-page .it-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .it-page .it-hero {
        min-height: 480px;
    }

    .it-page .it-process-grid {
        grid-template-columns: 1fr;
    }

    .it-page .it-service-media img {
        height: 280px;
    }
}

@media screen and (max-width: 782px) {
  .admin-bar header.fixed {
    top: 46px;
  }
}