﻿/* ============================================
   style.css – Frank Hydraulics Global Styles
   Theme: Deep Red & Graphite
   Version: 1.0
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #b22234;
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* --- Color Variables --- */
:root {
  --ink: #111111;
  --graphite: #2c2c2c;
  --deep-red: #b22234;
  --red-hover: #8b1a1a;
  --soft: #f5f5f5;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: 2.25rem; margin-bottom: 0.5em; }
h2 { font-size: 1.875rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--deep-red);
  color: var(--white);
  border-color: var(--deep-red);
}

.btn-primary:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--deep-red);
  border-color: var(--deep-red);
}

.btn-secondary:hover {
  background-color: var(--deep-red);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Topbar --- */
.topbar {
  background-color: var(--ink);
  color: #ccc;
  font-size: 0.825rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-links a {
  color: #ccc;
  transition: color 0.2s;
}

.topbar-links a:hover {
  color: var(--white);
}

.email-text {
  color: #ccc;
}

/* --- Header / Navigation --- */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--deep-red);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 4px;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.logo-name {
  color: var(--deep-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links > a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--graphite);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--deep-red);
  border-bottom-color: var(--deep-red);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-caret {
  font-size: 0.7rem;
  margin-left: 4px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 240px;
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--graphite);
  transition: background 0.2s;
}

.nav-dropdown a strong {
  display: block;
  font-weight: 600;
}

.nav-dropdown a span {
  display: block;
  font-size: 0.775rem;
  color: var(--muted);
}

.nav-dropdown a:hover {
  background-color: var(--soft);
}

.nav-item.has-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--graphite);
}

.lang-code {
  font-weight: 600;
}

.lang-label {
  color: var(--muted);
}

.lang-caret {
  font-size: 0.65rem;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 160px;
  z-index: 250;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--graphite);
  transition: background 0.2s;
}

.lang-menu button:hover {
  background-color: var(--soft);
}

.lang-switch:hover .lang-menu,
.lang-btn[aria-expanded="true"] + .lang-menu {
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* --- Hero Section (Home) --- */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 70%);
  color: var(--white);
  padding: 72px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.0625rem;
  color: #ccc;
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 100%);
  color: var(--white);
  padding: 56px 0 48px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.125rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: #bbb;
  font-size: 1.05rem;
  max-width: 720px;
}

/* --- Sections --- */
.section {
  padding: 56px 0;
}

.features-section {
  padding: 48px 0;
  background-color: var(--soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-item strong {
  display: block;
  font-size: 1.075rem;
  margin-bottom: 8px;
  color: var(--deep-red);
}

.feature-item span {
  font-size: 0.925rem;
  color: var(--graphite);
  line-height: 1.6;
}

/* --- Specs Table --- */
.specs-section {
  padding: 48px 0;
}

.specs-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.specs-table th {
  background-color: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.specs-table tr:nth-child(even) td {
  background-color: #fafafa;
}

.specs-table tr:hover td {
  background-color: #f0f0f0;
}

.specs-table a {
  color: var(--deep-red);
  font-weight: 500;
}

.specs-table a:hover {
  text-decoration: underline;
}

.specs-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- Series Cards --- */
.series-section {
  padding: 48px 0;
  background-color: var(--soft);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.series-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.series-card h3 {
  color: var(--deep-red);
  margin-bottom: 8px;
}

.series-card p {
  font-size: 0.8875rem;
  color: var(--graphite);
  margin-bottom: 12px;
}

.series-link {
  font-size: 0.8625rem;
  font-weight: 500;
  color: var(--deep-red);
}

/* --- Trust Bar (Home) --- */
.trust-bar {
  padding: 40px 0;
  background-color: var(--ink);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.trust-item {
  padding: 16px;
}

.trust-item img {
  margin: 0 auto 12px;
}

.trust-item h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-item p {
  color: #aaa;
  font-size: 0.8375rem;
}

/* --- Category Grid (Home) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.category-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card h3 {
  padding: 16px 16px 8px;
  font-size: 1.025rem;
}

.category-card p {
  padding: 0 16px 16px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* --- Brand Logos (Home) --- */
.brand-logos {
  padding: 40px 0;
  background-color: var(--soft);
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 20px;
}

.brand-grid img {
  max-height: 50px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.brand-grid img:hover {
  opacity: 1;
}

/* --- CTA Section --- */
.cta-section {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--deep-red) 0%, #8b1a1a 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 1.725rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: #f0d0d0;
  font-size: 1.0375rem;
  max-width: 640px;
  margin: 0 auto 24px;
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--deep-red);
  border-color: var(--white);
}

.cta-section .btn-primary:hover {
  background-color: transparent;
  color: var(--white);
}

/* --- Footer --- */
.footer {
  background-color: var(--ink);
  color: #ccc;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer h3 {
  color: var(--white);
  font-size: 1.0875rem;
  margin-bottom: 12px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  color: #aaa;
  margin-bottom: 6px;
  font-size: 0.89rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.footer p {
  color: #777;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
}

/* --- News Card --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.news-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.news-body {
  padding: 20px;
}

.news-body time {
  font-size: 0.81rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  background-color: var(--deep-red);
  color: var(--white);
  font-size: 0.76rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 8px;
}

.news-body h2 {
  font-size: 1.175rem;
  margin: 10px 0 8px;
}

.news-body h2 a {
  color: var(--ink);
}

.news-body h2 a:hover {
  color: var(--deep-red);
}

.news-body p {
  font-size: 0.92rem;
  color: var(--graphite);
  line-height: 1.6;
}

.news-footer {
  margin-top: 16px;
}

.read-more {
  font-weight: 500;
  color: var(--deep-red);
  font-size: 0.91rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* --- Loading Spinner --- */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--deep-red);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--graphite);
}

/* --- Product Detail Layout --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 32px 0;
}

.product-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-info h2 {
  font-size: 1.425rem;
  margin-bottom: 12px;
}

.product-info ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.product-info ul li {
  margin-bottom: 6px;
  font-size: 0.94rem;
}

/* --- About Page --- */
.about-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.about-team img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.cert-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 580px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.93rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.96rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--deep-red);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image {
    order: -1;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .topbar .container {
    flex-direction: column;
    text-align: center;
  }
  .topbar-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  h1 { font-size: 1.675rem; }
  h2 { font-size: 1.325rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .hero {
    padding: 48px 0;
  }
  .section {
    padding: 36px 0;
  }
}