/* ============================================================
   products.css – Product pages, brand pages, news, about, contact
   Frank Hydraulics | 2026
   ============================================================ */

/* ---------- Page Hero (used on product category pages, brand pages, etc.) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Feature Grid (used on product category pages) ---------- */
.features-section {
  padding: 72px 0 48px;
  background: var(--bg);
}
.features-section h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 1.8rem;
  color: var(--ink);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.feature-item {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.feature-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.feature-item span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Specs Table ---------- */
.specs-section {
  padding: 48px 0;
  background: #fff;
}
.specs-section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.8rem;
  color: var(--ink);
}
.specs-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}
.specs-table thead th {
  background: var(--ink);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.specs-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--soft);
  vertical-align: middle;
}
.specs-table tbody tr:hover {
  background: #f9f9f9;
}
.specs-table tbody a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.specs-table tbody a:hover {
  text-decoration: underline;
}
.specs-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Series Cards (Browse by Model) ---------- */
.series-section {
  padding: 48px 0 72px;
  background: var(--bg);
}
.series-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
  color: var(--ink);
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.series-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.series-card h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.series-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.series-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Brand Pages ---------- */
.brand-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 100%);
  color: #fff;
  padding: 54px 0 46px;
  text-align: center;
}
.brand-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.brand-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
}

.brand-table-section {
  padding: 56px 0;
  background: #fff;
}
.brand-table-section h2 {
  text-align: center;
  margin-bottom: 34px;
  font-size: 1.6rem;
  color: var(--ink);
}
.brand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 520px;
}
.brand-table thead th {
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.brand-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--soft);
  vertical-align: middle;
}
.brand-table tbody tr:hover {
  background: #f9f9f9;
}
.brand-table tbody a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.brand-table tbody a:hover {
  text-decoration: underline;
}

/* ---------- About Page ---------- */
.about-story {
  padding: 64px 0;
  background: #fff;
}
.about-story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-story h2 {
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.about-story p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.about-images img:first-child {
  grid-column: 1 / -1;
}

.mission-section {
  padding: 56px 0;
  background: var(--bg);
  text-align: center;
}
.mission-section h2 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.mission-section p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.certificates {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.certificates img {
  height: 70px;
  width: auto;
  opacity: 0.85;
}

/* ---------- Contact Page ---------- */
.contact-section {
  padding: 64px 0;
  background: #fff;
}
.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h2 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.contact-info a {
  color: var(--accent);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* ---------- News Page ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.news-body {
  padding: 24px;
}
.news-body time {
  font-size: 0.84rem;
  color: var(--muted);
  display: inline-block;
  margin-right: 8px;
}
.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.news-body h2 {
  font-size: 1.25rem;
  margin: 12px 0 8px;
  line-height: 1.4;
}
.news-body h2 a {
  color: var(--ink);
  text-decoration: none;
}
.news-body h2 a:hover {
  color: var(--accent);
}
.news-body p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.read-more {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}
.read-more:hover {
  text-decoration: underline;
}

/* ---------- Article Detail (news/article.html) ---------- */
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-body p {
  margin-bottom: 16px;
  line-height: 1.8;
}
.article-body ul {
  margin: 16px 0;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.article-footer {
  margin-top: 32px;
  text-align: center;
}

/* ---------- Product Detail (detail.html) ---------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.product-info h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.product-info p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.product-info ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}
.product-info li {
  margin-bottom: 6px;
  color: var(--muted);
}
.compatible-models {
  margin-top: 32px;
  padding: 20px;
  background: var(--soft);
  border-radius: 8px;
}
.compatible-models h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.compatible-models ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.compatible-models li {
  background: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  border: 1px solid #ddd;
}

/* ---------- CTA Section (used on many pages) ---------- */
.cta-section {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}
.cta-section p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ---------- Loading State ---------- */
.loading {
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 0.96rem; }
  .features-section { padding: 48px 0 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .about-story .container { grid-template-columns: 1fr; }
  .contact-section .container { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: 1fr; }
  .certificates { gap: 16px; }
  .certificates img { height: 50px; }
}