:root {
  --ink: #13251e;
  --deep-green: #1f4b35;
  --forest: #2e6e47;
  --mist: #f1f5f2;
  --card: #ffffff;
  --line: #d9e5de;
  --accent: #d4a64a;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 12%, rgba(31, 75, 53, 0.2), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(212, 166, 74, 0.2), transparent 34%),
    linear-gradient(150deg, #edf3ef, #f7faf8);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  backdrop-filter: blur(10px);
  background: rgba(241, 245, 242, 0.78);
  border-bottom: 1px solid rgba(19, 37, 30, 0.08);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
}

nav {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

main {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 6.25rem auto 4rem;
  display: grid;
  gap: 1.25rem;
}

.hero {
  background:
    linear-gradient(135deg, rgba(31, 75, 53, 0.95), rgba(21, 47, 34, 0.95)),
    url("./assets/motori-brochure-cover.jpg") center / 28% no-repeat;
  color: #f6faf7;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(19, 37, 30, 0.22);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.75rem;
  color: #d7eadf;
}

h1,
h2,
h3 {
  font-family: "Copperplate", "Avenir Next Condensed", "Gill Sans", sans-serif;
  letter-spacing: 0.01em;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  max-width: 18ch;
}

.hero-copy {
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #102018;
}

.button.ghost {
  border: 1px solid rgba(246, 250, 247, 0.35);
  color: #f6faf7;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 8px 24px rgba(19, 37, 30, 0.05);
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.comparison-table th,
.comparison-table td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.comparison-table thead th {
  text-align: center;
  font-size: clamp(0.82rem, 1.15vw, 0.96rem);
  font-family: inherit;
}

.comparison-table thead th:nth-child(2),
.comparison-table tbody td:nth-child(2) {
  background: #1f4b35;
  color: #f2f7f3;
  border-right: 10px solid transparent;
  background-clip: padding-box;
}

.comparison-table thead th:nth-child(3),
.comparison-table tbody td:nth-child(3) {
  background: #d8ddd9;
  color: #1c231f;
  border-left: 10px solid transparent;
  background-clip: padding-box;
}

.comparison-table thead th:nth-child(2) {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.comparison-table tbody tr:last-child td:nth-child(2) {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.comparison-table thead th:nth-child(3) {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.comparison-table tbody tr:last-child td:nth-child(3) {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.comparison-table thead th:first-child,
.comparison-table tbody th {
  background: transparent;
}

.comparison-table tbody th {
  width: 26%;
  text-align: left;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-family: "Copperplate", "Avenir Next Condensed", "Gill Sans", sans-serif;
}

.comparison-table tbody td {
  width: 37%;
  text-align: center;
  font-size: clamp(0.82rem, 1.15vw, 0.96rem);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

.note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--accent);
  background: #fcf8ef;
}

.about-jackson {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1.2rem;
  align-items: center;
}

.about-jackson-photo-wrap {
  margin: 0;
}

.about-jackson-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(19, 37, 30, 0.12);
}

.about-jackson-copy p {
  margin-top: 0;
}

.contact-card {
  display: grid;
  gap: 0.15rem;
  background: #f7faf8;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.contact-panel {
  background:
    linear-gradient(135deg, rgba(31, 75, 53, 0.95), rgba(21, 47, 34, 0.95)),
    url("./assets/motori-brochure-cover.jpg") center right 2rem / 20% no-repeat;
  color: #f6faf7;
  border: 1px solid rgba(246, 250, 247, 0.18);
}

.contact-panel h2,
.contact-panel p {
  color: #f6faf7;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
  max-width: 620px;
  margin-top: 0.6rem;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(246, 250, 247, 0.35);
  background: rgba(246, 250, 247, 0.08);
  color: #f6faf7;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(246, 250, 247, 0.72);
}

.contact-form .button {
  margin-top: 0.55rem;
  border: none;
  cursor: pointer;
}

.book-time {
  margin-top: 1rem;
}

.book-time a {
  color: #f3d58e;
  font-weight: 700;
}

.site-footer {
  text-align: center;
  color: #3a4b42;
  padding: 0 1rem 2.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
  }

  .hero {
    background-size: 45%;
    background-position: right 1rem top 1rem;
  }

  .contact-panel {
    background-size: 32%;
    background-position: right 1rem top 1rem;
  }

  .comparison-table {
    min-width: 640px;
  }

  .about-jackson {
    grid-template-columns: 1fr;
  }

  .about-jackson-photo-wrap {
    max-width: 220px;
  }
}
