/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1a2744;
  --navy-dark: #111c33;
  --steel: #2c3e5a;
  --red: #c0392b;
  --red-hover: #e74c3c;
  --white: #ffffff;
  --light-gray: #f4f5f7;
  --mid-gray: #dde1e6;
  --text: #2c3e50;
  --text-light: #6c7a89;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul {
  list-style: none;
}

/* ===== HEADER & NAV ===== */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  border-bottom: 2px solid var(--red);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>') repeat;
  background-size: 200px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

.hero-line {
  width: 80px;
  height: 4px;
  background: var(--red);
  margin: 1.5rem auto 0;
  border-radius: 2px;
  position: relative;
}

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 2rem;
}

.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-hero .hero-line {
  margin-top: 1rem;
}

/* ===== CARDS (home page) ===== */
.cards-section {
  padding: 4rem 0;
  background: var(--light-gray);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.card-link:hover {
  color: var(--red-hover);
}

.card-link::after {
  content: ' →';
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 4rem 0;
}

.about-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.about-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  line-height: 1.8;
}

/* ===== SOCIAL ===== */
.social-section {
  padding: 2rem 0 3rem;
  text-align: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1877f2;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}

.social-link:hover {
  background: #1565c0;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem 2rem;
  margin-top: auto;
  font-size: 0.9rem;
}

/* ===== CONTENT SECTIONS (subpages) ===== */
.content-section {
  padding: 3rem 0 4rem;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.content-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
}

/* ===== EQUIPMENT LIST ===== */
.equipment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.equipment-list li {
  background: var(--light-gray);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--steel);
  border: 1px solid var(--mid-gray);
}

/* ===== SERVICES LIST ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.services-list li {
  padding: 0.75rem 1rem;
  padding-left: 2rem;
  position: relative;
  background: var(--light-gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* ===== IMAGE GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.gallery img:hover {
  transform: scale(1.02);
}

/* ===== CONTACT PAGE ===== */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.contact-item a {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--red);
}

.contact-item span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== SALES PAGE ===== */
.machine-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.machine-card-body {
  padding: 2rem;
}

.machine-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.machine-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.machine-specs li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}

.machine-specs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.machine-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  color: var(--red);
  font-weight: 700;
  margin-top: 0.5rem;
}

.machine-price span {
  font-size: 1rem;
  color: var(--text-light);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

.machine-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0 0.5rem 0.5rem;
}

.machine-gallery.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.machine-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform var(--transition);
}

.machine-gallery img:hover {
  transform: scale(1.03);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .machine-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .machine-gallery.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header .container {
    padding: 0 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .machine-gallery,
  .machine-gallery.cols-3 {
    grid-template-columns: 1fr;
  }

  .machine-card-body {
    padding: 1.25rem;
  }

  .machine-specs {
    grid-template-columns: 1fr;
  }
}
