/* ================================
   SOLO METALES — Master Stylesheet
   Industrial Luxe / Global Trade
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --graphite: #111314;
  --steel: #8C9194;
  --copper: #991C2B;
  --copper-dark: #6E1320;
  --off-white: #F4F1EA;
  --paper: #FAF8F3;
  --border: #E4DFD4;
  --muted: #6B6F73;

  --font-display: 'Roboto Condensed', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --header-h: 108px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--copper); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--graphite);
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); text-transform: uppercase; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
p  { font-size: 1.0625rem; color: #2c3033; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--copper);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(17, 19, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo img { height: 88px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  color: var(--off-white);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-text small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.42em;
  color: var(--copper);
  font-weight: 500;
  margin-top: 4px;
}
nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 38px;
  align-items: center;
}
nav.main-nav a {
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width .3s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { width: 100%; }
nav.main-nav a.active { color: var(--copper); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17,19,20,0.85) 0%, rgba(17,19,20,0.55) 50%, rgba(17,19,20,0.35) 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--header-h);
}
.hero-content {
  max-width: 880px;
  animation: fadeUp 1s ease both;
}
.hero h1 {
  color: var(--off-white);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--copper); }
.hero p {
  color: rgba(244,241,234,0.85);
  font-size: 1.25rem;
  max-width: 580px;
  margin-top: 1.75rem;
  font-weight: 300;
}
.hero-meta {
  position: absolute;
  bottom: 60px; left: 0; right: 0;
  z-index: 2;
}
.hero-meta .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 56px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--off-white);
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.6);
  margin-top: 8px;
  display: block;
}
.scroll-cue {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.65);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: absolute;
  right: 40px; bottom: 60px;
  z-index: 2;
}
.scroll-cue::before {
  content: "";
  display: block;
  width: 1px; height: 60px;
  background: var(--copper);
  margin: 0 auto 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--copper);
  color: var(--off-white);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  margin-top: 2rem;
}
.btn:hover { background: var(--copper-dark); color: var(--off-white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--off-white);
}
.btn-outline:hover { background: var(--off-white); color: var(--graphite); }
.btn-dark {
  background: var(--graphite);
  color: var(--off-white);
}
.btn-dark:hover { background: var(--copper); color: var(--off-white); }

/* ===== Page Banner (sub-pages) ===== */
.page-banner {
  background: var(--graphite);
  padding: calc(var(--header-h) + 90px) 0 90px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  top: 0; right: -100px; bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, transparent, rgba(182,106,60,0.15));
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.page-banner .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.page-banner h1 {
  color: var(--off-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.6);
}
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb .sep {
  display: inline-block;
  margin: 0 12px;
  color: var(--copper);
}
.breadcrumb .current { color: var(--copper); }

/* ===== Sections ===== */
section { padding: 120px 0; }
section.tight { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 80px;
}
.section-head.left { text-align: left; margin-left: 0; }

/* ===== Intro Split ===== */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-split .image {
  position: relative;
}
.intro-split .image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}
.intro-split .image::after {
  content: "";
  position: absolute;
  bottom: -24px; right: -24px;
  width: 120px; height: 120px;
  background: var(--copper);
  z-index: -1;
}
.intro-split h2 { margin-bottom: 1.5rem; }
.intro-split p { margin-bottom: 1.25rem; color: #44494d; }

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  aspect-ratio: 4/5;
  cursor: pointer;
}
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s;
  opacity: 0.85;
}
.product-card:hover img { transform: scale(1.06); opacity: 1; }
.product-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,19,20,0.95) 0%, rgba(17,19,20,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  z-index: 2;
}
.product-card .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--copper);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.product-card h3 {
  color: var(--off-white);
  font-size: 1.65rem;
}
.product-card .arrow {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px; height: 44px;
  border: 1px solid rgba(244,241,234,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--off-white);
  transition: all .3s;
  z-index: 3;
}
.product-card:hover .arrow {
  background: var(--copper);
  border-color: var(--copper);
}

/* ===== Capabilities ===== */
.capabilities { background: var(--graphite); color: var(--off-white); }
.capabilities h2 { color: var(--off-white); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(244,241,234,0.1);
}
.cap-item {
  padding: 56px 40px;
  border-right: 1px solid rgba(244,241,234,0.1);
  border-bottom: 1px solid rgba(244,241,234,0.1);
  transition: background .3s;
}
.cap-item:nth-child(3n) { border-right: none; }
.cap-item:hover { background: rgba(182,106,60,0.08); }
.cap-item .icon {
  width: 56px; height: 56px;
  color: var(--copper);
  margin-bottom: 28px;
}
.cap-item h3 {
  color: var(--off-white);
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cap-item p {
  color: rgba(244,241,234,0.7);
  font-size: 0.95rem;
}

/* ===== Detail Items (sub-product pages) ===== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.detail-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 0;
  transition: all .3s;
}
.detail-card:hover {
  border-color: var(--copper);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17,19,20,0.08);
}
.detail-card .ph {
  height: 220px;
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}
.detail-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.detail-card .body { padding: 28px 32px; }
.detail-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.detail-card p { font-size: 0.95rem; color: var(--muted); }

/* ===== CTA Strip ===== */
.cta-strip {
  background: var(--copper);
  padding: 80px 0;
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(244,241,234,0.04) 40px 80px);
  pointer-events: none;
}
.cta-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}
.cta-strip h2 {
  color: var(--off-white);
  font-size: 2.5rem;
  max-width: 600px;
}
.cta-strip .btn-dark { margin-top: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--graphite);
  color: var(--off-white);
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244,241,234,0.1);
}
.footer-grid .brand { color: rgba(244,241,234,0.7); font-size: 0.95rem; max-width: 320px; }
.footer-grid .brand .logo { margin-bottom: 24px; }
.footer-grid h4 {
  color: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--font-display);
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a {
  color: rgba(244,241,234,0.65);
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--copper); }
.footer-contact p {
  color: rgba(244,241,234,0.65);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.85rem;
  color: rgba(244,241,234,0.5);
  flex-wrap: wrap;
  gap: 20px;
}

/* ===== Forms (Contact) ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.info-block { margin-bottom: 36px; }
.info-block h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.info-block p {
  font-size: 1.05rem;
  color: var(--graphite);
  line-height: 1.5;
}
form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
form input, form textarea, form select {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--graphite);
  outline: none;
  margin-bottom: 28px;
  transition: border-color .25s;
}
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--copper);
}
form textarea { resize: vertical; min-height: 140px; }

/* ===== Values / About ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.value-item {
  padding-top: 32px;
  border-top: 2px solid var(--graphite);
}
.value-item .n {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 20px;
}
.value-item h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.value-item p { color: var(--muted); }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s ease both; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: block; }
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--graphite);
    border-top: 1px solid rgba(244,241,234,0.1);
    padding: 24px 0;
  }
  nav.main-nav.open ul {
    flex-direction: column;
    gap: 0;
    padding: 0 32px;
  }
  nav.main-nav.open li { padding: 14px 0; border-bottom: 1px solid rgba(244,241,234,0.06); }
  .logo img { height: 64px; }
  .logo-text { font-size: 1.1rem; }

  .intro-split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .intro-split .image img { height: 380px; }
  .product-grid, .cap-grid, .detail-grid, .values-grid { grid-template-columns: 1fr; }
  .cap-item { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  section { padding: 80px 0; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 1.85rem; }
  .scroll-cue { display: none; }
  form .row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { position: static; padding: 30px 0; background: var(--graphite); }
}
