:root {
  --ink: #0B1524;
  --slate: #1A2F45;
  --copper: #C2611A;
  --copper-deep: #A34F14;
  --mist: #F2F5F8;
  --paper: #FFFFFF;
  --text: #243041;
  --muted: #5B6778;
  --line: #D7DEE8;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 40px rgba(11, 21, 36, 0.12);
  --topbar-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--mist);
  line-height: 1.55;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--copper);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(194, 97, 26, 0.28);
}

.btn--primary:hover {
  background: var(--copper-deep);
  transform: translateY(-1px);
}

/* ——— Top bar ——— */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  color: #FFFFFF;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.topbar.is-solid {
  background: rgba(11, 21, 36, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(11, 21, 36, 0.25);
}

.topbar__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.topbar__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  cursor: pointer;
}

.topbar__call .icon {
  color: #F0B27A;
}

@media (max-width: 480px) {
  .topbar__phone {
    display: none;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #FFFFFF;
  overflow: hidden;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(11, 21, 36, 0.45) 0%, rgba(11, 21, 36, 0.28) 35%, rgba(11, 21, 36, 0.82) 100%),
    linear-gradient(90deg, rgba(11, 21, 36, 0.55) 0%, rgba(11, 21, 36, 0.15) 55%, rgba(11, 21, 36, 0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 48px) 20px 56px;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 12ch;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  animation: rise-in 0.7s ease both;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  line-height: 1.25;
  max-width: 22ch;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.94);
  animation: rise-in 0.7s ease 0.08s both;
}

.hero__subtitle {
  font-size: 1.05rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  animation: rise-in 0.7s ease 0.16s both;
}

.hero__cta {
  animation: rise-in 0.7s ease 0.24s both;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .hero__brand,
  .hero__title,
  .hero__subtitle,
  .hero__cta {
    animation: none;
  }
}

/* ——— Trust ——— */
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
}

.trust__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px 20px;
  }
}

/* ——— Services ——— */
.services {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.services__intro {
  margin-bottom: 28px;
  max-width: 36rem;
}

.services__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.services__lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(11, 21, 36, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--slate);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__media--tone-steel {
  background: linear-gradient(145deg, #1A2F45, #2F526E);
}

.card__media--tone-wood {
  background: linear-gradient(145deg, #4A3424, #8A6345);
}

.card__media--tone-stone {
  background: linear-gradient(145deg, #3D4654, #6E7A8B);
}

.card__media--tone-mist {
  background: linear-gradient(145deg, #2C3E50, #5D6D7E);
}

.card__glyph {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.88);
}

.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 6px;
}

.card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 18px 20px;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.card__call {
  width: 100%;
  margin-bottom: 6px;
}

.card__email {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ——— Footer ——— */
.footer {
  background:
    radial-gradient(1200px 400px at 10% -20%, rgba(194, 97, 26, 0.18), transparent 55%),
    linear-gradient(180deg, #122033 0%, var(--ink) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.footer__panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .footer__panel {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer__tagline {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.footer__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F0B27A;
  margin-bottom: 14px;
}

.footer__link {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #FFFFFF;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240, 178, 122, 0.55);
}

.footer__link:hover {
  color: #F0B27A;
}

.footer__area {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer__credit a {
  color: #F0B27A;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Mobile bar ——— */
.mobile-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  body {
    padding-bottom: 78px;
  }
}

.mobile-bar__call,
.mobile-bar__email {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  min-height: 48px;
}

.mobile-bar__call {
  background: var(--copper);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
}

.mobile-bar__email {
  border: 1.5px solid var(--slate);
  color: var(--slate);
  background: #FFFFFF;
}

/* ——— Contact modal ——— */
body.modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 36, 0.62);
}

.contact-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-soft);
  outline: none;
  animation: rise-in 0.25s ease both;
}

.contact-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-modal__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 20px;
  padding-right: 36px;
}

.contact-modal__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-modal__phone,
.contact-modal__email {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  word-break: break-word;
}

.contact-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.contact-modal__call {
  width: 100%;
}

.contact-modal__mail {
  width: 100%;
  background: #FFFFFF;
  color: var(--slate);
  border: 1.5px solid var(--slate);
}

.contact-modal__mail:hover {
  background: var(--mist);
}
