/*
Theme Name: Unique Services Portfolio
Author: Deven Warang
Description: Custom hand-coded WordPress theme for Unique Services Portfolio.
Version: 1.0.0
Text Domain: unique-services-portfolio
*/

:root {
  --purple: #61368c;
  --purple-dark: #432560;
  --purple-light: #ede4f4;
  --purple-soft: #f7f2fa;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-light: #ffedd5;
  --navy: #163b4d;
  --navy-soft: #2e4e5e;

  --background: #fafafa;
  --white: #ffffff;
  --tint: #f5fbfe;
  --neutral: #f7f7f8;
  --border: #e2ecf0;
  --border-dark: rgba(255, 255, 255, 0.14);
  --text: #18181b;
  --text-muted: #52525b;

  /* Type */
  --usp-font:
    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  --usp-font-display:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;

  /* Border Radius */
  --r-sm: 2px;
  --r-md: 10px;
  --r-lg: 18px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(22, 59, 77, 0.08);
  --shadow-md: 0 12px 28px -12px rgba(22, 59, 77, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(22, 59, 77, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-s: 160ms;
  --dur-m: 320ms;

  /* Layout */
  --container: 1220px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 78px;
  --util-h: 40px;
}

body {
  font-family: var(--usp-font);
  font-weight: 400;
  color: var(--purple);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.brand-word strong {
  font-family: var(--usp-font-display);
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 640ms var(--ease),
    transform 640ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * {
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- USP Sections ---------- */
.usp-section__padding {
  padding: clamp(46px, 6vw, 76px) 0 clamp(46px, 6vw, 76px);
}

.usp-section__head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 72px);
}

.usp-section__head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.usp-section__head h1,
h2 {
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
}

/* ==========================================================================
  Buttons
  ========================================================================== */

.usp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden; /* clips the hover sweep */
  isolation: isolate; /* keeps sweep pseudo-element under the label */
  transition:
    background var(--dur-s) var(--ease),
    border-color var(--dur-s) var(--ease),
    color var(--dur-s) var(--ease),
    box-shadow var(--dur-s) var(--ease),
    transform var(--dur-s) var(--ease);
}

.usp-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-s) var(--ease);
}

/* icon-trailing buttons: icon nudges right on hover */
.usp-btn-icon-right:hover svg {
  transform: translateX(3px);
}
/* icon-leading buttons: icon nudges left on hover */
.usp-btn-icon-left:hover svg {
  transform: translateX(-3px);
}

/* the light-sweep micro-interaction, used on solid variants only */
.usp-btn-primary::before,
.usp-btn-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 520ms var(--ease);
  z-index: -1;
  pointer-events: none;
}
.usp-btn-primary:hover::before,
.usp-btn-accent:hover::before {
  left: 130%;
}

/* ---------- Primary — solid navy ---------- */
.usp-btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.usp-btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: var(--shadow-md);
}
.usp-btn-primary:active {
  box-shadow: var(--shadow-sm);
}

/* ---------- Secondary — outlined navy, fills on hover ---------- */
.usp-btn-secondary {
  background: transparent;
  color: var(--purple);
  border-color: rgba(97, 54, 140, 0.28);
}
.usp-btn-secondary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* ---------- Accent — solid blue ---------- */
.usp-btn-accent {
  background: var(--usp-primary);
  color: var(--usp-navy);
  box-shadow: var(--shadow-sm);
}
.usp-btn-accent:hover {
  background: var(--usp-navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

/* ---------- Ghost — text link with animated underline ---------- */
.usp-btn-ghost {
  padding: 8px 2px;
  background: transparent;
  color: var(--usp-purple);
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.usp-btn-ghost::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 4px;
  width: calc(100% - 4px);
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-m) var(--ease);
}
.usp-btn-ghost:hover::after {
  transform: scaleX(1);
}

/* ---------- Variant for use on dark/navy sections ---------- */
.usp-btn.on-dark.usp-btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.usp-btn.on-dark.usp-btn-secondary:hover {
  background: var(--white);
  color: var(--usp-navy);
  border-color: var(--white);
}
.usp-btn.on-dark.usp-btn-ghost {
  color: var(--usp-primary);
}

/* ---------- Size modifier ---------- */
.usp-btn-sm {
  padding: 11px 20px;
  font-size: 0.87rem;
}

/* ---------- Focus state — keep this, it's an accessibility requirement ---------- */
.usp-btn:focus-visible {
  outline: 2.5px solid var(--usp-primary);
  outline-offset: 3px;
}

/* ---------- Link Arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--usp-purple);
  position: relative;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-m) var(--ease);
}
.link-arrow:hover::after {
  transform: scaleX(1);
}

.link-arrow svg {
  transition: transform var(--dur-s) var(--ease);
  width: 16px;
  height: 16px;
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .usp-btn,
  .usp-btn::before,
  .usp-btn::after,
  .usp-btn svg {
    transition: none !important;
  }
}

/* ==========================================================================
  Badges / trust pills
  ========================================================================== */
.usp-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}
.usp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.usp-badge svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}
.usp-badge.on-dark {
  color: rgba(255, 255, 255, 0.85);
}
.usp-badge.on-dark svg {
  color: var(--orange);
}

.usp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.usp-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

/* ==========================================================================
   Locations
   ========================================================================== */

.usp-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.usp-location__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.usp-location__card .media-frame {
  border-radius: 0;
  aspect-ratio: 16/8;
}
.usp-location__card-body {
  padding: 30px;
}
.usp-location__card-body .city-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.usp-location__card-body h3 {
  margin: 0;
  margin-bottom: 12px;
}
.usp-location__card-body address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame.short {
  min-height: 200px;
}

/* subtle brand-tinted wash so the photo feels tied to your palette,
   not just a random stock shot dropped in */
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(97, 54, 140, 0.22),
    rgba(245, 156, 23, 0.1) 55%,
    transparent
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
