/* ═══════════════════════════════════════════════════════════
   COVENANT FOLAHAN — Virtual Assistant Portfolio
   style.css
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg: #F8F6F1;
  --bg-alt: #EEE9DF;
  --surface: #FFFFFF;
  --text: #19160F;
  --text-2: #6A625A;
  --text-3: #A49B92;
  --accent: #B8860B;
  --accent-dk: #8B6508;
  --accent-lt: #F7EDD0;
  --navy: #1B2D45;
  --navy-2: #243C5C;
  --border: #DDD8CE;
  --border-lt: #EAE5DC;
  --white: #FFFFFF;
  --green: #22C55E;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 0.28s;
  --nav-height: 64px;

  --pad: 1.5rem;
  --max: 1180px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;

  --sh-sm: 0 2px 12px rgba(0, 0, 0, .06);
  --sh-md: 0 8px 32px rgba(0, 0, 0, .09), 0 2px 8px rgba(0, 0, 0, .05);
  --sh-lg: 0 20px 60px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Email Protection */
.email-protect::before {
  content: attr(data-user) '\0040' attr(data-domain);
}

.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.label--light {
  color: rgba(184, 134, 11, .7);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.h2 em {
  font-style: italic;
  color: var(--accent);
}

.h2--light {
  color: var(--white);
}

.h2--light em {
  color: rgba(184, 134, 11, .9);
}

.sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
}

.sub--light {
  color: rgba(255, 255, 255, .55);
}

/* Section header with serif number */
.sec-head {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.sec-num {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--bg-alt);
  flex-shrink: 0;
  margin-top: .1rem;
  user-select: none;
}

.sec-num--light {
  color: rgba(255, 255, 255, .08);
}

.sec-head--light .label {
  color: rgba(184, 134, 11, .7);
}

.sec-head__text {
  flex: 1;
}

/* Tags */
.tag {
  display: inline-flex;
  padding: .25rem .7rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn svg {
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(.97);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: #0f1c2c;
  box-shadow: 0 8px 24px rgba(27, 45, 69, .3);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--text-3);
  background: var(--bg-alt);
}

.btn--gold {
  background: var(--accent);
  color: var(--white);
}

.btn--gold:hover {
  background: var(--accent-dk);
  box-shadow: 0 8px 28px rgba(184, 134, 11, .3);
  transform: translateY(-1px);
}

.btn--nav {
  padding: .55rem 1.2rem;
  font-size: .78rem;
  background: var(--navy);
  color: var(--white);
}

.btn--nav:hover {
  background: #0f1c2c;
}

.btn--full {
  width: 100%;
}

/* Available badge */
.hero__avail {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .9rem;
  background: var(--accent-lt);
  border: 1px solid rgba(184, 134, 11, .22);
  border-radius: var(--r-full);
  font-size: .74rem;
  font-weight: 500;
  color: var(--accent-dk);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.avail-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  padding: 1.25rem 0;
  transition: padding var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.nav.scrolled {
  padding: .75rem 0;
  background: rgba(248, 246, 241, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--sh-sm);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav__mono {
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav__link {
  font-size: .84rem;
  font-weight: 400;
  color: var(--text-2);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  margin-left: auto;
  padding: .4rem;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Drawer Overlay — handled by nav__overlay div */

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}

.nav__overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: white;
  backdrop-filter: blur(20px);
  padding: 1rem;
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
}

.nav__drawer.open {
  transform: translateX(0);
}

/* Close Button */
.nav__drawer-close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: color var(--dur) var(--ease);
  margin-bottom: 1rem;
  margin-right: 1rem;
  margin-top: 1rem;
}

.nav__drawer-close:hover {
  color: var(--accent);
}

/* Drawer Links */
.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  padding: 0 1rem;
}

.nav__drawer-links li {
  border-bottom: 1px solid var(--border-lt);
  padding: 1rem 0;
}

.nav__drawer-links li:first-child {
  padding-top: 1rem;
}

.nav__drawer-links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nav__drawer-links .nav__link {
  font-size: .95rem;
  display: block;
  color: var(--text);
  font-weight: 500;
  padding-bottom: 0;
  transition: color var(--dur) var(--ease);
}

