:root {
  --maroon: #7a1f2a;
  --maroon-2: #a2333f;
  --ink: #141518;
  --bg: #0d0e10;
  --muted: #9aa3ad;
  --card: #15171c;
  --ring: #252832;
  --white: #ffffff;
  --brand: var(--maroon);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #eee;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #0d0e10ee, #0d0e10cc 50%, #0d0e1000);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid #1f222b;
}

.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.brand .name {
  display: flex;
  flex-direction: column;
}

.brand .title {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand .tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap; /* Allow menu items to wrap */
}

.menu a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap; /* Prevent menu items from breaking words */
}

.menu a:hover {
  border-color: #2a2f3a;
  background: #14161b;
}

.cta {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid #902a37;
  box-shadow: 0 8px 24px rgba(122, 31, 42, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 120px 0 90px;
  background: radial-gradient(1500px 500px at 50% -10%, #1b1d24 10%, transparent 60%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/hero-abrasives.jpg") center/cover no-repeat;
  filter: grayscale(0.2) contrast(0.95) brightness(0.9);
  opacity: 0.28;
}

.hero h1 {
  /* clamp(min, preferred, max) */
  font-size: clamp(2.2rem, 5vw, 3rem); /* Adjusted for better scaling */
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 900;
}

.hero p.lead {
  max-width: 780px;
  color: #c6cbd3;
  margin-bottom: 26px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.badges .pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2a2f3a;
  background: #121318;
  color: #b5bcc6;
  font-size: 0.85rem;
  white-space: nowrap; /* Prevent pills from breaking */
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #2a2f3a;
  background: #121318;
  color: #e7e9ee;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  font-weight: 600;
}

.btn.primary {
  background: var(--brand);
  border-color: #962c39;
  box-shadow: 0 10px 30px rgba(122, 31, 42, 0.35);
}

.btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.ghost:hover {
  background: #171a20;
  border-color: #3b4150;
}

/* --- General Section Styles --- */
.section {
  padding: 70px 0;
}

.section h2 {
  /* clamp(min, preferred, max) */
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Adjusted for better scaling */
  margin: 0 0 12px;
  font-weight: 900;
}

.section p.sub {
  color: #b7bec8;
  margin: 0 0 24px;
  max-width: 900px; /* Limit sub text width for readability */
}

/* --- Product Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 4; /* Default: 3 columns */
  background: linear-gradient(180deg, #12141a, #0f1014);
  border: 1px solid #20232d;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 200px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.card .thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1014;
  padding: 8px;
  overflow: hidden;
}

.card .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.card .body {
  padding: 16px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3ad;
  margin-bottom: 6px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card p {
  font-size: 15px; /* Slightly smaller for card text */
  line-height: 1.6;
  color: #b6bdc7;
}

/* --- Brands Section --- */
.brands {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
  font-weight: 900;
  text-transform: uppercase;
  height: 140px;
  border-radius: 18px;
  text-align: center;
  grid-column: span 6; /* Default: 2 columns */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-tile.deerfos {
  background: linear-gradient(135deg, #102012, #071b0d);
  color: #6cff7d;
}

.brand-tile.kuhle {
  background: linear-gradient(135deg, #0d1320, #0b1522);
  color: #9cb8ff;
}

.brand-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Contact Section --- */
.contact-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px; /* Increased gap for better separation */
}

.form {
  grid-column: span 7; /* Default: 7 columns */
  background: #12141a;
  border: 1px solid #20232d;
  border-radius: 18px;
  padding: 24px; /* Increased padding */
}

.details {
  grid-column: span 5; /* Default: 5 columns */
  background: #12141a;
  border: 1px solid #20232d;
  border-radius: 18px;
  padding: 24px; /* Increased padding */
  font-size: 16px;
  line-height: 1.5;
}

.input,
textarea {
  width: 100%;
  padding: 14px 16px; /* Slightly larger padding */
  border-radius: 12px;
  border: 1px solid #2a2f3a;
  background: #0f1014;
  color: #e9ebf2;
  margin-bottom: 14px; /* Increased margin-bottom */
  outline: none;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.input::placeholder,
textarea::placeholder {
  color: #8c939d;
}

.input:focus,
textarea:focus {
  border-color: #3b4150;
  box-shadow: 0 0 0 2px rgba(122, 31, 42, 0.2);
}

.form .sub {
  font-size: 1.25rem; /* Larger sub text */
  font-weight: 600;
  margin-bottom: 24px; /* Increased margin */
}

.wa-btn {
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px; /* Matched with other buttons */
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease, filter 0.2s ease;
}

.wa-btn:hover {
  filter: brightness(1.08);
}

/* --- Footer --- */
footer {
  padding: 30px 0;
  color: #a8b1bb;
  border-top: 1px solid #191d24;
  margin-top: 40px;
  text-align: center; /* Center footer text */
  font-size: 0.9rem;
}

.map-embed iframe {
  width: 100%;
  height: 300px; /* Default height */
  border: 0;
  border-radius: 12px;
  display: block;
}

/* --- About Badges (Pill Boxes) --- */
.note {
  font-size: 0.95rem;
  color: #9aa3ad;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.note .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2a2f3a;
  background: #121318;
  color: #b5bcc6;
  letter-spacing: 0.3px;
  white-space: nowrap;
  font-weight: 500;
}

/* --- Media Queries for Responsiveness --- */

/* Tablet and smaller desktops */
@media (max-width: 1200px) {
  .container {
    max-width: 960px; /* Slightly tighter container */
  }
}

/* Smaller tablets, larger phones (landscape) */
@media (max-width: 980px) {
  .card {
    grid-column: span 6; /* 2 columns for product cards */
  }
  .contact-wrap {
    gap: 18px; /* Slightly reduced gap */
  }
}

/* Medium tablets and large phones */
@media (max-width: 900px) {
  .nav .inner {
    padding: 10px 0;
  }
  .menu {
    gap: 10px;
    margin-top: 10px; /* Add some space below logo */
  }
  .hero {
    padding: 90px 0 70px; /* Adjusted padding */
  }
  .section {
    padding: 60px 0; /* Adjusted section padding */
  }
  .form {
    grid-column: span 12; /* Contact form takes full width */
    padding: 20px;
  }
  .details {
    grid-column: span 12; /* Contact details take full width */
    padding: 20px;
  }
  .details h2 {
    margin-top: 24px; /* Space between details and form */
  }
  .map-embed iframe {
    height: 250px; /* Shorter map on smaller screens */
  }
}

/* Smaller phones (portrait) */
@media (max-width: 640px) {
  .nav .inner {
    flex-direction: column; /* Stack logo and menu */
    align-items: flex-start;
  }
  .brand {
    width: 100%; /* Make brand take full width */
    justify-content: space-between; /* Push logo and name apart if needed */
  }
  .brand img {
    height: 48px; /* Slightly smaller logo */
  }
  .brand .title {
    font-size: 1.05rem; /* Smaller title */
  }
  .brand .tag {
    font-size: 0.7rem; /* Smaller tag */
  }
  .menu {
    flex-direction: column; /* Stack menu items vertically */
    gap: 8px;
    width: 100%; /* Menu takes full width */
    margin-top: 15px; /* More space below brand */
  }
  .menu a {
    width: 100%; /* Make menu links full width */
    text-align: center;
    padding: 10px 0;
  }
  .cta {
    width: 100%; /* CTA button also full width */
    text-align: center;
    padding: 12px 0;
  }

  .hero {
    padding: 70px 0 50px; /* Even less padding */
  }
  .actions {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
  .btn {
    flex: 1; /* Buttons fill available width */
    width: 100%;
    justify-content: center;
  }
  .card {
    grid-column: span 12; /* Product cards take full width */
  }
  .brand-tile {
    grid-column: span 12; /* Brand tiles take full width */
    height: 100px; /* Shorter brand tiles */
  }
  .section h2 {
    font-size: 1.7rem; /* Smaller headings */
  }
  .form .sub {
    font-size: 1.1rem; /* Smaller contact sub text */
  }
  .map-embed iframe {
    height: 200px; /* Even shorter map */
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 15px; /* Reduce horizontal padding */
  }
  .hero {
    padding: 60px 0 40px;
  }
  .section {
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .brand img {
    height: 40px;
  }
  .brand .title {
    font-size: 0.9rem;
  }
  .brand .tag {
    font-size: 0.65rem;
  }
  .badges {
    gap: 8px;
    margin-bottom: 20px;
  }
  .badges .pill {
    font-size: 0.75rem;
    padding: 5px 9px;
  }
  .card .body {
    padding: 12px;
  }
  .card h3 {
    font-size: 18px;
  }
  .card p {
    font-size: 14px;
  }
  .contact-wrap {
    gap: 12px;
  }
  .form,
  .details {
    padding: 16px;
  }
  .input,
  textarea {
    padding: 12px 14px;
    margin-bottom: 10px;
  }
}
