/* ============================================================
   IMBUE HORIZON — Site Stylesheet
   Image-Led + Geometric Shape System
   ============================================================ */

:root {
  /* Brand */
  --ih-blue: #00B4D8;
  --ih-blue-dark: #0082A0;
  --ih-blue-deeper: #005F75;
  --ih-blue-soft: #9ED9E8;
  --ih-blue-tint: #E0F7FC;
  --ih-gold: #C9A227;
  --ih-gold-dark: #9E7D1A;
  --ih-gold-tint: #F5E9B8;
  --ih-coral: #E07856;
  /* Neutrals */
  --ih-dark: #2C2218;
  --ih-dark-2: #3D3026;
  --ih-dark-3: #1A120D;
  --ih-text: #2C2218;
  --ih-text-2: #6A5E52;
  --ih-text-3: #9A8E84;
  --ih-canvas: #FAF6F0;
  --ih-canvas-2: #F0EAE0;
  --ih-white: #FFFFFF;
  --ih-border: #E0D8CE;
  /* Type */
  --fn-d: Georgia, "Times New Roman", serif;
  --fn-b: "Helvetica Neue", Arial, sans-serif;
  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-py: clamp(72px, 9vw, 120px);
  --nav-h: 72px;
  /* Motion */
  --t-fast: 150ms ease-out;
  --t-base: 220ms ease-out;
  --t-slow: 360ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fn-b);
  background: var(--ih-canvas);
  color: var(--ih-text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

::selection { background: var(--ih-blue); color: #fff; }

/* ---------- Typographic system ---------- */

.eyebrow {
  font-family: var(--fn-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ih-blue-dark);
}
.eyebrow.on-dark { color: var(--ih-gold); }

h1, h2, h3, h4 { font-family: var(--fn-d); font-weight: 700; color: var(--ih-text); }
.h-display {
  font-family: var(--fn-d);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ih-text);
}
.h-display em, .h-display .accent { font-style: normal; color: var(--ih-blue); }
.h-section {
  font-family: var(--fn-d);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.h-block {
  font-family: var(--fn-b);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ih-text);
}
.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ih-text-2);
  max-width: 56ch;
}
.body-md { font-size: 16px; line-height: 1.75; color: var(--ih-text-2); }
.body-sm { font-size: 14px; line-height: 1.7; color: var(--ih-text-2); }
.statement {
  font-family: var(--fn-d);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ih-blue-deeper);
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-py) 0; position: relative; }
.section--alt { background: var(--ih-canvas-2); }
.section--dark { background: var(--ih-dark); color: var(--ih-canvas); }
.section--dark .lede, .section--dark .body-md, .section--dark .body-sm { color: rgba(255,255,255,0.7); }
.section--dark .h-section, .section--dark .h-display { color: var(--ih-white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast), background-color var(--t-base), color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-base);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--ih-blue); color: #fff; }
.btn--primary:hover { background: var(--ih-blue-dark); }
.btn--gold { background: var(--ih-gold); color: #fff; }
.btn--gold:hover { background: var(--ih-gold-dark); }
.btn--dark { background: var(--ih-dark); color: #fff; border-radius: 999px; padding: 14px 28px; }
.btn--dark:hover { background: var(--ih-dark-2); }
.btn--ghost { background: transparent; color: var(--ih-blue-dark); border-color: var(--ih-border); }
.btn--ghost:hover { border-color: var(--ih-blue); color: var(--ih-blue); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--coral { background: var(--ih-coral); color: #fff; border-radius: 999px; padding: 14px 28px; }
.btn--coral:hover { background: #c96345; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ih-gold-dark);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--t-base);
}
.link-arrow:hover { gap: 12px; color: var(--ih-blue-dark); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ih-dark);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height var(--t-base), box-shadow var(--t-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { height: 60px; border-bottom-color: rgba(255,255,255,0.06); box-shadow: 0 2px 24px rgba(0,0,0,0.18); }
.nav__inner { display: flex; align-items: center; gap: 32px; width: 100%; }
.nav__logo { display: flex; align-items: center; line-height: 1; flex-shrink: 0; }
.nav__logo-img {
  display: block;
  height: 48px;
  width: auto;
  transition: height var(--t-base);
}
.nav.scrolled .nav__logo-img { height: 40px; }
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  list-style: none;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  padding: 6px 0;
  position: relative;
  transition: color var(--t-base);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ih-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link.is-current { color: #fff; }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  transition: border-color var(--t-base), color var(--t-base);
}
.nav__phone:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.nav__phone-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ih-coral); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: #fff;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: #fff;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }

/* ---------- Shape system ---------- */

.shape { position: absolute; pointer-events: none; }
.shape--circle { border-radius: 50%; }
.shape--ring { border-radius: 50%; background: transparent !important; border: 3px solid currentColor; }
.shape--quarter-tl { border-radius: 100% 0 0 0; }
.shape--quarter-tr { border-radius: 0 100% 0 0; }
.shape--quarter-br { border-radius: 0 0 100% 0; }
.shape--quarter-bl { border-radius: 0 0 0 100%; }
.shape--half-t { border-radius: 100px 100px 0 0; }
.shape--half-b { border-radius: 0 0 100px 100px; }
.shape--half-l { border-radius: 100px 0 0 100px; }
.shape--half-r { border-radius: 0 100px 100px 0; }
.shape--block { border-radius: 0; }
.shape--triangle-u {
  width: 0 !important; height: 0 !important;
  background: transparent !important;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 44px solid var(--ih-blue);
}
.shape--triangle-d {
  width: 0 !important; height: 0 !important;
  background: transparent !important;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 44px solid var(--ih-gold);
}

.bg-blue { background: var(--ih-blue); }
.bg-blue-dark { background: var(--ih-blue-dark); }
.bg-blue-deeper { background: var(--ih-blue-deeper); }
.bg-blue-soft { background: var(--ih-blue-soft); }
.bg-gold { background: var(--ih-gold); }
.bg-gold-dark { background: var(--ih-gold-dark); }
.bg-coral { background: var(--ih-coral); }
.bg-dark { background: var(--ih-dark); }
.bg-canvas2 { background: var(--ih-canvas-2); }
.c-blue { color: var(--ih-blue); }
.c-gold { color: var(--ih-gold); }

/* ---------- Photo frames ---------- */

.photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ih-canvas-2);
  isolation: isolate;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.4,0,.2,1);
}
.photo--zoom:hover img { transform: scale(1.04); }
/* warm photographic treatment */
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,225,180,0.05) 0%, rgba(44,34,24,0.10) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.photo-wrap { position: relative; }

