/* ============================================================
   HIP Communications — styles.css
   Brand: red #C8202E · grey #939598 · ink #1B1F23
   ============================================================ */
:root {
  --red: #C8202E;
  --red-dark: #A2121F;
  --grey: #939598;
  --ink: #1B1F23;
  --muted: #5B636B;
  --line: #E6E8EB;
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;
  --bg-dark: #14181C;
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(20, 24, 28, .08);
  --shadow-lg: 0 24px 60px rgba(20, 24, 28, .14);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; background: var(--red); color: #fff; font-weight: 700;
  padding: .7em 1.4em; border-radius: 999px; border: 2px solid var(--red);
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-size: 1rem; text-decoration: none; line-height: 1;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-block { width: 100%; margin-top: 1rem; }
.section-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--red); text-decoration: none; }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 7vw, 90px); background: var(--bg-alt); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(closest-side at 78% 18%, rgba(200,32,46,.14), transparent 70%),
    radial-gradient(closest-side at 92% 80%, rgba(147,149,152,.18), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: 1rem; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8rem 0 2.4rem; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 40px; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.hero-stats span { color: var(--muted); font-size: .92rem; }

/* ---------- Trust strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 16px 24px; font-size: .95rem; text-align: center; }
.strip .dot { color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: .8rem; }
.kicker.light { color: #ff7b85; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-sub { color: #B9C0C7; }

.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: .8rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  background: var(--red); color: #fff; border-radius: 50%; font-size: .75rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.ticks.light li::before { background: var(--red); }

/* ---------- Founder card ---------- */
.founder-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.founder-quote p { font-size: 1.2rem; font-style: italic; color: var(--ink); margin: 0 0 1.6rem; }
.founder-meta { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.founder-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.founder-meta strong { display: block; }
.founder-meta span { color: var(--muted); font-size: .9rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-ico { font-size: 1.8rem; width: 56px; height: 56px; border-radius: 14px; background: rgba(200,32,46,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Photo frame ---------- */
.reverse .photo-frame { order: -1; }
.photo-frame {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #EEF0F2; min-height: 360px;
}
.photo-frame img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; }
.photo-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 22px 16px;
  color: #fff; font-size: .95rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(20,24,28,.78));
}
.photo-missing { display: none; }
.photo-frame.missing { border: 2px dashed var(--grey); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.photo-frame.missing figcaption { display: none; }
.photo-frame.missing .photo-missing { display: block; color: var(--muted); font-weight: 700; }
.photo-frame.missing .photo-missing small { display: block; font-family: monospace; font-weight: 400; opacity: .75; margin-top: 6px; }
.signoff { color: var(--red); font-weight: 700; font-style: italic; }

/* ---------- UC / Tech check ---------- */
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; }
.uc-col { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; }
.ticks.light li { color: #E7EAED; }
.uc-cta { text-align: center; margin-top: 2.6rem; }
.uc-cta p { font-size: 1.2rem; color: #fff; margin-bottom: 1.2rem; }

/* ---------- Instagram ---------- */
.insta-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.insta-tile {
  aspect-ratio: 1; border-radius: 10px; display: block;
  background: linear-gradient(135deg, var(--grey), #C3C6C9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.insta-tile:nth-child(2n) { background: linear-gradient(135deg, var(--red), var(--red-dark)); opacity: .85; }
.insta-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.note code, .insta-inner code { background: var(--bg-alt); padding: .1em .4em; border-radius: 5px; font-size: .9em; }

/* ---------- Contact ---------- */
.contact-form .field { margin-bottom: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,32,46,.12); }
.contact-details { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px; align-self: start; }
.contact-details h3 { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .ci { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--grey); font-weight: 700; }
.contact-list a { color: #fff; font-weight: 600; font-size: 1.1rem; }
.contact-list a:hover { color: #ff8a93; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #C3C9CF; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 28em; color: #9AA2A9; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #C3C9CF; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #828A91; }

/* ---------- Reveal animation ---------- */
.section, .card { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { margin-top: 12px; border: 2px solid var(--red); width: 100%; }
  .nav-toggle { display: flex; }
  .grid-2, .insta-inner, .uc-grid { grid-template-columns: 1fr; }
  .reverse .photo-slot { order: 0; }
  .contact-form .row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
