/* 2297 ENTERPRISE CORP — warm ivory + burgundy (Long Island enterprise) */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #e8edf2;
  --ink: #1e293b;
  --muted: #5c6b7a;
  --accent: #1e3a5f;
  --accent-2: #e8a838;
  --accent-light: #dce8f4;
  --line: rgba(30, 41, 59, 0.12);
  --shadow: 0 16px 40px rgba(30, 41, 59, 0.1);
  --radius: 6px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 90% -10%, rgba(30, 58, 95, 0.08), transparent 55%), var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
.ec-display {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
}

/* Header */
.ec-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 248, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.ec-header__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.ec-logo img {
  height: 42px;
  width: auto;
}

.ec-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.ec-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.ec-nav a:hover,
.ec-nav a.is-active {
  color: var(--accent);
}

.ec-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--accent);
}

@media (max-width: 768px) {
  .ec-menu-btn {
    display: inline-flex;
  }
  .ec-nav {
    position: absolute;
    right: 1rem;
    top: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .ec-nav.is-open {
    display: block;
  }
}

.ec-main {
  padding-bottom: 3rem;
}

.ec-main--contained {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* Hero carousel — full bleed */
.ec-hero {
  position: relative;
  min-height: min(680px, 88vh);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 3rem;
}

.ec-hero__slides {
  position: absolute;
  inset: 0;
}

.ec-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 680ms ease;
}

.ec-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.ec-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 58, 95, 0.4) 55%, rgba(15, 23, 42, 0.72) 100%);
}

.ec-hero__inner {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(5rem, 8vw, 6.5rem);
  color: #faf7f2;
}

.ec-hero__panes {
  position: relative;
  min-height: 10rem;
  max-width: 640px;
}

.ec-hero__pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}

.ec-hero__pane.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.ec-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent-2);
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.ec-hero__pane h1,
.ec-hero__pane h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.ec-lead {
  margin: 0 0 1.4rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  opacity: 0.92;
  max-width: 48ch;
}

.ec-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  font-family: inherit;
}

.ec-btn:hover {
  transform: translateY(-1px);
}

.ec-btn--solid {
  background: var(--accent-2);
  color: #fff;
}

.ec-btn--solid:hover {
  background: #c98545;
}

.ec-btn--line {
  color: #faf7f2;
  border-color: rgba(250, 247, 242, 0.45);
  background: rgba(44, 24, 16, 0.25);
}

.ec-btn--line:hover {
  background: rgba(44, 24, 16, 0.45);
}

.ec-btn--burgundy {
  background: var(--accent);
  color: #f8fafc;
}

.ec-btn--burgundy:hover {
  background: #2a5080;
}

.ec-hero__prev,
.ec-hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(250, 247, 242, 0.3);
  background: rgba(44, 24, 16, 0.4);
  color: #faf7f2;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.ec-hero__prev { left: 1rem; }
.ec-hero__next { right: 1rem; }

.ec-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.4rem;
}

.ec-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 0;
  background: rgba(250, 247, 242, 0.45);
  cursor: pointer;
  padding: 0;
}

.ec-hero__dot.is-active {
  background: var(--accent-2);
  width: 24px;
}

@media (max-width: 640px) {
  .ec-hero__prev,
  .ec-hero__next {
    display: none;
  }
}

/* Sections */
.ec-section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 3.5rem;
}

.ec-section__head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.ec-section__head .ec-kicker {
  color: var(--accent);
}

.ec-section__head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0.35rem 0 0;
}

/* Product grid — fixed 4 columns */
.ec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ec-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.ec-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.ec-card:hover .ec-card__img-wrap img {
  transform: scale(1.04);
}

.ec-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}

.ec-card__body h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.ec-card__body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.ec-card--filler {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 992px) {
  .ec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ec-card--filler {
    display: none;
  }
}

@media (max-width: 520px) {
  .ec-grid {
    grid-template-columns: 1fr;
  }
}

/* Intro split */
.ec-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.ec-intro__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ec-intro__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.ec-intro__copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 0.4rem 0 1rem;
}

.ec-intro__copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .ec-intro {
    grid-template-columns: 1fr;
  }
}

/* Reviews */
.ec-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ec-review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.ec-review__head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ec-review__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.ec-review__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.ec-review__role {
  font-size: 0.8rem;
  color: var(--muted);
}

.ec-review__stars {
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.ec-review__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .ec-reviews {
    grid-template-columns: 1fr;
  }
}

/* Split message form */
.ec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ec-split__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.ec-split__form-wrap {
  padding: 1.75rem 1.85rem;
}

.ec-form label {
  display: block;
  margin-bottom: 0.85rem;
}

.ec-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.ec-form input,
.ec-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
}

.ec-form input:focus,
.ec-form textarea:focus {
  outline: 2px solid var(--accent-light);
  border-color: var(--accent);
}

.ec-form__hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
}

@media (max-width: 768px) {
  .ec-split {
    grid-template-columns: 1fr;
  }
  .ec-split__media img {
    min-height: 220px;
  }
}

/* Footer */
.ec-footer {
  background: var(--accent);
  color: #dce8f4;
  margin-top: 1rem;
}

.ec-footer a {
  color: #dce8f4;
  text-decoration: none;
  opacity: 0.92;
}

.ec-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.ec-footer__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 1.75rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2rem;
}

.ec-footer__brand p {
  font-size: 0.9rem;
  opacity: 0.88;
  max-width: 36ch;
  margin: 0.75rem 0 1rem;
}

.ec-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  color: var(--accent-2);
}

.ec-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-footer li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.ec-social {
  display: flex;
  gap: 0.65rem;
}

.ec-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 232, 244, 0.35);
  border-radius: var(--radius);
}

.ec-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ec-footer__base {
  border-top: 1px solid rgba(220, 232, 244, 0.2);
  text-align: center;
  padding: 1rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .ec-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* About page */
.ec-page-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ec-page-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.ec-prose {
  max-width: 720px;
  margin: 0 auto;
}

.ec-prose h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0.35rem 0 1rem;
}

.ec-prose p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Contact page */
.ec-contact-banner {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ec-contact-banner img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.ec-contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.ec-contact-split__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ec-contact-split__img img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.ec-contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.ec-contact-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.ec-contact-card dl {
  margin: 0;
}

.ec-contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-top: 1rem;
}

.ec-contact-card dt:first-child {
  margin-top: 0;
}

.ec-contact-card dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

@media (max-width: 768px) {
  .ec-contact-split {
    grid-template-columns: 1fr;
  }
}
