/*
Theme Name: ALC and Partners, CPAs — Modern Makati Ledger
Theme URI: https://alcpartners.net
Author: ALC Digital Architecture
Description: CMS-editable, animated, mobile- and tablet-scalable 5-page corporate WordPress theme for ALC and Partners, CPAs (Makati City, Philippines). Editable via Appearance -> Customize and dedicated Regulatory Briefings, Services, and Partners post types.
Version: 3.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: alc-partners
*/

    /* =====================================================================
       MODERN MAKATI LEDGER — DESIGN TOKENS, ANIMATIONS & HOVER REACTIONS
       ===================================================================== */
    :root {
      --alc-white: #FFFFFF;
      --alc-alabaster: #F8F9FB;
      --alc-cobalt: #00188F;
      --alc-navy: #0B2E46;
      --alc-brass: #B89047;
      --alc-ink: #0F172A;
      --alc-charcoal: #475569;
      --alc-hairline: #E5E7EB;
    }

    html {
      scroll-behavior: smooth;
      overflow-x: clip;
    }

    body {
      background-color: var(--alc-white);
      color: var(--alc-charcoal);
      font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
      line-height: 1.65;
      overflow-x: clip;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Fluid Responsive Typography via clamp() */
    .fluid-hero {
      font-size: clamp(2.4rem, 5.2vw, 4.35rem);
      line-height: 1.08;
      letter-spacing: -0.015em;
    }
    .fluid-page-title {
      font-size: clamp(2.1rem, 4.2vw, 3.5rem);
      line-height: 1.1;
      letter-spacing: -0.01em;
    }
    .fluid-section-title {
      font-size: clamp(1.75rem, 3.2vw, 2.65rem);
      line-height: 1.16;
    }

    /* Hide scrollbar cleanly for horizontal pill scrollers on mobile */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    /* Pinned Header Elevation on Scroll */
    #site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 40;
      transition: box-shadow 0.3s ease, background-color 0.3s ease;
    }
    #site-header.is-scrolled {
      box-shadow: 0 10px 30px -12px rgba(11, 46, 70, 0.12);
      background-color: rgba(255, 255, 255, 0.97);
    }

    /* Page View Transitions */
    .page-view {
      display: none;
      opacity: 0;
      transform: translateY(10px);
    }
    .page-view.is-active {
      display: block;
      animation: pageFadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes pageFadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Subtle Scroll Reveal */
    .reveal {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* =====================================================================
       SMOOTH NAVIGATION HOVER ANIMATIONS (PILL BLOOM + CENTER-OUT BAR)
       ===================================================================== */
    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      padding: 0.55rem 0.95rem;
      border-radius: 0.75rem;
      overflow: hidden;
      isolation: isolate;
      transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .nav-link::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 0.75rem;
      background: linear-gradient(135deg, rgba(0, 24, 143, 0.07) 0%, rgba(184, 144, 71, 0.11) 100%);
      opacity: 0;
      transform: scale(0.86);
      transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: -1;
    }
    .nav-link::after {
      content: '';
      position: absolute;
      left: 0.95rem;
      right: 0.95rem;
      bottom: 4px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--alc-cobalt), var(--alc-brass));
      transform: scaleX(0);
      transform-origin: center;
      transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .nav-link:hover {
      color: var(--alc-cobalt);
      transform: translateY(-2px);
    }
    .nav-link:hover::before {
      opacity: 1;
      transform: scale(1);
    }
    .nav-link.is-current {
      color: var(--alc-cobalt);
      font-weight: 600;
    }
    .nav-link.is-current::before {
      opacity: 0.65;
      transform: scale(1);
    }
    .nav-link.is-current::after,
    .nav-link:hover::after {
      transform: scaleX(1);
    }

    /* Mobile & Tablet Drawer Link Hover Glide */
    .drawer-link {
      position: relative;
      overflow: hidden;
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease, color 0.28s ease;
    }
    .drawer-link::before {
      content: '';
      position: absolute;
      left: 0;
      top: 22%;
      bottom: 22%;
      width: 3px;
      border-radius: 0 4px 4px 0;
      background: linear-gradient(180deg, var(--alc-cobalt), var(--alc-brass));
      transform: scaleY(0);
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .drawer-link:hover {
      transform: translateX(4px);
    }
    .drawer-link:hover::before {
      transform: scaleY(1);
    }

    /* =====================================================================
       DESKTOP PRECISION CURSOR FOLLOWER & HEADING HOVER REACTIONS
       ===================================================================== */
    .alc-cursor-ring,
    .alc-cursor-dot {
      position: fixed;
      top: 0;
      left: 0;
      pointer-events: none;
      z-index: 9999;
      border-radius: 9999px;
      opacity: 0;
      will-change: transform, width, height, opacity;
      transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                  height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                  border-color 0.28s ease,
                  background-color 0.28s ease,
                  opacity 0.25s ease;
    }
    .alc-cursor-ring {
      width: 34px;
      height: 34px;
      border: 1.5px solid rgba(0, 24, 143, 0.42);
      background: rgba(0, 24, 143, 0.03);
      transform: translate3d(-100px, -100px, 0);
    }
    .alc-cursor-dot {
      width: 6px;
      height: 6px;
      background: var(--alc-brass);
      transform: translate3d(-100px, -100px, 0);
    }
    .alc-cursor-ring.is-visible,
    .alc-cursor-dot.is-visible {
      opacity: 1;
    }
    .alc-cursor-ring.is-interactive {
      width: 52px;
      height: 52px;
      border-color: var(--alc-brass);
      background: rgba(184, 144, 71, 0.12);
    }
    .alc-cursor-ring.is-heading {
      width: 68px;
      height: 68px;
      border-color: rgba(0, 24, 143, 0.32);
      background: radial-gradient(circle, rgba(184, 144, 71, 0.16) 0%, rgba(0, 24, 143, 0.05) 70%, transparent 100%);
    }
    @media (hover: none), (pointer: coarse) {
      .alc-cursor-ring,
      .alc-cursor-dot {
        display: none !important;
      }
    }

    /* Animated Heading Hover Reactions */
    main h1,
    main h2 {
      position: relative;
      display: inline-block;
      transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), color 0.32s ease;
      cursor: default;
    }
    main h1::after,
    main h2::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--alc-cobalt) 0%, var(--alc-brass) 60%, transparent 100%);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
      pointer-events: none;
    }
    main h1:hover,
    main h2:hover {
      transform: translateY(-2px);
      background-image: linear-gradient(105deg, var(--alc-ink) 0%, var(--alc-cobalt) 42%, var(--alc-brass) 58%, var(--alc-ink) 100%);
      background-size: 220% auto;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: headingShimmerSweep 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    main h1:hover::after,
    main h2:hover::after {
      transform: scaleX(1);
    }
    @keyframes headingShimmerSweep {
      0% { background-position: 120% center; }
      100% { background-position: 0% center; }
    }

    /* Card & Section H3 Heading Hover Reaction */
    main h3 {
      transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.28s ease;
    }
    main h3:hover {
      transform: translateX(3px);
      color: var(--alc-cobalt);
    }
    .bg-navy h3:hover,
    .bg-navy h2:hover {
      -webkit-text-fill-color: #FFFFFF;
      color: #FFFFFF;
      text-shadow: 0 4px 20px rgba(184, 144, 71, 0.35);
    }

    /* Directional Fill-Slide Button Hover */
    .btn-slide {
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }
    .btn-slide::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--alc-navy);
      transform: translateX(-101%);
      transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: -1;
    }
    .btn-slide:hover::before {
      transform: translateX(0);
    }

    .btn-slide-outline {
      position: relative;
      overflow: hidden;
      isolation: isolate;
    }
    .btn-slide-outline::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--alc-cobalt);
      transform: translateX(-101%);
      transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: -1;
    }
    .btn-slide-outline:hover {
      color: #FFFFFF;
      border-color: var(--alc-cobalt);
    }
    .btn-slide-outline:hover::before {
      transform: translateX(0);
    }

    /* Dynamic Royal Cobalt Top-Border & Mouse Spotlight Glow on Cards */
    .card-top-bar {
      position: relative;
      overflow: hidden;
      --mx: 50%;
      --my: 50%;
    }
    .card-top-bar::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--alc-cobalt) 0%, var(--alc-brass) 100%);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 2;
    }
    .card-top-bar::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(320px circle at var(--mx) var(--my), rgba(0, 24, 143, 0.065), rgba(184, 144, 71, 0.045) 45%, transparent 75%);
      opacity: 0;
      transition: opacity 0.35s ease;
      pointer-events: none;
      z-index: 1;
    }
    .card-top-bar:hover::before {
      transform: scaleX(1);
    }
    .card-top-bar:hover::after {
      opacity: 1;
    }

    /* Animated Brass Rule Expansion */
    .brass-rule-expand {
      width: 36px;
      height: 2px;
      background: var(--alc-brass);
      transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .group:hover .brass-rule-expand {
      width: 96px;
    }

    /* Ken Burns Slow-Drift Photography */
    @keyframes kenBurnsDrift {
      0% { transform: scale(1.0) translate3d(0, 0, 0); }
      50% { transform: scale(1.075) translate3d(-1.4%, -1%, 0); }
      100% { transform: scale(1.0) translate3d(0, 0, 0); }
    }
    .ken-burns {
      animation: kenBurnsDrift 20s ease-in-out infinite;
      will-change: transform;
    }

    /* Smooth Photo Hover-Zoom */
    .photo-zoom {
      transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }
    .group:hover .photo-zoom {
      transform: scale(1.055);
    }

    /* Animated Abstract Geometric Orbs, Waves & Rotating Rings */
    @keyframes orbFloatA {
      0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
      50% { transform: translate3d(32px, -24px, 0) scale(1.08); }
    }
    @keyframes orbFloatB {
      0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
      50% { transform: translate3d(-28px, 22px, 0) scale(1.06); }
    }
    @keyframes waveFlow {
      0% { transform: translateX(0); }
      50% { transform: translateX(-36px); }
      100% { transform: translateX(0); }
    }
    @keyframes slowSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    @keyframes slowSpinReverse {
      from { transform: rotate(360deg); }
      to { transform: rotate(0deg); }
    }
    @keyframes nodePulse {
      0%, 100% { opacity: 0.35; transform: scale(0.9); }
      50% { opacity: 0.95; transform: scale(1.25); }
    }
    @keyframes sheenSweep {
      0% { transform: translateX(-120%) skewX(-18deg); }
      100% { transform: translateX(260%) skewX(-18deg); }
    }

    .abstract-orb-a {
      animation: orbFloatA 16s ease-in-out infinite;
      will-change: transform;
    }
    .abstract-orb-b {
      animation: orbFloatB 19s ease-in-out infinite;
      will-change: transform;
    }
    .abstract-wave {
      animation: waveFlow 14s ease-in-out infinite;
      will-change: transform;
    }
    .abstract-ring-cw {
      transform-origin: center;
      transform-box: fill-box;
      animation: slowSpin 38s linear infinite;
    }
    .abstract-ring-ccw {
      transform-origin: center;
      transform-box: fill-box;
      animation: slowSpinReverse 52s linear infinite;
    }
    .abstract-node {
      transform-origin: center;
      transform-box: fill-box;
      animation: nodePulse 4s ease-in-out infinite;
    }
    .sheen-overlay::after {
      content: '';
      position: absolute;
      inset: 0;
      width: 45%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
      transform: translateX(-120%) skewX(-18deg);
      pointer-events: none;
    }
    .sheen-overlay:hover::after {
      animation: sheenSweep 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .page-view.is-active { animation: none; opacity: 1; transform: none; }
      .reveal { opacity: 1; transform: none; transition: none; }
      .ken-burns, .abstract-orb-a, .abstract-orb-b, .abstract-wave, .abstract-ring-cw, .abstract-ring-ccw, .abstract-node { animation: none; }
      .alc-cursor-ring, .alc-cursor-dot, #alc-bg-network { display: none !important; }
    }
  

/* WordPress Admin Bar Offset for Pinned Header */
body.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}