/* ==========================================================================
   REEF Digital - stylesheet
   Shares the REEF 3D design tokens so the two sites read as one group.
   ========================================================================== */

:root {
  --deep: #071e2e;
  --ocean: #0a4a6e;
  --teal: #0ea5a0;
  --coral: #ff6b35;
  --sand: #f5f0e8;
  --white: #ffffff;
  --text: #1a2a33;
  --text-light: #5a6e7a;
  --line: #e3ddd2;
  --shadow: 0 2px 4px rgba(7, 30, 46, 0.04), 0 12px 32px rgba(7, 30, 46, 0.08);
  --shadow-lift: 0 4px 8px rgba(7, 30, 46, 0.06), 0 20px 48px rgba(7, 30, 46, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

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

.section { padding: 56px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--white); }

.section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-sub { color: var(--text-light); max-width: 62ch; font-size: 1.05rem; }
.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn-coral { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(255, 107, 53, 0.28); }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 107, 53, 0.34); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { border-color: var(--line); color: var(--deep); background: var(--white); }
.btn-outline-dark:hover { border-color: var(--deep); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 30, 46, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo span { color: var(--coral); font-weight: 600; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  margin-left: 18px;
  padding: 10px 20px;
  font-size: 0.88rem;
  box-shadow: none;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 420px at 78% -10%, rgba(14, 165, 160, 0.30), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(255, 107, 53, 0.20), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 78%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(14, 165, 160, 0.4);
  background: rgba(14, 165, 160, 0.1);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-lede { font-size: 1.16rem; color: rgba(255,255,255,0.82); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.55); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ocean); color: var(--white); padding: 16px 0; }
.trust-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
}
.trust-icon { color: var(--teal); display: flex; flex-shrink: 0; }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(14,165,160,0.4); }
.svc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(14, 165, 160, 0.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.svc-card p { color: var(--text-light); font-size: 0.95rem; }
.svc-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-light); font-size: 0.9rem; }
.svc-card li { margin-bottom: 6px; }
.svc-card li::marker { color: var(--coral); }

/* ---------- Split / why ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 11px;
  color: var(--text-light);
}
.checklist .tick {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(14, 165, 160, 0.14);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.checklist strong { color: var(--text); display: block; font-weight: 600; }

.panel {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.panel h3 { color: var(--white); }
.panel .panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.panel .panel-row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel .panel-row:first-of-type { padding-top: 0; }
.panel .panel-label { color: rgba(255,255,255,0.62); font-size: 0.9rem; }
.panel .panel-value { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.98rem; text-align: right; }
.panel .panel-value.accent { color: var(--coral); }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.work-shot {
  height: 176px;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.work-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 82% 10%, rgba(14,165,160,0.35), transparent 65%);
}
.work-shot .tag {
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
}
.work-shot.reef { background: linear-gradient(135deg, #0a4a6e, #071e2e); }
.work-shot.reef .tag { color: var(--coral); }
.work-shot.neo { background: linear-gradient(135deg, #123a52, #071e2e); }
.work-shot.neo .tag { color: var(--teal); }
.work-shot.lun { background: linear-gradient(135deg, #1b2f3a, #071e2e); }
.work-shot.lun .tag { color: #f5f0e8; }

.work-shot.ips { background: linear-gradient(135deg, #0f4a44, #102b3a); }
.work-shot.ips .tag { color: #00d084; }
.work-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { margin-bottom: 6px; }
.work-body p { color: var(--text-light); font-size: 0.94rem; flex: 1; }
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 6px;
}
.work-link:hover { text-decoration: underline; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--coral);
  background: rgba(255, 107, 53, 0.12);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 0.95rem; margin: 0; }
.step-line { height: 2px; background: var(--line); margin: 0 0 22px; border-radius: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 15px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--coral);
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .faq-body { padding: 0 20px 16px; color: var(--text-light); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 52px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; }
.contact-list li { margin-bottom: 11px; color: var(--text-light); font-size: 0.95rem; }
.contact-list strong { color: var(--text); display: block; font-family: 'Poppins', sans-serif; font-weight: 600; }
.contact-list a { color: var(--teal); }
.contact-list a:hover { text-decoration: underline; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.83rem; color: var(--text-light); margin: 12px 0 0; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.92rem; }
.form-msg.ok { display: block; background: rgba(14,165,160,0.12); border: 1px solid rgba(14,165,160,0.35); color: #0a5f5b; }
.form-msg.err { display: block; background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.35); color: #a13d15; }
.form-msg p { margin: 0 0 6px; }
.form-msg p:last-child { margin: 0; }

/* ---------- Footer ---------- */
footer { background: var(--deep); color: rgba(255,255,255,0.7); padding: 44px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-tag { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--white); margin-bottom: 12px; }
.footer-tag span { color: var(--coral); font-weight: 600; }
.footer-about { font-size: 0.92rem; max-width: 42ch; }
.group-note {
  margin-top: 16px;
  font-size: 0.88rem;
  border-left: 3px solid var(--teal);
  padding-left: 12px;
  color: rgba(255,255,255,0.6);
}
.group-note a { color: var(--teal); }
.group-note a:hover { text-decoration: underline; }
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--deep);
    padding: 8px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav-cta { display: none; }
  .section { padding: 42px 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 56px 0 50px; }
}

@media (max-width: 520px) {
  .trust-strip-inner { justify-content: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Work card headers: a faded snapshot of the real site ------ */
/* The card header was a flat gradient with a word on it. It now carries a
   screenshot of the actual site, dropped back so far that it reads as
   texture rather than a picture, and it comes forward a little on hover
   so the card feels alive. The dark gradient over the top is what keeps
   the tag readable over any of the four. */
.work-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.45;
  transition: transform 0.4s ease, opacity 0.25s ease;
}

.work-card:hover .work-shot-img {
  transform: scale(1.05);
  opacity: 0.62;
}

.work-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,30,46,0.26) 0%, rgba(7,30,46,0.66) 100%),
    radial-gradient(420px 180px at 82% 10%, rgba(14,165,160,0.28), transparent 65%);
}

.work-shot .tag {
  position: relative;
  z-index: 2;
}
