/*
Theme Name: HM Gifts Corporate
Theme URI: https://hm-gifts.com
Author: HM Gifts
Author URI: https://hm-gifts.com
Description: Premium corporate theme for HM Gifts - promotional gifts & branded merchandise
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hmgifts
Tags: corporate, business, premium, custom-colors, custom-logo, full-width-template, rtl-language-support
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --navy:        #0A1628;
  --navy-mid:    #1B2E4B;
  --navy-light:  #2E4A6E;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-pale:   rgba(201,168,76,0.12);
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --gray-light:  #E8ECF2;
  --gray-text:   #6B7A8D;
  --text-dark:   #1A2332;
  --font-heading:'Playfair Display', Georgia, serif;
  --font-body:   'Sarabun', 'Noto Sans Thai', sans-serif;
  --radius-sm:   4px;
  --radius-md:   8px;
  --shadow-card: 0 4px 24px rgba(10,22,40,0.08);
  --shadow-hover:0 12px 40px rgba(10,22,40,0.16);
  --transition:  all 0.25s ease;
  --max-width:   1200px;
  --section-pad: 80px 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: var(--section-pad); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 600; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 400; }
h4 { font-size: 18px; font-weight: 600; }
p { line-height: 1.8; color: var(--gray-text); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-text); }

/* Section Label */
.section-label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.section-label::before,
.section-label::after { content: ''; width: 24px; height: 2px; background: var(--gold); }
.section-label::after { display: none; }
.section-label.centered::after { display: block; }
.section-label span {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 16px; max-width: 560px; }
.section-header-center { text-align: center; }
.section-header-center .section-subtitle { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 14px 32px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1.5px solid transparent; transition: var(--transition);
}
.btn-primary {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-navy {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 14px; height: 14px; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  transition: var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 4px 32px rgba(10,22,40,0.3);
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}
.custom-logo { max-height: 34px; width: auto; flex-shrink: 0; margin: 0; padding: 0; }
.site-logo img { margin: 0; padding: 0; display: block; }
.logo-mark {
  width: 40px; height: 40px; background: var(--gold); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 17px; font-weight: 600;
  color: var(--navy); letter-spacing: 1px; flex-shrink: 0;
}
.logo-text { min-width: 0; flex-shrink: 1; margin-left: -15px; }
.logo-text .brand-name {
  font-size: clamp(11px, 1.5vw, 16px); font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--white); display: block; line-height: 1;
  white-space: nowrap;
}
.logo-text .brand-tagline {
  font-size: clamp(7px, 1vw, 9px); letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); display: block; margin-top: 3px;
  white-space: nowrap;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 0; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 16px; font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.75); letter-spacing: 0.5px;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a { color: var(--gold-light); }
.primary-nav > li > a .nav-arrow {
  font-size: 8px; transition: transform 0.2s;
}
.primary-nav > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius-md);
  min-width: 200px; padding: 8px 0;
  box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
}
.primary-nav > li:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li a {
  display: block; padding: 10px 20px; font-size: 13px;
  color: var(--text-dark); border-left: 2px solid transparent;
}
.nav-dropdown li a:hover { color: var(--gold); border-left-color: var(--gold); background: var(--off-white); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-contact { font-size: 12px; color: rgba(255,255,255,0.6); }
.nav-contact strong { color: var(--gold); display: block; font-size: 13px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
/* Mobile nav — hidden by default on ALL screen sizes, only shown when .open */
.mobile-nav { display: none; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding-top: 70px;
}
.hero-diagonal {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  background: linear-gradient(150deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  opacity: 0.7;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-glow {
  position: absolute; bottom: -100px; right: 10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  max-width: var(--max-width); margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 2; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
  padding: 7px 16px; border-radius: 2px; margin-bottom: 28px;
}
.hero-eyebrow span { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.hero-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero-title { color: var(--white); margin-bottom: 20px; }
.hero-title em { color: var(--gold); font-style: normal; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 36px; max-width: 460px; font-weight: 300; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Stats */
.hero-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); overflow: hidden;
}
.hero-stat {
  padding: 28px 20px; background: rgba(255,255,255,0.03);
  text-align: center; transition: var(--transition);
}
.hero-stat:hover { background: rgba(201,168,76,0.08); }
.hero-stat .num {
  font-family: var(--font-heading); font-size: 42px; color: var(--gold);
  font-weight: 600; display: block; line-height: 1;
}
.hero-stat .label {
  font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 8px; display: block;
}
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-img-frame {
  width: 100%; max-width: 480px; aspect-ratio: 4/3;
  border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius-md);
  overflow: hidden; position: relative;
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder {
  width: 100%; height: 100%; background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.hero-img-placeholder .placeholder-icon { font-size: 64px; opacity: 0.3; }
.hero-img-placeholder .placeholder-text { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 2px; }
.hero-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--gold); color: var(--navy); padding: 16px 20px;
  border-radius: var(--radius-md); text-align: center;
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
}
.hero-badge .badge-num { font-family: var(--font-heading); font-size: 28px; font-weight: 600; display: block; line-height: 1; }
.hero-badge .badge-text { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; display: block; }

/* ============================================================
   VALUE RIBBON
   ============================================================ */
.ribbon-section { background: var(--gold); padding: 14px 24px; overflow: hidden; }
.ribbon-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.ribbon-item { display: flex; align-items: center; gap: 8px; }
.ribbon-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--navy); font-weight: 700; flex-shrink: 0;
}
.ribbon-text { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); }
.ribbon-divider { width: 1px; height: 20px; background: rgba(10,22,40,0.2); }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section { background: var(--off-white); padding: var(--section-pad); }
.products-header {
  max-width: var(--max-width); margin: 0 auto 48px;
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.products-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-light); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: rgba(201,168,76,0.4);
}
.product-thumb {
  height: 200px; background: var(--navy); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,0.1) 100%);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .thumb-icon { font-size: 64px; opacity: 0.4; position: relative; z-index: 1; }
