/*
Theme Name: Swole Productions
Theme URI: https://swoleproductions.com
Author: Swole Productions
Author URI: https://swoleproductions.com
Description: Custom WordPress theme for Swole Productions — a full-service digital and creative agency based in Islamabad. Bold, high-impact design with red, black and off-white brand colours.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: swole
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E02020;
  --red-dark: #c01a1a;
  --black: #0d0d0d;
  --white: #ffffff;
  --grey: #f0eeee;
  --grey-mid: #d8d6d6;
  --text-dark: #1a1a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--grey);
  color: var(--text-dark);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;                                   /* fixed nav height — logo sizes against this */
  display: flex; flex-wrap: nowrap;               /* single row that can never wrap to a 2nd line */
  align-items: stretch; border-bottom: 2px solid var(--black);
  background: var(--red);
  overflow: hidden;                               /* clip any overflow sideways, never into a corner */
}

/* ── NAV HARDENING ──
   A no-wrap flex row physically cannot drop an item to a second line — so even if
   a plugin stylesheet or a Customizer-injected element interferes, nothing can land
   in the bottom-left corner. !important + the extra `body` specificity keeps this
   authoritative over any competing rule. */
body nav.site-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  height: 72px !important;
  align-items: stretch !important;
}

/* Logo cell: full nav height, contents centred */
.nav-logo {
  flex: 0 0 auto;                                 /* fixed size, never shrinks or grows */
  display: flex; align-items: center; justify-content: flex-start;
  height: 100%; padding: 8px 20px 8px 0;          /* flush to the left edge; divider kept on the right */
  border-right: 2px solid var(--black);
  overflow: hidden;
}

/* ── LOGO SIZING (consolidated) ──
   Sizes the uploaded Site Identity logo AND any inline theme logo to fit the
   72px nav. Targeting .custom-logo globally (not only inside .nav-logo) because
   WordPress doesn't always nest the uploaded logo where the theme expects.
   Adjust the 52px max-height below to taste; nothing else needs changing. */
.custom-logo-link,
.nav-logo .custom-logo-link {
  display: flex; align-items: center; height: 100%;
}

.custom-logo,
.nav-logo img,
.nav-logo svg {
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;                                      /* kills default WP figure/img margin that throws off alignment */
}

.nav-links { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 40px; padding: 0 40px; }
.nav-links a { color: var(--black); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--white); }
.nav-links a.active, .nav-links a.active:hover {
  background: var(--white);
  color: var(--black);
  padding: 8px 18px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-brand { flex: 0 0 auto; display: flex; align-items: center; padding: 0 24px; border-left: 2px solid var(--black); border-right: 2px solid var(--black); gap: 14px; }
.nav-brand-text { font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.05em; color: var(--black); }
.nav-socials { display: flex; align-items: center; gap: 10px; }
.nav-socials a { color: var(--black); font-size: 1rem; transition: color 0.2s; }
.nav-socials a:hover { color: var(--white); }

/* ── MOBILE HAMBURGER (hidden on desktop, shown ≤900px) ── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; margin-right: 16px; background: transparent; border: none; cursor: pointer; padding: 0; }
.nav-hamburger span { display: block; width: 26px; height: 3px; background: var(--black); transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.btn-nav { display: flex; align-items: center; height: 100%; padding: 0 28px; background: var(--black); color: var(--red) !important; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; clip-path: polygon(12px 0%, 100% 0%, 100% 100%, 0% 100%); transition: background 0.2s; }
.btn-nav:hover { background: var(--red-dark); color: var(--white) !important; }

/* ── SHARED BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; padding: 16px 32px; background: var(--black); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 100%, 0% 100%); transition: background 0.2s; }
.btn-primary:hover { background: #333; color: var(--white); }
.btn-secondary { display: inline-flex; align-items: center; padding: 16px 32px; background: var(--red-dark); color: var(--red); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; clip-path: polygon(16px 0%, 100% 0%, 100% 100%, 0% 100%); margin-left: -4px; transition: background 0.2s, color 0.2s; }
.btn-secondary:hover { background: var(--black); color: var(--red); }
.btn-red { display: inline-flex; align-items: center; padding: 16px 32px; background: var(--red); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 100%, 0% 100%); transition: background 0.2s; }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-white { display: inline-flex; align-items: center; padding: 18px 44px; background: var(--white); color: var(--red); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%); transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.btn-white:hover { background: var(--black); color: var(--white); }

/* ── SHARED SECTION LABELS ── */
.section-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--red); margin-bottom: 12px; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; line-height: 0.95; color: var(--text-dark); letter-spacing: -0.01em; margin-bottom: 20px; }
.section-title.light { color: var(--white); }
.section-body { font-size: 1rem; line-height: 1.7; color: #555; max-width: 560px; }
.section-body.light { color: rgba(255,255,255,0.65); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--black); padding: 160px 80px 80px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: 0; right: -60px; bottom: 0; width: 45%; background: var(--red); clip-path: polygon(35% 0%, 100% 0%, 100% 100%, 5% 100%); opacity: 0.09; pointer-events: none; }
.hero-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--red); margin-bottom: 16px; }
.hero-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(3rem, 7vw, 6rem); text-transform: uppercase; color: var(--white); line-height: 0.9; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-sub { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 520px; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--red); padding: 60px 80px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-banner.dark { background: var(--black); }
.cta-banner-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-transform: uppercase; color: var(--white); line-height: 0.95; }

/* ── FOOTER ── */
footer.site-footer { background: var(--red); padding: 60px 80px 40px; border-top: 2px solid var(--black); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.28); margin-bottom: 32px; }
.footer-col-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--white); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--black); }
.footer-contact-item { font-size: 0.88rem; color: var(--white); margin-bottom: 8px; line-height: 1.5; }
.footer-contact-item a { color: var(--white); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--black); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-wordmark { font-family: 'Share Tech Mono', monospace; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; color: var(--white); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* Show hamburger, hide the socials cluster to make room */
  .nav-hamburger { display: flex; }
  .nav-brand { display: none; }

  /* Turn the nav links into a full-width dropdown that opens on tap */
  .nav-links {
    display: none;
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 0;
    background: var(--red);
    border-bottom: 2px solid var(--black);
    max-height: calc(100vh - 72px); overflow-y: auto;
    z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { width: 100%; padding: 16px 24px; font-size: 1.1rem; border-bottom: 1px solid rgba(0,0,0,0.12); }
  .nav-links a.active, .nav-links a.active:hover { padding: 16px 24px; clip-path: none; }

  .page-hero { padding: 130px 24px 60px; }
  footer.site-footer { padding: 60px 24px 40px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 60px 24px; }

  /* Full-width service blocks (e.g. "Ask us anything") shouldn't span 3 on mobile */
  .services-grid > div[style*="span 3"] { grid-column: 1 / -1 !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }