/*
Theme Name: NRESH Group
Theme URI: https://nreshgroup.com
Author: NRESH Group
Author URI: https://nreshgroup.com
Description: Custom WordPress theme for NRESH Group — Nationwide Painting & Property Maintenance. Built for Elementor Pro compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nresh-theme
Tags: business, custom-colors, custom-logo, elementor, full-width-template
*/

/* --- RESET & VARIABLES --- */
:root {
    --brand-900: #1d496e;
    --brand-800: #2c5a80;
    --brand-700: #4e7898;
    --brand-500: #75abbd;
    --brand-100: #cbe4e6;
    --brand-50:  #f0f7f8;
    --accent:    #cce45e;
  
    --bg-surface: #ffffff;
    --bg-subtle:  #f4f6f8;
    --bg-footer:  #18202b;
  
    --text-main:  #0f172a;
    --text-muted: #576579;
    --text-light: #94a3b8;
  
    --border: rgba(29, 73, 110, 0.12);
    --border-light: rgba(255, 255, 255, 0.1);
  
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 72px;
  
    --pad-section-desktop: var(--space-7);
    --pad-section-mobile:  var(--space-6);
  
    --max-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
  
    --font-head: "Montserrat", sans-serif;
    --font-body: "Open Sans", sans-serif;
  
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);
  }
  
  *, *::before, *::after { box-sizing: border-box; }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  /* ==========================================
     ACCESSIBILITY
     ========================================== */
  .skip-link {
    position: absolute; top: -999px; left: 0;
    background: var(--brand-900); color: white;
    padding: 1rem; z-index: 999;
  }
  .skip-link:focus { top: 0; }
  :focus-visible { outline: 2px solid var(--brand-900); outline-offset: 2px; }
  
  /* ==========================================
     TYPOGRAPHY
     ========================================== */
  h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--brand-900);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.2;
  }
  
  h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.03em; }
  h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.02em; }
  h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
  h4 { font-size: 1.125rem; }
  
  .marker {
    position: relative;
    z-index: 1;
  }
  .marker::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: -2px;
    right: -2px;
    height: 0.35em;
    background-color: var(--accent);
    z-index: -1;
    opacity: 0.6;
  }
  
  p {
    margin: 0 0 var(--space-4);
    max-width: 65ch;
    color: var(--text-muted);
  }
  
  .kicker {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-500);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-2);
    display: block;
  }
  
  .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--space-5);
    max-width: 60ch;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
  }
  
  .link-arrow {
    color: var(--brand-900);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }
  .link-arrow::after { content: " →"; }
  .link-arrow:hover { color: var(--brand-700); margin-left: 4px; }
  
  img { max-width: 100%; display: block; }
  ul { list-style: none; padding: 0; margin: 0; }
  .text-accent { color: var(--accent); }
  .text-light { color: var(--text-light); }
  
  /* ==========================================
     UTILITIES
     ========================================== */
  .wrap {
    width: min(var(--max-width), 100% - (var(--space-4) * 2));
    margin: 0 auto;
  }
  
  .section-pad { padding: var(--pad-section-desktop) 0; }
  .bg-subtle { background-color: var(--bg-subtle); }
  .bg-white { background-color: #fff; }
  .bg-surface { background-color: var(--bg-surface); }
  .pb-0 { padding-bottom: 0; }
  
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  
  .align-center { align-items: center; }
  .rounded-lg { border-radius: var(--radius-lg); }
  .shadow-xl { box-shadow: var(--shadow-xl); }
  .shadow-lg { box-shadow: var(--shadow-lg); }
  .shadow-md { box-shadow: var(--shadow-md); }
  
  .section-head { margin-bottom: var(--space-6); }
  .section-head h2 { margin-bottom: var(--space-2); }
  .section-head p { max-width: 60ch; }
  .center-mobile h2,
  .center-mobile .kicker { text-align: left; }
  
  /* ==========================================
     TOP BAR
     ========================================== */
  .top-bar {
    background: var(--brand-900);
    color: var(--brand-100);
    font-size: 0.8rem;
    padding: 8px 0;
    font-family: var(--font-head);
    font-weight: 600;
  }
  .top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
  .top-phone { color: #fff; font-weight: 700; }
  
  /* ==========================================
     HEADER & NAVIGATION
     ========================================== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }
  
  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
  }
  
  .brand { display: flex; align-items: center; gap: 14px; }
  .logo {
    width: 40px; height: 40px; border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
    box-shadow: 0 4px 10px rgba(29, 73, 110, 0.2);
    flex-shrink: 0;
  }
  
  /* Custom logo image override */
  .brand .custom-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
  }
  
  .brand-text b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.15rem;
    line-height: 1.1;
    color: var(--brand-900);
  }
  .brand-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* Desktop Nav */
  .desktop-nav {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    height: 100%;
  }
  
  .nav-link {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
  }
  .nav-link:hover { color: var(--brand-700); }
  
  /* Dropdown */
  .has-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .chevron { font-size: 10px; transition: transform 0.2s; }
  .has-dropdown:hover .chevron,
  .dropdown-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
  
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--bg-surface);
    width: 580px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: var(--space-3);
    z-index: 101;
  }
  
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu,
  .dropdown-trigger[aria-expanded="true"] + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }
  
  .dropdown-item {
    display: block;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
  }
  
  .dropdown-item:hover,
  .dropdown-item:focus {
    background: var(--brand-50);
    outline: none;
  }
  .d-title {
    display: block;
    font-weight: 700;
    color: var(--brand-900);
    font-size: 0.9rem;
    margin-bottom: 2px;
  }
  .d-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
  }
  
  /* Nav Actions / Buttons */
  .nav-actions { display: flex; gap: var(--space-2); }
  
  /* ==========================================
     BUTTONS
     ========================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    border: none;
  }
  
  .btn:hover { transform: translateY(-2px); }
  
  .btn.primary {
    background: var(--brand-900);
    color: #fff;
    border: 1px solid var(--brand-900);
    box-shadow: 0 4px 14px rgba(29, 73, 110, 0.25);
  }
  .btn.primary:hover {
    background: var(--brand-800);
    box-shadow: 0 8px 20px rgba(29, 73, 110, 0.35);
  }
  
  .btn.secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--brand-900);
  }
  .btn.secondary:hover {
    border-color: var(--brand-700);
    background: var(--brand-50);
  }
  
  .btn.accent {
    background: var(--accent);
    color: var(--brand-900);
    border: 1px solid var(--accent);
  }
  .btn.accent:hover {
    background: #d9ed7a;
    box-shadow: 0 8px 24px rgba(204, 228, 94, 0.4);
  }
  
  .btn.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
  }
  .btn.btn-outline-white:hover {
    background: #fff;
    color: var(--brand-900);
  }
  
  /* ==========================================
     HERO — PREMIUM CENTERED
     ========================================== */
  .hero-premium {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
  }
  
  .hero-bg-full {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=85');
    background-size: cover;
    background-position: center;
    z-index: 1;
  }
  
  .hero-overlay-bottom {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 70%, var(--bg-surface) 100%);
    z-index: 2;
    pointer-events: none;
  }
  
  .hero-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .hero-glass-container {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 56px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-title {
    color: var(--brand-900);
    margin-bottom: var(--space-3);
    line-height: 1.15;
  }
  
  .hero-lead {
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
  }
  
  .btn-group {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }
  .btn-group.centered { justify-content: center; }
  
  /* Hero Badges */
  .hero-badges {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
  }
  .hero-badges.centered { justify-content: center; }
  
  .hero-badge-item {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-800);
  }
  
  .hero-badge-icon {
    color: #fff;
    background: var(--brand-500);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
  }
  
  /* ==========================================
     ANIMATIONS
     ========================================== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  .fade-up {
    animation: fadeUp 0.8s ease-out forwards;
  }
  
  /* ==========================================
     MOSAIC GRID (About Section)
     ========================================== */
  .mosaic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: var(--space-3);
  }
  
  .mosaic-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-3);
    box-shadow: var(--shadow-md);
    transform: translateZ(0);
  }
  
  .mosaic-item.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: inherit;
  }
  .mosaic-item.image-item:hover img { transform: scale(1.05); }
  
  .mosaic-item.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .mosaic-item.accent-bg {
    background-color: var(--accent);
    color: var(--brand-900);
  }
  
  .mosaic-item.dark-bg {
    background-color: var(--brand-900);
    color: #fff;
  }
  
  .m-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-head);
  }
  .m-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.9;
  }
  
  /* ==========================================
     SERVICE CARDS
     ========================================== */
  .card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 12px;
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(117, 171, 189, 0.4);
  }
  
  .card-media-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 220px;
    width: 100%;
  }
  
  .card-media { height: 100%; }
  .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .card:hover .card-media img { transform: scale(1.05); }
  
  .card-body {
    padding: var(--space-4) var(--space-2) var(--space-2) var(--space-2);
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--brand-900);
  }
  .card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    flex: 1;
    line-height: 1.6;
  }
  
  .card-link {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
  }
  .card-link::after { content: "→"; transition: 0.2s; }
  .card:hover .card-link::after { transform: translateX(4px); }
  .card:hover .card-link { color: var(--brand-900); }
  
  /* Card grid layout */
  .card-grid { align-items: stretch; }
  
  /* ==========================================
     PROMISE / FEATURE LIST
     ========================================== */
  .content-block { }
  .image-block img { width: 100%; height: auto; }
  
  .feature-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
  
  .feature-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
  }
  .feature-item:hover {
    transform: translateX(4px);
    border-color: var(--brand-500);
  }
  
  .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--brand-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    font-weight: bold;
  }
  
  .hover-lift { transition: all 0.4s; }
  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
  
  /* ==========================================
     TRUST BAR
     ========================================== */
  .trust-bar-section {
	margin-top: var(--space-5); /* 32px if your --space-5 = 32px */
    padding: var(--space-5) 0;
    background-color: var(--brand-900);
    border-top: 2px solid var(--accent);
    text-align: center;
  }
  .trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-4);
    color: rgba(255,255,255,0.6);
  }
  .trust-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
  }
  .trust-logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.3s;
  }
  .trust-logo:hover { opacity: 1; }
  
  /* ==========================================
     CTA BAND
     ========================================== */
  .cta-band {
	margin-bottom: var(--space-5);  
    background: var(--brand-900);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }
  .cta-band::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at top right, var(--brand-700), transparent 70%);
    pointer-events: none;
    z-index: 1;
  }
  .cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
  }
  .cta-content h2 { color: #fff; margin-bottom: 8px; }
  .cta-content p { color: rgba(255,255,255,0.85); margin: 0; }
  .cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
  }
  
  /* ==========================================
     FOOTER
     ========================================== */
  .site-footer {
    background: var(--bg-footer);
    color: var(--text-light);
    margin-top: var(--space-7);
    padding-top: var(--space-7);
    font-size: 0.9rem;
  }
  
  .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-6);
    padding-bottom: var(--space-6);
  }
  
  .footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    opacity: 0.9;
  }
  .footer-links li { margin-bottom: 12px; }
  .footer-links a {
    color: var(--text-light);
    transition: color 0.2s;
    position: relative;
  }
  .footer-links a:hover { color: #fff; }
  .footer-links a:hover::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: #fff;
    opacity: 0.5;
  }
  
  .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-3);
  }
  .footer-brand .logo {
    width: 36px;
    height: 36px;
  }
  .footer-brand .brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
  }
  
  .contact-col p { margin-bottom: var(--space-3); }
  .contact-col a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-4) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 0.85rem;
  }
  .legal-links a {
    color: var(--text-muted);
    margin-left: var(--space-3);
  }
  .legal-links a:hover { color: #fff; }
  
  /* ==========================================
     BACK TO TOP
     ========================================== */
  .back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--bg-surface);
    color: var(--brand-900);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 90;
  }
  .back-to-top.visible { opacity: 1; visibility: visible; }
  .back-to-top:hover {
    transform: translateY(-4px);
    background: var(--brand-900);
    color: #fff;
    border-color: var(--brand-900);
  }
  
 /* ==========================================
   MOBILE NAVIGATION — FIXED
   ========================================== */