.product-cat-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--gold); color: var(--navy);
  font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.product-body { padding: 20px; }
.product-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-family: var(--font-body); }
.product-desc { font-size: 13px; color: var(--gray-text); line-height: 1.6; margin-bottom: 16px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--gray-light); }
.product-moq { font-size: 12px; color: var(--gray-text); }
.product-moq strong { color: var(--navy); }
.product-link {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 5px;
}
.product-link:hover { color: var(--navy-light); }

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-section { padding: var(--section-pad); }
.why-container { max-width: var(--max-width); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 48px; }
.why-card {
  padding: 32px 28px; border: 1px solid var(--gray-light);
  border-radius: var(--radius-md); position: relative; overflow: hidden;
  transition: var(--transition);
}
.why-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.why-card:hover { box-shadow: var(--shadow-card); border-color: rgba(201,168,76,0.3); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon-wrap {
  width: 56px; height: 56px; background: var(--navy); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.why-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; font-family: var(--font-body); }
.why-text { font-size: 14px; color: var(--gray-text); line-height: 1.7; }

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section { background: var(--navy); padding: var(--section-pad); position: relative; overflow: hidden; }
.process-section .section-title { color: var(--white); }
.process-section .section-subtitle { color: rgba(255,255,255,0.5); }
.process-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.process-steps {
  max-width: var(--max-width); margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 36px; left: calc(12.5%); right: calc(12.5%);
  height: 1px; background: rgba(201,168,76,0.25);
}
.process-step { position: relative; z-index: 1; text-align: center; padding: 0 16px; }
.step-circle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--navy);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  transition: var(--transition);
}
.step-circle:hover { background: var(--gold); }
.step-circle:hover .step-num { color: var(--navy); }
.step-num { font-family: var(--font-heading); font-size: 22px; color: var(--gold); }
.step-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-text { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ============================================================
   TESTIMONIALS / CLIENTS
   ============================================================ */
.clients-section { padding: var(--section-pad); background: var(--off-white); }
.clients-label {
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gray-text); margin-bottom: 32px;
}
.clients-row {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.client-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--gray-light);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--navy-light);
  transition: var(--transition);
}
.client-chip:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
.client-chip .chip-icon { font-size: 20px; }

/* Testimonials */
.testimonials-grid {
  max-width: var(--max-width); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: var(--radius-md); padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-card); }
