/* Smart Horizonhub — contemporary structure + creative detail */
:root {
  --ink: #15202b;
  --ink-soft: #3a4a5c;
  --paper: #eef2f6;
  --paper-deep: #e2e8ef;
  --surface: #ffffff;
  --teal: #0d7377;
  --teal-deep: #095456;
  --gold: #c9922a;
  --gold-soft: #e8c57a;
  --line: rgba(21, 32, 43, 0.12);
  --shadow: 0 18px 40px rgba(21, 32, 43, 0.08);
  --radius: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 115, 119, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 146, 42, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 242, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background:
    radial-gradient(circle at 70% 30%, var(--gold) 0 28%, transparent 29%),
    linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 100%);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--teal-deep);
  color: #fff !important;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-tag {
  color: rgba(255, 255, 255, 0.55);
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-address {
  white-space: pre-wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(21, 32, 43, 0.88) 0%, rgba(21, 32, 43, 0.55) 45%, rgba(13, 115, 119, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  color: #fff;
  max-width: 36rem;
  animation: rise-in 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 0.95;
}

.hero-brand span {
  display: block;
  color: var(--gold-soft);
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin-bottom: 0;
}

.hero .btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

@keyframes hero-drift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fade-up 0.7s var(--ease) both;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 38rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

/* Split / editorial layouts */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

.frame {
  position: relative;
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.45;
}

/* Offer list — not cards unless interaction needs them */
.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}

.offer-row:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.offer-row img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.offer-row h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.offer-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.offer-arrow {
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.5rem;
}

/* Service grid on listing */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

.service-item {
  display: grid;
  gap: 1rem;
}

.service-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-item h3 a {
  text-decoration: none;
  color: var(--ink);
}

.service-item h3 a:hover {
  color: var(--teal);
}

/* Quote / reviews */
.quote-stack {
  display: grid;
  gap: 2rem;
}

.quote {
  padding: 1.75rem 0 1.75rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: transparent;
}

.quote p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.quote cite span {
  display: block;
  font-weight: 400;
  margin-top: 0.15rem;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.rate-note {
  background: var(--surface);
  padding: 1.5rem;
  border-left: 3px solid var(--teal);
  margin: 2rem 0;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-teaser {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.blog-teaser img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-teaser time {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

.blog-teaser h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.5rem;
  color: var(--ink);
}

.blog-teaser:hover h2 {
  color: var(--teal);
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

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

.field-error {
  color: #9b2c2c;
  font-size: 0.85rem;
  display: none;
}

.form-row.has-error .field-error {
  display: block;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #9b2c2c;
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(13, 115, 119, 0.12);
  color: var(--teal-deep);
}

.form-status.is-error {
  display: block;
  background: rgba(155, 44, 44, 0.1);
  color: #9b2c2c;
}

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

.contact-aside {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-aside h2 {
  font-size: 1.15rem;
}

.contact-aside p {
  font-size: 0.98rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lead {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.page-hero-media {
  margin-top: 2rem;
}

.page-hero-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--teal);
  margin-bottom: 0.65rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  max-width: 420px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise-in 0.5s var(--ease);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.cookie-banner a {
  color: var(--gold-soft);
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-actions button {
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-accept {
  background: var(--teal);
  color: #fff;
}

.cookie-reject {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Legal prose */
.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(13, 115, 119, 0.08);
}

.inline-error {
  background: rgba(155, 44, 44, 0.1);
  color: #9b2c2c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 0.75rem 0;
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

/* Story block on home */
.story-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 4rem 0;
  margin: 1rem 0;
}

.story-band h2 {
  color: #fff;
}

.story-band .section-label {
  color: var(--gold-soft);
}

.story-band a {
  color: var(--gold-soft);
}

/* Utility */
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 900px) {
  .split,
  .split-reverse,
  .contact-grid,
  .service-grid,
  .blog-teaser,
  .offer-row {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .offer-row img {
    width: 100%;
    height: 180px;
  }

  .offer-arrow {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}
