/* ══════════════════════════════════════
   JJ Associates – Joomla Template CSS
   Version 1.0 | 2026
══════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #2a2a2a; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ── BRAND VARIABLES ── */
:root {
  --orange:     #d4461c;
  --orange-lt:  #e8623a;
  --orange-dim: #f0c4b4;
  --charcoal:   #2c2c2c;
  --charcoal-md:#444444;
  --slate:      #5c5c5c;
  --muted:      #888888;
  --white:      #ffffff;
  --warm:       #faf8f6;
  --ice:        #fff5f2;
  --border:     #e8e2dc;
  --dark:       #1a1a1a;
  --radius:     10px;
  --shadow-sm:  0 2px 14px rgba(44,44,44,0.07);
  --shadow:     0 6px 32px rgba(44,44,44,0.11);
  --shadow-lg:  0 16px 48px rgba(44,44,44,0.15);
  --tr:         0.22s ease;
}

/* ── UTILITY ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 7px; font-weight: 600;
  font-size: 0.87rem; letter-spacing: 0.02em;
  cursor: pointer; border: none; transition: var(--tr);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,70,28,0.30); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-dark   { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #1a1a1a; transform: translateY(-2px); }
.btn-ghost  { background: rgba(255,255,255,0.14); color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.26); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.chip-orange { background: var(--ice); color: var(--orange); border: 1px solid var(--orange-dim); }
.chip-grey   { background: #f0eeec; color: var(--slate); }
.chip-green  { background: #d9f2e8; color: #1a6644; }

.section-eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 10px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3vw, 2.8rem); color: var(--charcoal); line-height: 1.18; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 0.97rem; line-height: 1.78; max-width: 540px; margin: 0 auto; }

/* ── NAVBAR ── */
.navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 16px rgba(44,44,44,0.07); }
.navbar .container { display: flex; align-items: flex-start; height: 175px; gap: 0; }

.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-svg  { width: 405px; height: auto; }

.nav-right { display: flex; flex-direction: column; flex: 1; align-self: flex-start; margin-top: 57px; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 2px; border-top: 5px solid var(--orange); padding-top: 8px; }
.nav-links a { padding: 8px 15px; border-radius: 6px; font-size: 0.86rem; font-weight: 500; color: var(--charcoal-md); transition: var(--tr); }
.nav-links a:hover  { color: var(--orange); background: var(--ice); }
.nav-links a.active,
.nav-links .current > a { color: var(--orange); background: var(--ice); font-weight: 600; }

.nav-phone { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 8px 4px 0; }
.nav-phone a { display: inline-flex; align-items: center; gap: 7px; font-size: 1rem; font-weight: 700; color: var(--orange); letter-spacing: 0.02em; padding: 7px 18px; border: 2px solid var(--orange); border-radius: 50px; transition: var(--tr); }
.nav-phone a:hover { background: var(--orange); color: #fff; }
.nav-linkedin { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--orange); color: #fff !important; font-size: 0.9rem; font-weight: 800; letter-spacing: 0; border: none !important; transition: var(--tr); }
.nav-linkedin:hover { background: var(--orange-lt) !important; }

/* Joomla menu module output */
.nav-right ul { display: flex; align-items: center; list-style: none; gap: 2px; border-top: 5px solid var(--orange); padding-top: 8px; }
.nav-right ul li a { padding: 8px 15px; border-radius: 6px; font-size: 0.86rem; font-weight: 500; color: var(--charcoal-md); transition: var(--tr); display: block; }
.nav-right ul li a:hover { color: var(--orange); background: var(--ice); }
.nav-right ul li.current > a,
.nav-right ul li.active > a { color: var(--orange); background: var(--ice); font-weight: 600; }

/* ── HERO ── */
.hero { background: linear-gradient(118deg, var(--warm) 0%, #f5f0ec 50%, #fdf8f5 100%); padding: 80px 0 0; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(212,70,28,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(212,70,28,0.04) 1px, transparent 1px); background-size: 48px 48px; }
.hero::after { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(212,70,28,0.10) 0%, transparent 65%); pointer-events: none; }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; padding-bottom: 80px; }
.hero-content { max-width: 780px; }
.hero-content .hero-actions { justify-content: center; }
.hero-content .hero-kpis { justify-content: center; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--ice); color: var(--orange); padding: 6px 16px; border-radius: 50px; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 24px; border: 1px solid var(--orange-dim); }
.hero-badge::before { content: '●'; font-size: 0.42rem; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 4.5vw, 4.2rem); color: var(--charcoal); line-height: 1.08; margin-bottom: 22px; }
.hero h1 em { color: var(--orange); font-style: italic; }
.hero-sub { font-size: 1.02rem; color: var(--slate); line-height: 1.8; margin-bottom: 36px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-kpis { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.kpi { flex: 1; padding: 17px 20px; text-align: center; border-right: 1px solid var(--border); }
.kpi:last-child { border-right: none; }
.kpi strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--charcoal); line-height: 1; }
.kpi span   { display: block; font-size: 0.69rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }

/* ── TRUST STRIP ── */
.trust-strip { background: var(--warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.77rem; font-weight: 500; }
.trust-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

/* ── ABOUT ── */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-img { border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--warm) 0%, #ede8e3 100%); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-img-inner { text-align: center; color: var(--charcoal); font-size: 5rem; opacity: 0.18; }
.about-img-inner p { font-size: 0.78rem; color: var(--muted); margin-top: 8px; opacity: 1; }
.about-badge-wrap { position: absolute; bottom: -22px; right: -22px; background: var(--orange); color: #fff; border-radius: 14px; padding: 20px 24px; text-align: center; box-shadow: 0 8px 32px rgba(212,70,28,0.35); }
.about-badge-wrap strong { font-size: 2.2rem; font-weight: 800; display: block; line-height: 1; }
.about-badge-wrap span { font-size: 0.72rem; opacity: 0.88; margin-top: 4px; display: block; }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.about-feat { display: flex; gap: 15px; align-items: flex-start; }
.feat-icon { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; background: var(--ice); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; border: 1px solid var(--orange-dim); }
.about-feat h4 { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 3px; }
.about-feat p  { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ── SERVICES ── */
.services { padding: 100px 0; background: var(--warm); }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; gap: 24px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px 26px; transition: var(--tr); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--orange); opacity: 0; transition: opacity var(--tr); }
.svc-card:hover { border-color: var(--orange-dim); transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card:hover::before { opacity: 1; }
.svc-icon { width: 48px; height: 48px; border-radius: 11px; margin-bottom: 18px; background: var(--ice); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 1px solid var(--orange-dim); }
.svc-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--charcoal); margin-bottom: 9px; }
.svc-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.7; }
.svc-link    { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 0.8rem; font-weight: 600; color: var(--orange); transition: gap var(--tr); }
.svc-link:hover { gap: 10px; }

