/*
Theme Name: QATE Industrial
Theme URI: https://qateintl.cplaza.ae/
Author: WebQuik
Description: A responsive industrial WordPress theme for QATE Packaging, Lashing, Lifting, Fabrication, Welding and Repair.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: qate-industrial
*/

:root {
  --qate-gold: #d8a31a;
  --qate-gold-dark: #ad7c0d;
  --qate-black: #111111;
  --qate-charcoal: #1e1e1e;
  --qate-text: #333333;
  --qate-muted: #6f7276;
  --qate-light: #f5f5f3;
  --qate-white: #ffffff;
  --qate-border: #e4e4df;
  --container: 1220px;
  --shadow: 0 18px 50px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--qate-text); font-family: Inter, Arial, sans-serif; line-height: 1.65; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.screen-reader-text { position:absolute; left:-9999px; }

.site-header { position: sticky; top: 0; z-index: 99; background: rgba(17,17,17,.97); box-shadow: 0 5px 20px rgba(0,0,0,.18); }
.header-container { display:flex; align-items: stretch; }
.header-left { display: flex; align-items: center; padding-right: 30px; border-right: 1px solid rgba(255,255,255,.08); }
.header-right { flex: 1; display: flex; flex-direction: column; }
.topbar-inner { min-height: 46px; display:flex; align-items:center; justify-content:space-between; padding-left: 30px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #ddd; }
.topbar-contact { display: flex; gap: 28px; align-items: center; }
.topbar-contact a:hover { color: var(--qate-gold); }
.topbar-contact i { color: var(--qate-gold); margin-right: 6px; }
.topbar-social { display: flex; gap: 10px; align-items: center; }
.topbar-social a { width: 30px; height: 30px; border: 1px solid var(--qate-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: .2s; font-size: 14px; }
.topbar-social a:hover { background: var(--qate-gold); color: #111; }
.bottombar-inner { min-height: 86px; display:flex; align-items:center; justify-content:space-between; padding-left: 30px; }
.custom-logo-link img, .brand-logo { width: 210px; max-height: 72px; object-fit:contain; }
.brand-name { color:#fff; font-size:28px; font-weight:900; letter-spacing:1px; }
.primary-nav { position: relative; }
.primary-nav ul { list-style:none; padding:0; margin:0; display:flex; align-items:center; gap:4px; }
.primary-nav li { position: relative; }
.primary-nav a { display:flex; align-items:center; justify-content:space-between; color:#fff; padding:31px 15px; font-weight:700; font-size:14px; text-transform:uppercase; letter-spacing:.3px; transition: background 0.2s ease, color 0.2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav li:hover > a { color:#fff; background: var(--qate-gold); }

/* Desktop Navigation Dropdowns (min-width: 993px) */
@media (min-width: 993px) {
  /* Level 1 dropdown arrow */
  .primary-nav li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
    color: var(--qate-gold);
    transition: transform 0.3s ease, color 0.2s ease;
  }
  .primary-nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    color: #ffffff;
  }

  /* Level 2 Sub-menu Dropdown */
  .primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--qate-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.3s;
    z-index: 1000;
  }

  .primary-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav .sub-menu li {
    width: 100%;
  }

  .primary-nav .sub-menu a {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #d1d1d1;
    background: transparent;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .primary-nav .sub-menu a:hover,
  .primary-nav .sub-menu li:hover > a {
    color: #ffffff;
    background: rgba(216, 163, 26, 0.15);
    border-left-color: var(--qate-gold);
    padding-left: 24px;
  }

  /* Level 2 dropdown arrow for Level 3 flyout */
  .primary-nav .sub-menu li.menu-item-has-children > a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    margin-left: 12px;
    color: var(--qate-gold);
    transition: transform 0.2s ease;
  }
  .primary-nav .sub-menu li.menu-item-has-children:hover > a::after {
    transform: translateX(4px);
  }

  /* Level 3 Sub-sub-menu Flyout */
  .primary-nav .sub-menu .sub-menu {
    position: absolute;
    top: -8px;
    left: 100%;
    min-width: 270px;
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--qate-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.3s;
    z-index: 1001;
    border-radius: 0 8px 8px 8px;
  }

  .primary-nav .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .primary-nav .sub-menu .sub-menu a {
    padding: 10px 18px;
    font-size: 12.5px;
    color: #b0b0b0;
    border-left: none;
  }

  .primary-nav .sub-menu .sub-menu a:hover {
    color: var(--qate-gold);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 22px;
  }
}

.header-cta { background: var(--qate-gold); color:#111; font-weight:900; text-transform:uppercase; padding:14px 20px; border-radius:3px; white-space:nowrap; transition:.2s; }
.header-cta:hover { background:#efbd37; transform:translateY(-1px); }

/* Offcanvas Base Defaults (Desktop - Strictly Hidden) */
.offcanvas-header,
.offcanvas-footer,
.offcanvas-backdrop,
.offcanvas-close,
.offcanvas-logo,
.offcanvas-cta,
.offcanvas-contact,
.submenu-toggle,
.menu-toggle {
  display: none !important;
}

/* Desktop Navigation Layout (min-width: 993px) */
@media (min-width: 993px) {
  .primary-nav {
    display: flex !important;
    position: relative !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
}

/* Mobile Toggle & Offcanvas Menu Drawer (max-width: 992px) */
@media (max-width: 992px) {
  body.offcanvas-active {
    overflow: hidden;
  }
  body.offcanvas-active .site-header {
    z-index: 99999;
  }
  .offcanvas-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  body.offcanvas-active .offcanvas-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--qate-gold) !important;
    color: #111111 !important;
    border: none !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    font-size: 22px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(216, 163, 26, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    outline: none !important;
  }
  .menu-toggle:hover,
  .menu-toggle:focus {
    background: #efbd37 !important;
    color: #000000 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 22px rgba(239, 189, 55, 0.5) !important;
  }
  .menu-toggle i {
    font-size: 22px !important;
    line-height: 1 !important;
    color: #111111 !important;
  }

  .primary-nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(340px, 85vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #141414 !important;
    z-index: 999 !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    flex-direction: column !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8) !important;
    overflow: hidden !important;
  }
  body.offcanvas-active .primary-nav {
    transform: translateX(0) !important;
  }

  .offcanvas-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d0d0d;
  }
  .offcanvas-logo img {
    max-height: 40px;
    width: auto;
  }
  .offcanvas-close {
    display: grid !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .offcanvas-close:hover {
    background: var(--qate-gold);
    color: #111;
    border-color: var(--qate-gold);
  }

  .offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .primary-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
  }
  .primary-nav a {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
  }
  .primary-nav a:hover,
  .primary-nav .current-menu-item > a {
    color: #ffffff;
    background: rgba(216, 163, 26, 0.15);
    border-left-color: var(--qate-gold);
  }
  .primary-nav > ul > li.menu-item-has-children > a::after {
    display: none;
  }

  .submenu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--qate-gold);
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.2s ease;
    z-index: 2;
  }
  .submenu-toggle:hover,
  li.submenu-open > .submenu-toggle {
    background: var(--qate-gold);
    color: #111;
  }
  li.submenu-open > .submenu-toggle {
    transform: rotate(180deg);
  }

  /* Mobile Sub-menu & Sub-sub-menu Accordion Styles */
  .primary-nav .sub-menu,
  .primary-nav .sub-menu .sub-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    min-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: none;
    margin: 0 !important;
  }

  .primary-nav .sub-menu {
    background: #181818;
    border: none;
    border-left: 3px solid var(--qate-gold);
  }
  li.submenu-open > .sub-menu {
    display: block !important;
  }
  .primary-nav .sub-menu a {
    padding: 13px 24px 13px 36px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e0e0e0;
    border-left: none;
  }
  .primary-nav .sub-menu a:hover {
    color: #ffffff;
    background: rgba(216, 163, 26, 0.2);
  }

  /* Level 3 Sub-sub-menu Mobile Styling */
  .primary-nav .sub-menu .sub-menu {
    background: #222222;
    border-left: 2px solid rgba(216, 163, 26, 0.6);
  }
  .primary-nav .sub-menu .sub-menu a {
    padding: 11px 24px 11px 48px;
    font-size: 12.5px;
    font-weight: 500;
    color: #cccccc;
    display: flex;
    align-items: center;
  }
  .primary-nav .sub-menu .sub-menu a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: var(--qate-gold);
    margin-right: 8px;
  }
  .primary-nav .sub-menu .sub-menu a:hover {
    color: var(--qate-gold);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 52px;
  }

  .offcanvas-footer {
    display: flex !important;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d0d0d;
    flex-direction: column;
    gap: 14px;
  }
  .offcanvas-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--qate-gold);
    color: #111111;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    padding: 14px 20px;
    border-radius: 6px;
    text-align: center;
    transition: 0.2s;
  }
  .offcanvas-cta:hover {
    background: #efbd37;
  }
  .offcanvas-contact p {
    margin: 4px 0;
    font-size: 13px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .offcanvas-contact i {
    color: var(--qate-gold);
  }
}