.menu-toggle {
  display: none;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px;
  position: relative;
  z-index: 101;
  /* Ensure it's always clickable */
  pointer-events: all !important;
}

.menu-bar {
  width: 24px;
  height: 2px;
  background: var(--brand-900);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
  pointer-events: none;
}

/* Mobile nav overlay — hidden by default */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  /* Use visibility + opacity instead of display:none
     so transitions work and Elementor can't override display */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99999;
  /* Do NOT use display:none here */
  pointer-events: none;
}

/* When open */
.mobile-nav.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-nav-inner {
  background: var(--bg-surface);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  transform: translateY(-8px);
  transition: transform 0.25s ease;
}

.mobile-nav.open .mobile-nav-inner {
  transform: translateY(0);
}

.mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--brand-900);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-link:hover {
  background: var(--brand-50);
  border-radius: var(--radius-sm);
}

.mobile-sub {
  padding-left: 16px;
  margin-bottom: 8px;
}

/* Hidden state */
.mobile-sub[hidden] {
  display: none;
}

/* Visible state */
.mobile-sub:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.mobile-sub a {
  padding: 12px 16px;
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.mobile-sub a:hover {
  color: var(--brand-900);
  border-left-color: var(--brand-500);
}

.mobile-actions {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.full-width {
  width: 100%;
  text-align: center;
}

/* Show toggle on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
  }

  .desktop-nav,
  .nav-actions {
    display: none !important;
  }

  .nav-bar {
    height: 70px;
  }

  .mobile-nav {
    top: 70px;
  }
}

/* Hide toggle on desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Admin bar offset */
.admin-bar .mobile-nav {
  top: calc(70px + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .mobile-nav {
    top: calc(70px + 46px);
  }
}
  
  /* ==========================================
     PAGE HEADER (Sub-pages / Inner pages)
     ========================================== */
  .page-header {
    position: relative;
    background-color: var(--brand-900);
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
  }
  
  .page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
  }
  
  .page-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
  }
  
  .page-header h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 0;
  }
  
  /* Breadcrumbs */
  .breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2);
    font-family: var(--font-head);
    font-weight: 600;
  }
  .breadcrumbs a { color: rgba(255, 255, 255, 0.9); }
  .breadcrumbs a:hover { color: var(--accent); }
  .breadcrumbs .current { color: var(--accent); }
  
  /* ==========================================
     SERVICE PAGE LAYOUT
     ========================================== */
  .service-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-6);
    align-items: start;
  }
  
  .service-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: 100px;
  }
  
  .sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
  }
  .sidebar-widget.bg-subtle { background: var(--bg-subtle); }
  
  .sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .sidebar-menu { display: flex; flex-direction: column; }
  
  .sidebar-menu a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
  }
  .sidebar-menu a:hover {
    background: var(--bg-subtle);
    color: var(--brand-900);
  }
  .sidebar-menu a.active {
    background: var(--brand-900);
    color: #fff;
  }
  
  /* Service Content */
  .service-content { font-size: 1.05rem; }
  .service-content h3 {
    margin-top: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
  }
  .content-image {
    margin: var(--space-4) 0;
    width: 100%;
    height: 400px;
    object-fit: cover;
  }
  
  /* Checklist Grid */
  .content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-3);
  }
  
  .check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  .check-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    color: var(--accent);
    font-weight: bold;
  }
  
  .divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-5) 0;
  }
  
  /* Process Steps */
  .process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-4);
  }
  
  .step {
    background: var(--bg-subtle);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }
  .step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(29, 73, 110, 0.15);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-head);
  }
  .step h4 { margin-bottom: 8px; color: var(--brand-900); }
  .step p { font-size: 0.9rem; margin-bottom: 0; }
  
  /* ==========================================
     CONTACT PAGE
     ========================================== */
  .info-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
  }
  .info-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--brand-500);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
  }
  .info-item p { margin-bottom: 0; color: var(--text-main); }
  .link-bold { font-weight: 700; color: var(--brand-900); }
  .link-bold:hover { color: var(--accent); }
  
  .map-container {
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
  }
  
  .contact-form-wrapper { padding-top: var(--space-2); }
  
  .contact-form {
    background: var(--bg-surface);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
  }
  
  .contact-form h3 { margin-bottom: var(--space-4); }
  
  .form-group { margin-bottom: var(--space-3); }
  
  .form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--brand-900);
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fafbfc;
    transition: all 0.2s;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(117, 171, 189, 0.2);
  }
  
  .form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
  }
  
  /* Utility spacing */
  .text-sm { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
  .mt-2 { margin-top: 8px; }
  .mt-5 { margin-top: var(--space-5); }
  
  /* ==========================================
     ABOUT PAGE — VALUES CARDS
     ========================================== */
  .values-card {
    padding: var(--space-5);
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .values-card .icon { font-size: 3rem; margin-bottom: var(--space-2); }
  
  /* ==========================================
     ELEMENTOR OVERRIDES & COMPATIBILITY
     ========================================== */
  
  /* Ensure Elementor sections respect our layout */
  .elementor-section .wrap { width: 100%; }
  
  /* When Elementor is used for page building, these classes support custom CSS */
  .e-container,
  .elementor-container {
    font-family: var(--font-body);
  }
  
  /* Allow Elementor full-width sections */
  .elementor-section.elementor-section-full_width .elementor-container {
    max-width: 100%;
  }
  
  /* Elementor page builder body class adjustment */
  body.elementor-page .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  /* Ensure admin bar offset works */
  .admin-bar .site-header {
    top: 32px;
  }
  
  @media screen and (max-width: 782px) {
    .admin-bar .site-header {
      top: 46px;
    }
    .admin-bar .mobile-nav {
      top: calc(70px + 46px);
    }
  }
  
  /* ==========================================
     RESPONSIVE
     ========================================== */
  @media (max-width: 1024px) {
    .hero-premium { min-height: auto; padding: 60px 0; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .mosaic-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .mosaic-item { min-height: 200px; }
  }
  
  @media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-bar { height: 70px; }
    .mobile-nav { top: 70px; }
    .desktop-nav,
    .nav-actions { display: none; }
    .menu-toggle { display: flex; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
  
    .hero-premium { padding: 40px 0; min-height: 80vh; }
    .hero-glass-container { padding: 24px; margin: 0; }
    .hero-title { font-size: 2rem; }
    .hero-badges { gap: 12px; }
  
    .cta-band { flex-direction: column; text-align: center; }
    .cta-actions { width: 100%; justify-content: center; }
    .cta-actions .btn { flex: 1; }
  
    .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal-links a { margin: 0 8px; }
  
    .contact-form { padding: var(--space-4); }
  }
  
  @media (max-width: 900px) {
    .service-layout { grid-template-columns: 1fr; }
    .service-sidebar { position: static; order: 2; margin-top: var(--space-5); }
    .content-grid-2 { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .content-image { height: 250px; }
  }
  
  /* ==========================================
     WORDPRESS DEFAULT ELEMENT RESETS
     ========================================== */
  
  /* Reset WP default margins that conflict */
  .wp-block-group,
  .wp-block-cover { margin: 0; }
  
  /* Alignment classes */
  .aligncenter { display: block; margin-left: auto; margin-right: auto; }
  .alignleft { float: left; margin-right: 1.5rem; }
  .alignright { float: right; margin-left: 1.5rem; }
  
  /* Screen reader text */
  .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
  }
  
  /* Standard list for service pages */
  .standard-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--space-4);
  }
  .standard-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
  }