/* ── VACANCIES ── */
.vacancies { padding: 100px 0; }
.vac-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; }
.vac-filters { display: flex; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.filter-btn { padding: 7px 16px; border-radius: 50px; font-size: 0.76rem; font-weight: 600; border: 1.5px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; transition: var(--tr); }
.filter-btn:hover  { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.vac-grid { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vac-card { background: #fff; display: flex; align-items: center; gap: 24px; padding: 20px 28px; border-bottom: 1px solid var(--border); transition: var(--tr); }
.vac-card:last-child { border-bottom: none; }
.vac-card:hover { background: var(--warm); }
.vac-location { font-size: 0.72rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; min-width: 120px; }
.vac-title { font-size: 0.93rem; font-weight: 600; color: var(--charcoal); flex: 1; line-height: 1.4; }
.vac-ref { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.vac-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; color: var(--charcoal); padding: 6px 14px; border: 1px solid var(--border); border-radius: 50px; transition: var(--tr); white-space: nowrap; }
.vac-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── WHY US ── */
.why { padding: 100px 0; background: var(--warm); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 52px; }
.why-features { display: flex; flex-direction: column; gap: 18px; }
.why-feat { display: flex; gap: 16px; background: #fff; border-radius: 12px; padding: 20px 22px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--tr); }
.why-feat:hover { border-color: var(--orange-dim); box-shadow: var(--shadow); }
.why-num { font-size: 1.4rem; font-weight: 800; color: var(--orange); opacity: 0.25; min-width: 30px; font-family: 'Cormorant Garamond', serif; line-height: 1; }
.why-feat h4 { font-size: 0.9rem; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.why-feat p  { font-size: 0.81rem; color: var(--muted); line-height: 1.65; }
.why-quote { background: var(--charcoal); border-radius: 18px; padding: 42px 38px; position: relative; overflow: hidden; box-shadow: 0 12px 48px rgba(44,44,44,0.25); }
.why-quote::before { content: '"'; font-size: 9rem; font-family: 'Cormorant Garamond', serif; color: rgba(212,70,28,0.18); position: absolute; top: 0; left: 22px; line-height: 1; }
.why-quote blockquote { color: rgba(255,255,255,0.82); line-height: 1.8; font-style: italic; margin-bottom: 30px; position: relative; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; }
.quote-author { display: flex; align-items: center; gap: 14px; }
.author-av { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; color: #fff; }
.author-name { font-size: 0.88rem; font-weight: 700; color: #fff; }
.author-role { font-size: 0.73rem; color: rgba(255,255,255,0.5); }
.stars { display: flex; gap: 2px; color: var(--orange); font-size: 0.75rem; margin-top: 3px; }

/* ── STATS BAND ── */
.stats-band { background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a1a 100%); padding: 68px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 22px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 2.6rem; font-weight: 800; color: var(--orange); line-height: 1; font-family: 'Cormorant Garamond', serif; }
.stat-item span   { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 7px; display: block; letter-spacing: 0.04em; }

/* ── CTA ── */
.cta { padding: 96px 0; text-align: center; background: #fff; }
.cta h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3vw, 3rem); color: var(--charcoal); margin-bottom: 14px; }
.cta p    { color: var(--muted); font-size: 0.97rem; margin-bottom: 34px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: #141414; color: rgba(255,255,255,0.5); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand p { font-size: 0.83rem; line-height: 1.75; margin: 16px 0 22px; color: rgba(255,255,255,0.38); }
.footer-socials { display: flex; gap: 9px; }
.soc-btn { width: 34px; height: 34px; border-radius: 7px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: var(--tr); }
.soc-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.38); transition: color var(--tr); }
.footer-links a:hover { color: var(--orange-lt); }
.f-contact { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.f-contact-icon { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; background: rgba(212,70,28,0.15); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.f-contact span { font-size: 0.8rem; color: rgba(255,255,255,0.38); line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.footer-bottom p { font-size: 0.73rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.73rem; color: rgba(255,255,255,0.28); transition: color var(--tr); }
.footer-bottom-links a:hover { color: var(--orange-lt); }

/* ── SITE CONTENT (Joomla component area) ── */
.site-content { padding: 60px 0; }

/* ── JOOMLA BLOG LAYOUT (Vacancies as blog posts) ── */
.blog .items-leading .item,
.blog .items-row .item,
.blog-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.blog .page-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--charcoal); margin-bottom: 8px; }
.blog .item-title a { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--charcoal); font-weight: 600; }
.blog .item-title a:hover { color: var(--orange); }
.blog .item-image { margin-bottom: 16px; border-radius: 10px; overflow: hidden; }
.blog .item-intro-text { font-size: 0.95rem; color: var(--slate); line-height: 1.75; margin-bottom: 16px; }
.blog .item-fields .field-entry { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 16px; }
.blog .readmore a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--orange); border: 1.5px solid var(--orange); padding: 7px 18px; border-radius: 50px; transition: var(--tr); }
.blog .readmore a:hover { background: var(--orange); color: #fff; }
.blog .article-info { font-size: 0.73rem; color: var(--muted); margin-bottom: 10px; }
.pagination .btn { padding: 8px 18px; margin: 4px 2px; }

/* ── ARTICLE (single vacancy) ── */
.item-page h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3vw, 2.8rem); color: var(--charcoal); margin-bottom: 16px; }
.item-page .article-info { font-size: 0.78rem; color: var(--muted); margin-bottom: 24px; }
.item-page .item-fields { background: var(--warm); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; }
.item-page .item-fields .field-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; margin-bottom: 2px; }
.item-page .item-fields .field-value { font-size: 0.88rem; font-weight: 600; color: var(--orange); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .navbar .container { height: auto; flex-direction: column; padding: 16px 20px; gap: 12px; }
  .logo-svg { width: 260px; }
  .nav-right { margin-top: 0; width: 100%; }
  .nav-links, .nav-right ul { flex-wrap: wrap; border-top: none; padding-top: 0; }
  .nav-phone { justify-content: flex-start; }
  .hero h1 { font-size: 2.4rem; }
  .hero-kpis { flex-direction: column; }
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .vac-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}