.nav__drawer-links .nav__link::after {
  content: none;
}

.nav__drawer-links .nav__link:hover,
.nav__drawer-links .nav__link.active {
  color: var(--accent);
}

/* Drawer CTA */
.nav__drawer-cta {
  margin-top: auto;
  padding: 1.5rem 1rem 1.5rem 1rem;
  border-top: 1px solid var(--border-lt);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  /* Make the hero less "tall" so content sits higher on the page */
  min-height: unset !important;
  padding-top: 9rem !important;
  padding-bottom: 1.8rem !important;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Noise texture overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ── Left content ── */
.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem) !important;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.01em;
  margin-bottom: .7rem !important;
  display: flex;
  align-items: baseline;
  gap: .6rem;
  justify-content: center;
}

.hero__name span {
  display: inline;
}

.hero__name em {
  display: inline;
  font-style: italic;
  color: var(--accent);
}

.hero__role {
  font-size: .88rem !important;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: .8rem !important;
}

.hero__role strong {
  display: block;
  font-weight: 600;
  font-size: .95rem !important;
  color: var(--text);
}

.hero__bio {
  font-size: .88rem !important;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 1.25rem !important;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.6rem !important;
}

/* Stats */
.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem !important;
  padding: .8rem 1.05rem !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__n {
  font-family: var(--serif);
  font-size: 1.55rem !important;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.stat__l {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stat__div {
  width: 1px;
  height: 34px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Photo ── */
.hero__photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__photo-frame {
  position: relative;
  width: 100%;
  max-width: 330px !important;
  border-radius: var(--r-xl);
  overflow: visible;
}

.hero__photo {
  width: 100%;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover;
  border-radius: var(--r-xl);
  display: block;
  box-shadow: var(--sh-lg);
}

/* Gold accent frame detail */
.hero__photo-frame::before {
  content: '';
  position: absolute;
  inset: -8px -8px auto auto;
  width: 55px;
  height: 55px;
  border-top: 2.5px solid var(--accent);
  border-right: 2.5px solid var(--accent);
  border-radius: 0 var(--r-md) 0 0;
  z-index: 2;
  pointer-events: none;
}

.hero__photo-frame::after {
  content: '';
  position: absolute;
  inset: auto auto -8px -8px;
  width: 55px;
  height: 55px;
  border-bottom: 2.5px solid var(--accent);
  border-left: 2.5px solid var(--accent);
  border-radius: 0 0 0 var(--r-md);
  z-index: 2;
  pointer-events: none;
}

/* Available badge on photo */
.hero__photo-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: .74rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--sh-sm);
  z-index: 3;
}

/* Decorative accent square behind photo */
.hero__photo-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 112px;
  height: 112px;
  background: var(--accent-lt);
  border-radius: var(--r-lg);
  z-index: -1;
}

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
.services {
  background: var(--bg-alt);
  padding: 7rem 0;
}

.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
}

.sv {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: background var(--dur) var(--ease);
  position: relative;
}

.sv:hover {
  background: var(--bg);
}

/* Remove right border on last col */
.sv:nth-child(3n) {
  border-right: none;
}

/* Remove bottom border on last row items */
.sv:nth-child(n+6):not(.sv--wide) {
  border-bottom: none;
}

.sv--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  border-right: none;
  border-bottom: none;
}

.sv--wide .sv__wide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.sv__icon {
  width: 46px;
  height: 46px;
  background: var(--accent-lt);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--accent-dk);
  flex-shrink: 0;
}

.sv__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.sv__desc {
  font-size: .87rem;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
}

/* TECH STACK */
.tech {
  background: var(--navy);
  padding: 7rem 0;
}

.tk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.tk-cat {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tk-cat__label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}

