/* ETHERSAFE CAPITAL — warm cream + wine accent, card-forward layout */
:root {
  --bg: #f4efe6;
  --surface: #fffdf8;
  --ink: #1c1612;
  --muted: #5e564d;
  --line: rgba(28, 22, 18, 0.1);
  --wine: #6b2d3c;
  --wine-dark: #4a1f2a;
  --gold: #c9a227;
  --forest: #2f4a3c;
  --shadow: 0 22px 50px rgba(28, 22, 18, 0.1);
  --radius: 6px;
  --radius-lg: 14px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--wine-dark);
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.site-logo img {
  display: block;
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--wine-dark);
}

/* Hero carousel — 3 slides, per-slide copy */
.hero {
  position: relative;
  margin: 1.25rem auto 0;
  width: min(var(--max), calc(100% - 2.5rem));
  min-height: min(640px, 88vh);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 720ms ease;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(74, 31, 42, 0.78) 0%,
    rgba(74, 31, 42, 0.35) 42%,
    rgba(28, 22, 18, 0.55) 100%
  );
}

.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 640px;
  color: #fff;
}

.hero__slide:not(.is-active) .hero__caption {
  opacity: 0;
  pointer-events: none;
}

.hero__slide.is-active .hero__caption {
  opacity: 1;
  transition: opacity 480ms ease 120ms;
}

.hero__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.35rem;
  font-size: clamp(0.98rem, 1.55vw, 1.12rem);
  opacity: 0.92;
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: #1c1612;
  border-color: rgba(201, 162, 39, 0.4);
}

.btn--primary:hover {
  background: #ddb63a;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero__controls {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__arrow {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero__dots {
  display: flex;
  gap: 0.45rem;
  margin-left: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* Sections */
.section {
  padding: clamp(3rem, 5.5vw, 4.75rem) 0;
}

.section__head {
  margin-bottom: 1.5rem;
}

.section__head--center {
  text-align: center;
}

.section__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--wine-dark);
}

/* Intro split */
.intro-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.intro-split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 280px;
}

.intro-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-split__text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.intro-split__text p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-split__text p:last-child {
  margin-bottom: 0;
}

/* Product grid — fixed 4 columns desktop */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.card__desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Testimonials */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: var(--shadow);
}

.review__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.review__name {
  font-weight: 700;
}

.review__role {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.review__stars {
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.review__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Message split */
.split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 1.15rem;
  align-items: stretch;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 220px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.form-panel {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field__label {
  font-size: 0.88rem;
  color: var(--muted);
}

.field__input,
.field__textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0.78rem 0.9rem;
  font: inherit;
  background: #fff;
}

.field__textarea {
  resize: vertical;
  min-height: 140px;
}

.field__input:focus,
.field__textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.45);
  border-color: transparent;
}

.form-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(244, 239, 230, 0.9));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0 1.75rem;
  align-items: start;
}

.footer__logo img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 0.65rem;
}

.footer__desc {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.95rem;
}

.footer__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wine-dark);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__list a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
}

.footer__list a:hover {
  border-bottom-color: rgba(107, 45, 60, 0.35);
  color: var(--wine-dark);
}

.footer__social {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 45, 60, 0.08);
  border: 1px solid var(--line);
  color: var(--wine-dark);
  text-decoration: none;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social:hover {
  background: rgba(201, 162, 39, 0.2);
}

.footer__bottom {
  padding: 1rem 0 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* About page */
.about-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.about-hero-img img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.about-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-stack {
  display: grid;
  gap: 1.25rem;
}

/* Contact page */
.contact-banner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 1.25rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-banner img {
  width: 100%;
  display: block;
  max-height: 340px;
  object-fit: cover;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-top: 0.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--wine-dark);
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-card dd {
  margin: 0;
  font-size: 1.02rem;
}

.contact-card a {
  word-break: break-word;
}

.contact-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-media img {
  width: 100%;
  display: block;
  min-height: 280px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .intro-split,
  .split,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__controls {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