/* Animations */
@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

/* Hero Wrapper */
.hero { min-height: 670px; display:flex; align-items:center; position:relative; color:#fff; overflow:hidden; }
.hero-bg { position:absolute; inset:-50px; background-position:center; background-size:cover; animation: heroZoom 20s linear infinite alternate; z-index: 0; }
.hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(8,8,8,.98) 0%, rgba(8,8,8,.85) 43%, rgba(8,8,8,.40) 75%, rgba(8,8,8,.15) 100%); z-index: 1; }
.hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:5px; background:var(--qate-gold); z-index: 2; }
.hero-content { position:relative; z-index:2; width:min(720px, 100%); padding:100px 0; }

/* Entrance Sequence */
.eyebrow { display:inline-flex; align-items:center; gap:10px; color:var(--qate-gold); text-transform:uppercase; letter-spacing:2px; font-size:13px; font-weight:900; opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s; }
.eyebrow::before { content:""; width:38px; height:2px; background:var(--qate-gold); }
.hero h1 { margin:18px 0 20px; font-size:clamp(44px, 6vw, 78px); line-height:1.01; text-transform:uppercase; letter-spacing:-2px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s; }
.hero h1 span { color:var(--qate-gold); display:block; }
.hero p { max-width:650px; font-size:20px; color:#e6e6e6; margin:0 0 30px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s; }

/* Enhanced Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:54px; padding:0 26px; border:2px solid var(--qate-gold); font-weight:900; text-transform:uppercase; letter-spacing:.4px; transition:all .3s ease; gap: 10px; border-radius: 4px; }
.btn-primary { background:var(--qate-gold); color:#111; }
.btn-outline { color:#fff; background: transparent; backdrop-filter: blur(4px); }
.btn:hover { transform:translateY(-3px); box-shadow:0 15px 30px rgba(213, 156, 20, 0.3); }
.btn-primary:hover { background: #efbd37; border-color: #efbd37; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Glassmorphism Stats */
.hero-points { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:45px; padding: 24px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); opacity: 0; animation: fadeUp 0.8s ease forwards 1s; }
.hero-point { font-weight:800; font-size:13px; text-transform:uppercase; padding-left: 15px; border-left: 2px solid rgba(255,255,255,0.1); }
.hero-point strong { display:block; color:var(--qate-gold); font-size:28px; line-height: 1.1; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }

.stats { background:var(--qate-gold); color:#111; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.stat { padding:30px; text-align:center; border-right:1px solid rgba(0,0,0,.18); }
.stat:last-child { border-right:0; }
.stat strong { display:block; font-size:36px; line-height:1; font-weight:900; }
.stat span { font-size:13px; text-transform:uppercase; font-weight:800; }

.section { padding:90px 0; }
.section-dark { background: radial-gradient(circle at center, #1e1e1e 0%, var(--qate-black) 100%); color:#fff; }
.section-light { background: linear-gradient(135deg, #ffffff 0%, var(--qate-light) 100%); }
.section-head { max-width:700px; margin-bottom:42px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.section-kicker { color:var(--qate-gold); text-transform:uppercase; letter-spacing:2px; font-size:13px; font-weight:900; }
.section-title { margin:8px 0 13px; font-size:clamp(32px,4vw,50px); line-height:1.12; color:inherit; }
.section-head p { color:var(--qate-muted); font-size:18px; margin:0; }
.section-dark .section-head p { color:#bbb; }

.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.service-card { background:#fff; border:1px solid var(--qate-border); border-radius: 8px; padding:40px; position:relative; transition:all .4s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 4px 20px rgba(0,0,0,0.03); overflow:hidden; }
.service-card::before { content:""; position:absolute; top:0; left:0; width:60px; height:4px; background:var(--qate-gold); transition:all .4s ease; }
.service-card:hover { transform:translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }
.service-card:hover::before { width:100%; }
.service-icon { width:64px; height:64px; border-radius:16px; display:grid; place-items:center; background:#fff4d5; color:var(--qate-gold-dark); font-size:28px; margin-bottom:24px; position:relative; }
.service-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 18px; border: 1px solid rgba(216, 163, 26, 0.2); opacity: 0; transition: .3s; }
.service-card:hover .service-icon::after { opacity: 1; transform: scale(1.05); }
.service-card h3 { font-size:22px; margin:0 0 12px; color:#111; transition: .3s; }
.service-card:hover h3 { color: var(--qate-gold-dark); }
.service-card p { margin:0 0 20px; color:var(--qate-muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color:var(--qate-gold-dark); font-weight:900; text-transform:uppercase; font-size:13px; transition: .3s; }
.text-link i { transition: transform .3s ease; }
.text-link:hover i { transform: translateX(5px); }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }

.about-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center; }
.about-media { position:relative; padding-right: 30px; padding-bottom: 30px; }
.about-image-wrapper { overflow: hidden; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.about-image-wrapper img { width:100%; height:530px; object-fit:cover; transition: transform 1.5s ease; }
.about-media:hover .about-image-wrapper img { transform: scale(1.05); }
.about-badge { position:absolute; right:-10px; bottom:0px; background:var(--qate-gold); color:#111; padding:25px 35px; border-radius: 12px; box-shadow: 0 15px 30px rgba(213, 156, 20, 0.4); animation: float 6s ease-in-out infinite; z-index: 2; }
.about-badge strong { font-size:42px; display:block; line-height:1; margin-bottom: 4px; }
.check-list { list-style:none; padding:0; margin:30px 0 40px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.check-list li { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.03); padding: 14px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: .3s; }
.check-list li:hover { background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.06); transform: translateY(-3px); }
.check-list li i { color:var(--qate-gold); font-size: 16px; }

.projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.project-card { position:relative; min-height:380px; overflow:hidden; background:#222; border-radius: 12px; cursor: pointer; }
.project-card img { width:100%; height:100%; min-height:380px; object-fit:cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.project-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.9),rgba(0,0,0,0) 50%); transition: all 0.4s ease; }
.project-card:hover::after { background:linear-gradient(0deg,rgba(0,0,0,.95),rgba(0,0,0,0.3) 70%); }
.project-card:hover img { transform:scale(1.08); }
.project-copy { position:absolute; z-index:2; left:24px; right:24px; bottom:24px; color:#fff; transform: translateY(12px); transition: transform 0.4s ease; }
.project-card:hover .project-copy { transform: translateY(0); }
.project-copy span { color:var(--qate-gold); text-transform:uppercase; font-size:12px; font-weight:900; letter-spacing:1.5px; display: block; margin-bottom: 6px; }
.project-copy h3 { margin:0; font-size:22px; line-height: 1.2; }
.project-action { position: absolute; z-index: 3; top: 20px; right: 20px; width: 44px; height: 44px; background: var(--qate-gold); color: #111; border-radius: 50%; display: grid; place-items: center; font-size: 16px; opacity: 0; transform: scale(0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.project-card:hover .project-action { opacity: 1; transform: scale(1); }

@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(216, 163, 26, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(216, 163, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 163, 26, 0); } }

.cta-band { padding: 90px 0; }
.cta-inner { background: linear-gradient(135deg, #1e1e1e, #0a0a0a); color:#fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); padding: 70px; display:flex; align-items:center; justify-content:space-between; gap:35px; position: relative; overflow: hidden; border-left:8px solid var(--qate-gold); }
.cta-watermark { position: absolute; right: 5%; top: 50%; transform: translateY(-50%) rotate(15deg); font-size: 320px; color: rgba(255,255,255,0.02); z-index: 1; pointer-events: none; }
.cta-content { position: relative; z-index: 2; }
.cta-inner h2 { font-size:clamp(32px, 4vw, 42px); line-height:1.1; margin:0 0 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); color: #fff; }
.cta-inner p { margin:0; color:#ccc; font-size: 18px; }
.cta-btn { position: relative; z-index: 2; animation: pulseGlow 2s infinite; font-size: 16px; padding: 0 32px; }

.posts-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.post-card { border:1px solid var(--qate-border); background:#fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); overflow: hidden; }
.post-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }
.post-image-wrapper { overflow: hidden; }
.post-card img { width:100%; height:220px; object-fit:cover; display:block; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.post-card:hover img { transform: scale(1.05); }
.post-card-body { padding:30px; }
.post-meta { display:inline-block; font-size:11px; font-weight:800; color:var(--qate-gold-dark); background: #fff4d5; padding: 6px 12px; border-radius: 20px; margin-bottom:16px; text-transform:uppercase; letter-spacing:1px; }
.post-card h3 { font-size:20px; line-height:1.35; margin:0 0 14px; }
.post-card h3 a { color:inherit; transition: .3s; }
.post-card h3 a:hover { color:var(--qate-gold-dark); }
.post-card p { font-size:15px; margin:0 0 24px; color:var(--qate-muted); }

.page-hero { background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%); color:#fff; padding:100px 0; position: relative; overflow: hidden; border-bottom:5px solid var(--qate-gold); }
.page-hero::before { content: "\f302"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; font-size: 400px; color: rgba(255,255,255,0.015); top: -80px; right: 2%; transform: rotate(-15deg); pointer-events: none; }
.page-hero h1 { margin:0; font-size:clamp(38px,5vw,60px); position: relative; z-index: 2; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
/* Content Area & Post Typography */
.content-area { padding: 80px 0; background: #fff; }
.entry-content { max-width: 860px; margin: auto; font-size: 18px; line-height: 1.8; color: var(--qate-text); }
.entry-content p { margin-bottom: 25px; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { color: #111; font-weight: 800; margin-top: 45px; margin-bottom: 20px; line-height: 1.3; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 26px; }
.entry-content .project-copy h3 { color: #fff; margin-top: 0; }
.entry-content a { color: var(--qate-gold-dark); text-decoration: underline; font-weight: 600; transition: .3s; }
.entry-content a:hover { color: #111; text-decoration: none; }
.entry-content ul, .entry-content ol { margin-bottom: 30px; padding-left: 20px; }
.entry-content li { margin-bottom: 12px; }
.entry-content ul li::marker { color: var(--qate-gold); }
.entry-content blockquote { font-size: 22px; font-style: italic; color: #111; border-left: 5px solid var(--qate-gold); margin: 40px 0; padding: 20px 30px; background: rgba(216, 163, 26, 0.05); border-radius: 0 12px 12px 0; }
.entry-content blockquote p { margin-bottom: 0; }
.entry-content img, .entry-content .wp-post-image { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); margin: 30px 0; }
.wp-block-image img { border-radius: 12px; }
.entry-content pre { background: #111; color: #fff; padding: 20px; border-radius: 12px; overflow-x: auto; margin-bottom: 30px; font-size: 15px; }
.entry-content code { background: rgba(0,0,0,0.05); padding: 4px 8px; border-radius: 4px; font-size: 0.9em; color: #d63384; }
.entry-content pre code { background: transparent; padding: 0; color: inherit; }
.entry-content hr { border: 0; height: 1px; background: var(--qate-border); margin: 50px 0; }

/* Single Post Hero & Meta */
.page-hero .post-meta-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; color: rgba(255,255,255,0.8); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; justify-content: center; }
.page-hero .post-meta-header i { color: var(--qate-gold); margin-right: 6px; font-size: 16px; }
.page-hero.single-post-hero { text-align: center; padding: 120px 0; }
.page-hero.single-post-hero h1 { max-width: 800px; margin: 0 auto; font-size: clamp(34px, 5vw, 56px); }
.post-featured-image { margin: -100px auto 50px; text-align: center; position: relative; z-index: 5; }
.post-featured-image img { width: 100%; border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.15); object-fit: cover; max-height: 550px; }
.post-navigation { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--qate-border); margin-top: 60px; padding-top: 40px; gap: 20px; }
.post-navigation div a { display: flex; align-items: center; gap: 15px; font-size: 18px; color: #111; font-weight: 700; text-decoration: none; transition: .3s; }
.post-navigation div a i { font-size: 24px; color: var(--qate-gold); transition: transform .3s ease; }
.post-navigation .nav-prev a:hover i { transform: translateX(-5px); }
.post-navigation .nav-next a { text-align: right; }
.post-navigation .nav-next a:hover i { transform: translateX(5px); }
.post-navigation div a:hover { color: var(--qate-gold-dark); }

/* WP Gallery Overrides */
.wp-block-gallery { gap: 24px !important; margin-top: 40px; margin-bottom: 40px; }
.wp-block-image { margin: 0 !important; overflow: hidden; border-radius: 12px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.08); cursor: pointer; }
.wp-block-image img { transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important; display: block; width: 100%; height: 100%; object-fit: cover; }
.wp-block-image:hover img { transform: scale(1.08) !important; }
.wp-block-image figcaption { position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important; margin: 0 !important; background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent) !important; color: #fff !important; padding: 40px 20px 20px !important; text-align: center !important; transform: translateY(100%); transition: transform 0.4s ease !important; opacity: 0; font-weight: 700; font-size: 14px; letter-spacing: 1px; z-index: 2; }
.wp-block-image:hover figcaption { transform: translateY(0); opacity: 1; }

/* Pagination Styles */
.pagination { margin-top: 50px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border: 1px solid var(--qate-border); border-radius: 6px; font-weight: 700; color: #111; transition: .3s; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--qate-gold); border-color: var(--qate-gold); color: #111; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(216, 163, 26, 0.3); }
.pagination .dots { border-color: transparent; }

.site-footer { background: #0a0a0a; color:#bbb; padding-top:80px; position: relative; overflow: hidden; border-top: 5px solid var(--qate-gold); }
.footer-watermark { position: absolute; left: -5%; bottom: -10%; font-size: 500px; color: rgba(255,255,255,0.02); z-index: 1; pointer-events: none; transform: rotate(15deg); }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr 1.2fr; gap:45px; padding-bottom:60px; position: relative; z-index: 2; }
.footer-brand-col p { font-size: 15px; margin-bottom: 25px; }
.footer-logo { width:220px; margin-bottom:18px; }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #fff; display: grid; place-items: center; transition: .3s; border: 1px solid rgba(255,255,255,0.05); }
.footer-socials a:hover { background: var(--qate-gold); color: #111; transform: translateY(-3px); border-color: var(--qate-gold); }
.footer-title { color:#fff; font-size:18px; margin:0 0 24px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--qate-gold); }
.footer-menu { list-style:none; margin:0; padding:0; }
.footer-menu li { margin:12px 0; }
.footer-menu a { color: #bbb; transition: .3s; display: inline-flex; align-items: center; font-size: 15px; }
.footer-menu a::before { content:"\f054"; font-family:"Font Awesome 6 Free"; font-weight:900; font-size:10px; margin-right: 8px; color: var(--qate-gold); opacity: 0; transform: translateX(-10px); transition: .3s; }
.footer-menu a:hover { color:var(--qate-gold); transform: translateX(5px); }
.footer-menu a:hover::before { opacity: 1; transform: translateX(0); }
.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.fc-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.03); color: var(--qate-gold); border-radius: 50%; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.fc-text { font-size: 14px; line-height: 1.6; color: #bbb; }
.fc-text span { font-size: 12px; text-transform: uppercase; font-weight: 700; color: #fff; letter-spacing: 1px; display: block; margin-bottom: 2px; }
.footer-bottom-wrapper { background: #050505; position: relative; z-index: 2; border-top:1px solid rgba(255,255,255,.05); }
.footer-bottom { padding:24px 0; font-size:14px; display:flex; justify-content:space-between; align-items: center; gap:20px; color: #888; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #888; transition: .3s; }
.footer-bottom-links a:hover { color: var(--qate-gold); }

/* About Us Page Custom Styles */
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-story-content { padding-right: 20px; }
.story-text { font-size: 16px; color: var(--qate-muted); line-height: 1.8; margin-bottom: 30px; }
.story-text p { margin-bottom: 20px; }
.story-features { display: flex; flex-direction: column; gap: 12px; }
.story-feature { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 12px; color: #111; }
.story-feature i { color: var(--qate-gold); font-size: 20px; }
.about-story-image { position: relative; }
.about-story-image img { width: 100%; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); display: block; }
.experience-badge { position: absolute; bottom: -20px; left: -20px; background: var(--qate-gold); padding: 30px; border-radius: 12px; color: #111; box-shadow: 0 10px 30px rgba(213, 156, 20, 0.4); display: flex; align-items: center; gap: 15px; animation: float 6s ease-in-out infinite; z-index: 2; }
.exp-number { font-size: 48px; font-weight: 900; line-height: 1; }
.exp-text { font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.value-card { background: #1a1a1a; padding: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.value-card:hover { transform: translateY(-10px); background: #222; border-color: rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.value-icon { width: 70px; height: 70px; background: rgba(213, 156, 20, 0.1); color: var(--qate-gold); border-radius: 50%; display: grid; place-items: center; font-size: 28px; margin-bottom: 24px; transition: .4s; }
.value-card:hover .value-icon { background: var(--qate-gold); color: #111; transform: scale(1.1); }
.value-card h3 { color: #fff; font-size: 22px; margin: 0 0 16px; }
.value-card p { color: #aaa; font-size: 15px; margin: 0; line-height: 1.7; }

/* Products Page Custom Styles */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: #151515; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.product-image-wrapper { height: 240px; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); display: block; }
.product-card:hover img { transform: scale(1.08); }
.product-card-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.product-card-body h3 { font-size: 20px; line-height: 1.35; margin: 0 0 12px; }
.product-card-body h3 a { color: #fff; transition: .3s; }
.product-card-body h3 a:hover { color: var(--qate-gold); }
.product-card-body p { font-size: 15px; margin: 0 0 24px; color: #999; line-height: 1.6; flex-grow: 1; }

/* Services Page Custom Styles */
.service-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.service-feature-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); overflow: hidden; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; border: 1px solid var(--qate-border); }
.service-feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); border-color: transparent; }
.sf-image { position: relative; height: 300px; overflow: hidden; }
.sf-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.service-feature-card:hover .sf-image img { transform: scale(1.05); }
.sf-icon { position: absolute; top: -30px; right: 30px; width: 60px; height: 60px; background: var(--qate-gold); color: #111; border-radius: 50%; display: grid; place-items: center; font-size: 24px; box-shadow: 0 10px 20px rgba(213, 156, 20, 0.3); border: 4px solid #fff; z-index: 2; transition: .4s; }
.service-feature-card:hover .sf-icon { transform: scale(1.1) rotate(5deg); }
.sf-content { position: relative; padding: 40px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.sf-content h3 { font-size: 24px; margin: 0 0 15px; color: #111; }
.sf-content p { font-size: 15px; color: var(--qate-muted); line-height: 1.7; margin: 0 0 25px; flex-grow: 1; }

/* Contact Page Custom Styles */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-panel { padding-right: 20px; }
.contact-info-card { display: flex; align-items: flex-start; gap: 20px; background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 20px; border: 1px solid var(--qate-border); transition: .3s; }
.contact-info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); border-color: transparent; }
.cic-icon { width: 50px; height: 50px; background: rgba(213, 156, 20, 0.1); color: var(--qate-gold); border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transition: .4s; }
.contact-info-card:hover .cic-icon { background: var(--qate-gold); color: #111; transform: scale(1.1); }
.cic-content h4 { font-size: 18px; margin: 0 0 8px; color: #111; }
.cic-content p { margin: 0; font-size: 15px; color: var(--qate-muted); line-height: 1.6; }
.cic-content a { color: var(--qate-muted); transition: .3s; }
.cic-content a:hover { color: var(--qate-gold-dark); }

.contact-form-wrapper { background: #1a1a1a; padding: 50px; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); }
.contact-form-wrapper h3 { color: #fff; font-size: 26px; margin: 0 0 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #ccc; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 20px; background: #222; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 15px; font-family: inherit; transition: .3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--qate-gold); background: #252525; }

@media (max-width: 1024px) {
  .header-cta { display:none; }
  .services-grid,.projects-grid,.posts-grid,.products-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid { grid-template-columns:1fr; }
  .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-story-content { padding-right: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info-panel { padding-right: 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 700px) {
  .header-container { flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .header-right { display: contents; }
  .topbar-inner { display: flex; width: 100%; order: -1; min-height: auto; padding: 10px 15px; justify-content: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .topbar-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12.5px; }
  .topbar-contact a:nth-child(2) { display: none; }
  .topbar-social { display: none; }
  .header-left { border-right: none; padding-right: 0; padding-top: 12px; padding-bottom: 12px; }
  .bottombar-inner { min-height: auto; padding: 12px 0; padding-left: 0; }
  .custom-logo-link img,.brand-logo { width:150px; }
  
  .hero { min-height: 560px; background-position: 60% center; }
  .hero::before { background:rgba(8,8,8,.85); }
  .hero-content { padding:60px 0; }
  .hero h1 { letter-spacing:-1px; font-size: clamp(34px, 9vw, 44px); margin-top: 10px; margin-bottom: 12px; }
  .hero p { font-size:16px; margin-bottom: 24px; }
  .btn { min-height: 48px; padding: 0 20px; font-size: 14px; }
  .hero-points { grid-template-columns:repeat(2,1fr); gap:12px; padding: 18px; margin-top: 35px; }
  .hero-point { font-size: 11px; padding-left: 10px; }
  .hero-point strong { font-size: 22px; }

  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stat { padding: 20px 15px; border-bottom: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(0,0,0,.15); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat strong { font-size: 28px; }
  .stat span { font-size: 11px; }

  .section { padding:50px 0; }
  .section-title { font-size: clamp(28px, 6vw, 34px); margin-bottom: 10px; }
  
  .services-grid,.projects-grid,.posts-grid,.products-grid,.service-features-grid { grid-template-columns:1fr; }
  .service-card { padding: 30px 20px; }
  
  .about-media { padding-right: 0; padding-bottom: 30px; }
  .about-media img { height:320px; }
  .about-badge { right:20px; bottom:10px; padding: 18px 25px; }
  .about-badge strong { font-size: 28px; margin-bottom: 2px; }
  .check-list { grid-template-columns:1fr; margin-top: 25px; gap: 12px; }
  .check-list li { padding: 12px 16px; font-size: 13px; }

  .project-card { min-height: 280px; }
  .project-card img { min-height: 280px; }

  .cta-band { padding: 50px 0; }
  .cta-inner { min-height: auto; display:flex; flex-direction: column; text-align: center; padding:40px 24px; border-left: 0; border-top: 6px solid var(--qate-gold); gap: 15px; }
  .cta-watermark { right: 50%; top: 50%; transform: translate(50%, -50%) rotate(15deg); opacity: 0.1; }
  .cta-inner h2 { font-size: 28px; margin-bottom: 10px; }
  .cta-inner p { font-size: 16px; margin-bottom: 20px; }
  .cta-btn { align-self: center; margin-top: 0; }

  .footer-grid { grid-template-columns:1fr; gap: 35px; padding-bottom: 40px; }
  .footer-bottom { display:flex; flex-direction: column; text-align: center; gap: 16px; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  
  .values-grid { grid-template-columns: 1fr; margin-top: 35px; }
  .experience-badge { left: 10px; bottom: -10px; padding: 15px; }
  .exp-number { font-size: 28px; }
}