.tk-tools {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.tk-tool {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .65rem;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}

.tk-tool:hover {
  background: rgba(255, 255, 255, .09);
}

.tk-badge {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: .01em;
}

.tk-badge--gold {
  background: rgba(184, 134, 11, .2);
  border: 1px solid rgba(184, 134, 11, .3);
  color: rgba(184, 134, 11, .9);
}

.tk-tool__name {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  line-height: 1;
}

.tk-tool__sub {
  font-size: .68rem;
  color: rgba(255, 255, 255, .3);
  margin-top: 2px;
}

.tk-note {
  font-size: .75rem;
  color: rgba(255, 255, 255, .28);
  line-height: 1.5;
  padding-top: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* PORTFOLIO */
.portfolio {
  background: var(--bg);
  padding: 7rem 0;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Portfolio cards — image-first */
.pf {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.pf:hover {
  border-color: rgba(184, 134, 11, .22);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.pf--full {
  grid-column: 1 / -1;
}

/* Image slot */
.pf__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
  flex-shrink: 0;
}

.pf--full .pf__img {
  aspect-ratio: 21 / 7;
}

.pf__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease);
}

.pf:hover .pf__img img {
  transform: scale(1.04);
}

/* Placeholder shown when no real image is set */
.pf__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-3);
}

.pf__img-placeholder svg {
  opacity: .4;
}

.pf__img-placeholder span {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .5;
}

/* Content below image */
.pf__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.pf__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pf__num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--bg-alt);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}

.pf:hover .pf__num {
  color: var(--accent-lt);
}

.pf__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  flex: 1;
}

.pf__desc {
  font-size: .86rem;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
}

.pf__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .5rem;
}

/* ABOUT */
.about {
  background: var(--bg-alt);
  padding: 7rem 0;
}

.ab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.ab-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ab-left .sec-num {
  margin-bottom: .5rem;
}

.ab-left .label {
  margin-bottom: .5rem;
}

.ab-left .h2 {
  margin-bottom: 1.25rem;
}

.ab-text {
  font-size: .98rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.ab-left .btn {
  margin-top: 1.25rem;
  width: fit-content;
}

.ab-right {
  display: flex;
  flex-direction: column;
}

.ab-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.ab-item:first-child {
  border-top: 1px solid var(--border);
}

.ab-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-lt);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--accent-dk);
  flex-shrink: 0;
  margin-top: 2px;
}

.ab-item__title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.ab-item__desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* CONTACT */
.contact {
  background: var(--bg);
  padding: 7rem 0;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ct-left .label {
  margin-bottom: .5rem;
}

.ct-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.ct-title em {
  font-style: italic;
  color: var(--accent);
}

.ct-desc {
  font-size: .98rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.ct-channels {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ct-channels .btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  flex-shrink: 0;
}

.ct-ch {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.ct-ch:hover {
  border-color: rgba(184, 134, 11, .25);
  box-shadow: var(--sh-sm);
  transform: translateX(4px);
}

.ct-ch__icon {
  width: 38px;
  height: 38px;
  background: var(--accent-lt);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--accent-dk);
  flex-shrink: 0;
}

.ct-ch__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-ch__label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ct-ch__val {
  font-size: .84rem;
  font-weight: 500;
  color: var(--text);
}

.ct-ch__arr {
  color: var(--text-3);
  flex-shrink: 0;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ct-ch:hover .ct-ch__arr {
  color: var(--accent);
  transform: translateX(3px);
}

/* CTA card */
.ct-card {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  color: var(--white);
}

.ct-card__badge {
  display: inline-flex;
  padding: .28rem .8rem;
  background: rgba(184, 134, 11, .15);
  border: 1px solid rgba(184, 134, 11, .22);
  border-radius: var(--r-full);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(184, 134, 11, .9);
  margin-bottom: 1.25rem;
}

.ct-card__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ct-card__body {
  font-size: .87rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.ct-card__perks {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 2rem;
}

.ct-card__perks li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .7);
}

.ct-card__perks li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.ct-card__note {
  margin-top: 1rem;
  font-size: .72rem;
  color: rgba(255, 255, 255, .25);
  text-align: center;
}

/* Contact Form */
.ct-form {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--white);
}

.form-input,
.form-textarea {
  padding: .75rem 1rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .87rem;
  color: var(--white);
  transition: all var(--dur) var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, .3);
}

.form-input:hover,
.form-textarea:hover {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, .1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 1rem;
  font-size: .72rem;
  color: rgba(255, 255, 255, .25);
  text-align: center;
}