.testimonial-quote { font-size: 36px; color: var(--gold); line-height: 1; margin-bottom: 12px; font-family: var(--font-heading); }
.testimonial-text { font-size: 14px; color: var(--gray-text); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--gold);
  font-family: var(--font-heading);
}
.author-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.author-role { font-size: 12px; color: var(--gray-text); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy); padding: var(--section-pad);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section .section-title { color: var(--white); }
.cta-section .section-subtitle { color: rgba(255,255,255,0.5); margin: 0 auto 40px; }
.cta-section em { color: var(--gold); font-style: normal; }
.cta-contact-row { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.cta-contact-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); font-size: 14px; }
.cta-contact-item span { font-size: 20px; }
.cta-contact-item a { color: var(--gold-light); }
.cta-bg-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: #060E1A; color: rgba(255,255,255,0.55); }
.footer-top {
  max-width: var(--max-width); margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.5fr; gap: 48px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .logo-mark { width: 36px; height: 36px; font-size: 14px; }
.footer-tagline { font-size: 13px; line-height: 1.8; max-width: 280px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: block;
}
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.footer-contact-item .contact-icon { color: var(--gold); flex-shrink: 0; font-size: 14px; }
.footer-contact-item a { color: rgba(255,255,255,0.45); }
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
}
.footer-bottom-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px;
  max-width: var(--max-width); margin: 0 auto;
}
.post-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-light); overflow: hidden; transition: var(--transition); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-thumb { height: 200px; overflow: hidden; background: var(--navy); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 24px; }
.post-meta { display: flex; gap: 12px; margin-bottom: 10px; }
.post-cat { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.post-date { font-size: 11px; color: var(--gray-text); }
.post-title { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.post-excerpt { font-size: 13px; color: var(--gray-text); line-height: 1.7; }
.post-read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-hero { background: var(--navy); padding: 120px 24px 64px; text-align: center; }
.single-post-hero .post-cat { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; display: block; }
.single-post-hero h1 { color: var(--white); max-width: 720px; margin: 0 auto 20px; }
.single-post-hero .post-meta { justify-content: center; color: rgba(255,255,255,0.5); font-size: 13px; }
.post-content { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.post-content p { margin-bottom: 1.5em; }
.post-content h2 { margin: 2.5em 0 1em; }
.post-content img { border-radius: var(--radius-md); margin: 2em 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: var(--section-pad); }
.contact-grid { max-width: var(--max-width); margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.contact-info-card { background: var(--navy); border-radius: var(--radius-md); padding: 40px; color: var(--white); }
.contact-info-title { font-family: var(--font-heading); font-size: 24px; color: var(--white); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.info-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.info-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.info-value { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.info-value a { color: rgba(255,255,255,0.7); }
.info-value a:hover { color: var(--gold-light); }

/* Contact Form */
.contact-form { }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body);
  color: var(--text-dark); background: var(--white); transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; }

/* ============================================================
   WOOCOMMERCE OVERRIDES (if used)
   ============================================================ */
.woocommerce .woocommerce-message { border-top-color: var(--gold); }
.woocommerce a.button, .woocommerce button.button { background: var(--gold); color: var(--navy); border-radius: var(--radius-sm); font-weight: 700; letter-spacing: 1px; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--gold-light); }
.woocommerce span.onsale { background: var(--gold); color: var(--navy); }
.woocommerce .star-rating span::before { color: var(--gold); }

/* ============================================================
   UTILITIES
   ============================================================ */
.bg-navy  { background: var(--navy); }
.bg-gold  { background: var(--gold); }
.bg-white { background: var(--white); }
.bg-off   { background: var(--off-white); }
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInL { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
.anim-fadeup  { animation: fadeUp  0.6s ease both; }
.anim-fadein  { animation: fadeIn  0.6s ease both; }
.anim-slideinL{ animation: slideInL 0.6s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  :root { --section-pad: 60px 20px; }
  .primary-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-nav {
    position: fixed; inset: 70px 0 0 0; background: var(--navy);
    padding: 32px 24px; z-index: 999;
    display: none; flex-direction: column; gap: 4px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 14px 0; font-size: 18px; font-weight: 500; color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mobile-nav a:hover { color: var(--gold); }
  .hero-stats-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stat .num { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .ribbon-inner { gap: 16px; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: 11px; }
  .hero-btns { flex-direction: column; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero-slideshow {
  width: 100%; max-width: 480px; position: relative;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  aspect-ratio: 4/3;
}
.hero-slides { display: flex; transition: transform 0.5s ease; height: 100%; }
.hero-slide { min-width: 100%; height: 100%; flex-shrink: 0; overflow: hidden; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-placeholder {
  width: 100%; height: 100%; background: var(--navy-mid);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
}
.slide-placeholder span:first-child { font-size: 72px; opacity: 0.5; }
.slide-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
/* Dots */
.slide-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.slide-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: all 0.2s; border: none; padding: 0;
}
.slide-dot.active { background: var(--gold); width: 20px; border-radius: 3px; }
/* Arrows */
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(10,22,40,0.6); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3); border-radius: 50%;
  width: 36px; height: 36px; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: var(--transition);
}
.slide-arrow:hover { background: var(--gold); color: var(--navy); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* ============================================================
   USER CUSTOM OVERRIDES (Latest)
   ============================================================ */
.hero-slideshow { aspect-ratio: 4/3; }
.hero-container { padding-top: 15px; }
.footer-nav a { font-size: 15px; }
.footer-col-title { font-size: 13px; }
.hero-title { font-size: clamp(28px, 4vw, 50px); }
.hero-section { padding-bottom: 0; margin-bottom: -50px; }
.ribbon-section { position: relative; z-index: 10; }
.products-section { padding-top: 20px; }
.step-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; font-family: var(--font-body); }
.step-text { font-size: 15px; color: rgba(255,255,255,0.45); line-height: 1.6; }
.footer-brand .site-logo { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-text { margin-left: 0; }
.footer-brand .custom-logo { max-height: 35px !important; width: auto !important; margin: 0; padding: 0; flex-shrink: 0; }
.footer-brand img { max-height: 35px !important; width: auto !important; }

/* ============================================================
   PRODUCT CATEGORY FILTER
   ============================================================ */
.product-filter-wrap {
  max-width: var(--max-width); margin: 0 auto 32px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.filter-btn {
  padding: 8px 20px; border-radius: 2px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  border: 1.5px solid var(--gray-light); background: var(--white);
  color: var(--gray-text); transition: var(--transition);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.product-card { transition: var(--transition), opacity 0.3s ease; }
.product-card.hidden { display: none; }

/* ============================================================
   CATEGORY CARDS GRID (Homepage)
   ============================================================ */
.cat-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cat-card {
  display: block; text-decoration: none;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-light); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(201,168,76,0.4); }
.cat-card-thumb {
  height: 220px; background: var(--navy); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cat-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover .cat-card-thumb img { transform: scale(1.05); }
.cat-card-icon { font-size: 72px; opacity: 0.5; position: relative; z-index: 1; }
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.7) 0%, transparent 60%);
}
.cat-card-body {
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  border-top: 2px solid transparent; transition: border-color 0.2s;
}
.cat-card:hover .cat-card-body { border-top-color: var(--gold); }
.cat-card-name { font-size: 17px; font-weight: 700; color: var(--navy); font-family: var(--font-body); }
.cat-card-count { font-size: 12px; color: var(--gray-text); margin-left: auto; margin-right: 12px; }
.cat-card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--off-white); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gold); transition: var(--transition); flex-shrink: 0;
}
.cat-card:hover .cat-card-arrow { background: var(--gold); color: var(--navy); }

@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SEARCH - NAVBAR
   ============================================================ */
.nav-search-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: var(--transition);
}
.nav-search-btn:hover { color: var(--gold); background: rgba(255,255,255,0.08); }

.nav-search-box {
  position: fixed; top: 70px; left: 0; right: 0;
  background: var(--navy-mid);
  padding: 0; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  z-index: 998;
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav-search-box.open {
  max-height: 80px; padding: 14px 24px;
}
.nav-search-box form {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; gap: 8px;
}
.nav-search-box input {
  flex: 1; padding: 10px 16px; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: var(--white);
  font-size: 14px; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s;
}
.nav-search-box input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search-box input:focus { border-color: var(--gold); }
.nav-search-box button {
  background: var(--gold); color: var(--navy); border: none;
  padding: 10px 20px; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px; font-family: var(--font-body);
  transition: var(--transition);
}
.nav-search-box button:hover { background: var(--gold-light); }

/* ============================================================
   SEARCH - ARCHIVE PAGE
   ============================================================ */
.archive-search-form { margin-bottom: 8px; }
.archive-search-wrap {
  display: flex; gap: 0; border-radius: 6px; overflow: hidden;
  border: 1.5px solid var(--gray-light); background: var(--white);
  box-shadow: var(--shadow-card);
}
.archive-search-wrap input {
  flex: 1; padding: 14px 20px; border: none; outline: none;
  font-size: 15px; font-family: var(--font-body); color: var(--text-dark);
  background: transparent;
}
.archive-search-wrap input::placeholder { color: var(--gray-text); }
.archive-search-wrap button {
  background: var(--navy); color: var(--white);
  border: none; padding: 14px 28px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; font-family: var(--font-body);
  transition: var(--transition); flex-shrink: 0;
}
.archive-search-wrap button:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   SEARCH NAVBAR FIX
   ============================================================ */
.nav-search-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.nav-search-btn:hover { color: var(--gold); border-color: var(--gold); }
.nav-search-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.nav-search-inner form {
  display: flex; gap: 8px; align-items: center;
}
.nav-search-inner input {
  flex: 1; padding: 10px 18px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px; background: rgba(255,255,255,0.08);
  color: var(--white); font-size: 14px; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s;
}
.nav-search-inner input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search-inner input:focus { border-color: var(--gold); }
.nav-search-inner button[type=submit] {
  background: var(--gold); color: var(--navy); border: none;
  padding: 10px 20px; border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px; font-family: var(--font-body);
  white-space: nowrap; transition: var(--transition);
}
.nav-search-inner button[type=submit]:hover { background: var(--gold-light); }

/* ============================================================
   LIVE SEARCH RESULTS
   ============================================================ */
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap input { width: 100%; }

.search-live-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(10,22,40,0.25);
  border: 1px solid var(--gray-light);
  max-height: 420px; overflow-y: auto;
  z-index: 9999; display: none;
}
.search-live-results.active { display: block; }

.slr-header {
  padding: 10px 16px; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-text); border-bottom: 1px solid var(--gray-light);
  background: var(--off-white);
}
.slr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
  transition: background 0.15s;
}
.slr-item:last-child { border-bottom: none; }
.slr-item:hover { background: var(--off-white); }
.slr-thumb {
  width: 48px; height: 48px; border-radius: 6px;
  background: var(--navy); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.slr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slr-info { flex: 1; min-width: 0; }
.slr-title {
  font-size: 14px; font-weight: 600; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.slr-cat {
  font-size: 11px; color: var(--gray-text);
  letter-spacing: 1px; text-transform: uppercase; margin-top: 2px;
  display: block;
}
.slr-arrow { color: var(--gold); font-size: 14px; flex-shrink: 0; }

.slr-empty {
  padding: 24px 16px; text-align: center;
  color: var(--gray-text); font-size: 14px;
}
.slr-loading {
  padding: 20px; text-align: center; color: var(--gray-text);
}
.slr-loading::after {
  content: ''; display: inline-block;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--gray-light);
  border-top-color: var(--gold);
  animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.slr-view-all {
  display: block; padding: 12px 16px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--gold);
  border-top: 1px solid var(--gray-light);
  text-decoration: none; background: var(--off-white);
  letter-spacing: 1px;
}
.slr-view-all:hover { background: var(--gray-light); }

/* Highlight matched text */
.slr-highlight { color: var(--gold); font-weight: 700; }

/* ============================================================
   SEARCH OVERLAY (inline navbar style)
   ============================================================ */
.nav-search-overlay {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1100; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease;
}
.nav-search-overlay.open {
  opacity: 1; visibility: visible; pointer-events: all;
}
.nav-search-form { position: relative; }
.nav-search-field {
  display: flex; align-items: center;
  background: var(--white);
  height: 70px; padding: 0 24px; gap: 12px;
  box-shadow: 0 4px 24px rgba(10,22,40,0.15);
}
.search-icon-inline { color: var(--gray-text); flex-shrink: 0; }
.nav-search-field input {
  flex: 1; border: none; outline: none;
  font-size: 16px; font-family: var(--font-body);
  color: var(--text-dark); background: transparent;
  padding: 0;
}
.nav-search-field input::placeholder { color: var(--gray-text); }
#nav-search-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--gray-text); padding: 4px 8px;
  line-height: 1; transition: color 0.2s; flex-shrink: 0;
}
#nav-search-close:hover { color: var(--navy); }

/* Live results dropdown */
.nav-search-overlay .search-live-results {
  position: absolute; top: 70px; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(10,22,40,0.15);
  border-top: 1px solid var(--gray-light);
  max-height: 420px; overflow-y: auto;
  display: none;
}
.nav-search-overlay .search-live-results.active { display: block; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 16px;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span {
  color: rgba(255,255,255,0.3); font-size: 12px;
}
.breadcrumbs span:last-child { color: var(--gold-light); font-weight: 600; }