/* ---------- Divider strip (signature rhythm device) ---------- */

.divider-strip {
  width: 100%;
  display: flex;
  height: 36px;
  overflow: hidden;
}
.divider-strip .seg { flex: 1; min-width: 8%; position: relative; }
.divider-strip .seg.bg-canvas2,
.divider-strip .seg.bg-dark,
.divider-strip .seg.bg-blue,
.divider-strip .seg.bg-blue-deeper,
.divider-strip .seg.bg-gold,
.divider-strip .seg.bg-coral { }

/* ---------- Cards ---------- */

.card {
  background: var(--ih-white);
  border-radius: 18px;
  padding: 36px 32px;
  border: 1px solid var(--ih-border);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(44,34,24,0.10); }

.quote-card {
  background: #fff;
  border-radius: 22px;
  padding: 40px 34px 32px;
  position: relative;
  border: 1px solid var(--ih-border);
}
.quote-card::after {
  /* speech-bubble tail */
  content: "";
  position: absolute;
  left: 44px; bottom: -16px;
  width: 26px; height: 26px;
  background: #fff;
  border-right: 1px solid var(--ih-border);
  border-bottom: 1px solid var(--ih-border);
  transform: rotate(45deg);
}
.quote-card__text {
  font-family: var(--fn-d);
  font-size: 19px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ih-text);
}
.quote-card__attr { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ih-blue-tint);
  color: var(--ih-blue-deeper);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.quote-card__name { font-weight: 700; color: var(--ih-text); font-size: 14px; line-height: 1.2; }
.quote-card__role { font-size: 12px; color: var(--ih-text-3); letter-spacing: 0.04em; }

/* ---------- Dotted-list "Why choose us" ---------- */

.dot-list { list-style: none; display: grid; gap: 32px; }
.dot-list__item { display: grid; grid-template-columns: 36px 1fr; gap: 22px; align-items: start; }
.dot-list__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-top: 9px;
}
.dot-list__title { font-family: var(--fn-b); font-weight: 800; font-size: 18px; color: var(--ih-text); margin-bottom: 8px; letter-spacing: -0.005em; }
.dot-list__body { font-size: 15px; line-height: 1.7; color: var(--ih-text-2); max-width: 56ch; }

/* Round seal badge */
.seal {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 1.5px solid var(--ih-border);
  display: grid;
  place-items: center;
  position: relative;
  background: var(--ih-canvas);
  flex-shrink: 0;
}
.seal__monogram {
  font-family: var(--fn-d);
  font-weight: 700;
  font-size: 32px;
  color: var(--ih-blue-deeper);
  letter-spacing: 0.04em;
}
.seal svg { position: absolute; inset: 0; animation: sealspin 28s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .seal svg { animation: none; }
}
@keyframes sealspin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */

.footer {
  background: var(--ih-dark-3);
  color: rgba(255,255,255,0.7);
  padding-top: 96px;
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer__col h4 {
  font-family: var(--fn-b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { color: rgba(255,255,255,0.78); font-size: 14px; transition: color var(--t-fast); }
.footer__col a:hover { color: var(--ih-blue); }
.footer__brand .footer__logo-img { display: block; height: 64px; width: auto; }
.footer__desc { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 18px; max-width: 30ch; line-height: 1.7; }
.footer__statement { padding: 80px 0 56px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); font-size: 12px; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,0.6); margin-left: 24px; }

/* ---------- Forms ---------- */

.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--fn-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ih-text-2);
}
.field input, .field textarea, .field select {
  appearance: none;
  background: #fff;
  border: 1.5px solid var(--ih-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ih-text);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  font-family: var(--fn-b);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ih-blue);
  box-shadow: 0 0 0 4px rgba(0,180,216,0.14);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236A5E52' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Misc utility ---------- */
.pull-quote {
  border-left: 4px solid var(--ih-gold);
  padding-left: 28px;
  font-family: var(--fn-d);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ih-text);
  margin: 36px 0;
  max-width: 60ch;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ih-canvas-2);
  color: var(--ih-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ih-border);
}
.tag.tag--blue { background: var(--ih-blue-tint); color: var(--ih-blue-deeper); border-color: rgba(0,95,117,0.12); }
.tag.tag--gold { background: var(--ih-gold-tint); color: var(--ih-gold-dark); border-color: rgba(158,125,26,0.18); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__phone { display: none; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .pull-quote { font-size: 18px; padding-left: 20px; }
  .nav__cta .btn { padding: 10px 14px; font-size: 13px; }
  .nav__logo-img { height: 40px; }
  .quote-card { padding: 28px 24px; }
}