/* Form Validation Errors */
.form-error {
  display: none;
  margin-top: .4rem;
  font-size: .75rem;
  color: #ff6b6b;
  font-weight: 500;
}

.form-error.show {
  display: block;
}

.form-input.error,
.form-textarea.error {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, .05);
}

.form-input.error:focus,
.form-textarea.error:focus {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, .1);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, .15);
}

.form-success {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--r-md);
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .2);
  color: #22c55e;
  font-size: .9rem;
  text-align: center;
}

.form-success.show {
  display: block;
}

.btn--sent {
  background: #22c55e !important;
  color: var(--white) !important;
}

/* FOOTER */
.footer {
  background: var(--text);
  padding: 4rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  margin-bottom: 2rem;
}

.footer__bname {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .25rem;
}

.footer__btitle {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .3);
  margin-bottom: .75rem;
}

.footer__bline {
  font-size: .84rem;
  color: rgba(255, 255, 255, .25);
  line-height: 1.6;
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer__nh {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .25);
  margin-bottom: .25rem;
}

.footer__nh a {
  color: rgba(255, 255, 255, .25);
  transition: color var(--dur) var(--ease);
}

.footer__nh a:hover {
  color: var(--accent);
}

.footer__nav a,
.footer__contact a {
  font-size: .84rem;
  color: rgba(255, 255, 255, .45);
  transition: color var(--dur) var(--ease);
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: rgba(255, 255, 255, .88);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  color: rgba(255, 255, 255, .2);
  flex-wrap: wrap;
  gap: .5rem;
}

/* RESPONSIVE — TABLET (≤1024px) */
@media (max-width: 1024px) {
  :root {
    --pad: 1.25rem;
  }

  .hero__wrap {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero {
    padding-top: 9.5rem;
    padding-bottom: 3.1rem;
  }

  .tk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ab-grid {
    gap: 3rem;
  }

  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --pad: 1rem;
  }

  /* Generic section padding reset */
  .services,
  .tech,
  .portfolio,
  .about,
  .contact {
    padding: 4rem 0;
  }

  /* ── Nav ── */
  .nav__links,
  .btn--nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* ── Hero ── */
  .hero {
    padding-top: 10rem;
    padding-bottom: 2.6rem;
    align-items: flex-start;
    min-height: unset;
  }

  .hero__content {
    text-align: center;
  }

  .hero__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Photo above text on mobile */
  .hero__photo-wrap {
    order: -1;
  }

  .hero__photo-frame {
    max-width: 100%;
  }

  .hero__photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
  }

  .hero__photo-accent {
    display: none;
  }

  .hero__photo-frame::before,
  .hero__photo-frame::after {
    display: none;
  }

  .hero__name {
    font-size: clamp(2.8rem, 12vw, 4rem);
    line-height: .95;
  }

  .hero__avail {
    margin-bottom: 1rem;
  }

  .hero__stats {
    width: 100%;
    justify-content: space-between;
    padding: .8rem .95rem;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Section header ── */
  .sec-head {
    gap: .75rem;
    flex-wrap: wrap;
  }

  .sec-num {
    font-size: 3rem;
  }

  /* ── Services ── */
  .sv-grid {
    grid-template-columns: 1fr;
    border-radius: var(--r-lg);
  }

  /* Reset all borders for single-col, apply only bottom */
  .sv {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sv:last-child {
    border-bottom: none;
  }

  .sv--wide {
    flex-direction: column;
    border-bottom: none;
  }

  /* ── Tech ── */
  .tk-grid {
    grid-template-columns: 1fr;
  }

  /* ── Portfolio ── */
  .pf-grid {
    grid-template-columns: 1fr;
  }

  .pf--full {
    grid-column: auto;
  }

  .pf--full .pf__img {
    aspect-ratio: 16 / 9;
  }

  /* ── About ── */
  .ab-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ab-left .sec-num {
    display: none;
  }

  /* ── Contact ── */
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ── Footer ── */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: .4rem;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --pad: .875rem;
  }

  .hero__name {
    font-size: 2.6rem;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
  }

  .stat__div {
    display: none;
  }

  .ct-card,
  .ct-form {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .pf__body {
    padding: 1.1rem;
  }
}