/*
Theme Name: Svenska
Theme URI: https://www.svenskabearing.com/
Author: Svenska Bearing
Description: Tema de bloques para la web corporativa de Svenska Bearing.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: svenska
*/

:root {
  --sv-navy: #09162a;
  --sv-navy-soft: #10253b;
  --sv-blue: #0068a8;
  --sv-cyan: #25a8df;
  --sv-yellow: #ffcc00;
  --sv-ink: #172334;
  --sv-muted: #5c6875;
  --sv-line: #d9e0e6;
  --sv-surface: #f4f8fa;
  --sv-white: #ffffff;
  --sv-container: min(1240px, calc(100vw - 48px));
  --sv-display: "Arial Narrow", "Bahnschrift Condensed", "Roboto Condensed", sans-serif;
  --sv-body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sv-ink);
  background: var(--sv-white);
  font-family: var(--sv-body);
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .sv-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.sv-display,
.sv-hero h1,
.sv-section-title,
.sv-product-name,
.sv-service-step h3,
.sv-contact h2 {
  font-family: var(--sv-display);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.sv-kicker {
  margin: 0 0 14px;
  color: var(--sv-blue);
  font-family: var(--sv-display);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sv-kicker::after {
  content: "";
  display: inline-block;
  width: 54px;
  height: 1px;
  margin: 0 0 3px 14px;
  background: currentColor;
}

.sv-section-title {
  margin: 0;
  color: var(--sv-navy);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: .94;
}

.sv-body-copy {
  color: var(--sv-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.sv-text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--sv-yellow);
  color: var(--sv-navy);
  font-family: var(--sv-display);
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.sv-text-link::after { content: "\2192"; color: var(--sv-blue); }
.sv-text-link:hover { color: var(--sv-blue); }

/* Header */
.sv-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 0;
  color: var(--sv-white);
}

.sv-header-inner {
  width: var(--sv-container);
  margin: 0 auto;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.3);
}

.sv-header .wp-block-site-logo img { max-height: 62px; width: auto; }
.sv-header .wp-block-site-title {
  margin: 0;
  font-family: var(--sv-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sv-header .wp-block-site-title a { color: white; text-decoration: none; }
.sv-header .wp-block-navigation { font-family: var(--sv-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sv-header .wp-block-navigation a { color: white; }
.sv-header .wp-block-navigation a:hover { color: var(--sv-yellow); }
.sv-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--sv-navy); color: white; padding: 34px; }

/* Hero */
.sv-hero {
  min-height: 780px;
  color: var(--sv-white);
}

.sv-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(3,15,28,.92) 0%, rgba(3,15,28,.56) 46%, rgba(3,15,28,.12) 78%) !important;
  opacity: 1 !important;
}

.sv-hero .wp-block-cover__inner-container {
  width: var(--sv-container);
  margin: 0 auto;
  padding: 185px 0 96px;
}

.sv-hero-copy { max-width: 700px; }
.sv-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: white;
  font-size: clamp(4rem, 7.2vw, 7.4rem);
  line-height: .86;
}

.sv-hero-line { width: 76px; height: 4px; margin: 30px 0 22px; background: var(--sv-yellow); }
.sv-hero-copy > p {
  max-width: 57ch;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.55;
}

.sv-hero .wp-block-buttons { margin-top: 34px; gap: 14px; }
.sv-hero .wp-block-button__link {
  border: 1px solid white;
  border-radius: 0;
  padding: 15px 24px;
  background: transparent;
  color: white;
  font-family: var(--sv-display);
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.sv-hero .sv-button-primary .wp-block-button__link { border-color: var(--sv-blue); background: var(--sv-blue); }
.sv-hero .wp-block-button__link:hover { border-color: var(--sv-yellow); background: var(--sv-yellow); color: var(--sv-navy); }

/* WQS */
.sv-wqs { padding: 96px 0; }
.sv-wqs-grid { width: var(--sv-container); margin: 0 auto; gap: clamp(50px, 7vw, 100px); }
.sv-wqs-copy { padding: 26px 0; }
.sv-wqs-copy .sv-section-title { max-width: 9ch; }
.sv-wqs-copy .sv-body-copy { max-width: 54ch; margin: 28px 0 0; }
.sv-wqs-image img { min-height: 550px; width: 100%; object-fit: cover; }
.sv-benefits { margin-top: 34px; border-top: 1px solid var(--sv-line); }
.sv-benefit { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--sv-line); }
.sv-benefit-number { color: var(--sv-blue); font-family: var(--sv-display); font-size: 1.8rem; font-weight: 800; }
.sv-benefit strong { display: block; color: var(--sv-navy); text-transform: uppercase; }
.sv-benefit p { margin: 4px 0 0; color: var(--sv-muted); font-size: .92rem; line-height: 1.5; }

/* Marine products */
.sv-marine { padding: 104px 0; background: var(--sv-surface); }
.sv-marine-inner { width: var(--sv-container); margin: 0 auto; }
.sv-marine-layout { margin-top: 56px; gap: clamp(44px, 6vw, 86px); align-items: stretch !important; }
.sv-marine-image img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; }
.sv-product-list { border-top: 1px solid #b9c5ce; }
.sv-product-row { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #b9c5ce; }
.sv-product-number { color: var(--sv-blue); font-family: var(--sv-display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.sv-product-name { margin: 0 0 5px; color: var(--sv-navy); font-size: 1.25rem; }
.sv-product-row p { margin: 0; color: var(--sv-muted); font-size: .91rem; line-height: 1.48; }

/* Industrial */
.sv-industrial { padding: 104px 0; }
.sv-industrial-inner { width: var(--sv-container); margin: 0 auto; }
.sv-industrial-grid { margin-top: 48px; gap: 28px; }
.sv-industrial-card { height: 100%; border-top: 3px solid var(--sv-blue); background: var(--sv-surface); }
.sv-industrial-card .wp-block-image { margin: 0; }
.sv-industrial-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sv-industrial-copy { padding: 30px 34px 34px; }
.sv-industrial-copy h3 { margin: 0; color: var(--sv-navy); font-family: var(--sv-display); font-size: 2rem; text-transform: uppercase; }
.sv-industrial-copy p { min-height: 4.8em; margin: 14px 0 22px; color: var(--sv-muted); line-height: 1.6; }

/* Service */
.sv-service { padding: 100px 0; background: var(--sv-navy); color: white; }
.sv-service-inner { width: var(--sv-container); margin: 0 auto; }
.sv-service .sv-kicker { color: var(--sv-yellow); }
.sv-service .sv-section-title { color: white; max-width: 13ch; }
.sv-service-grid { margin-top: 62px; gap: 0; }
.sv-service-step { min-height: 280px; padding: 0 30px 10px; border-left: 1px solid rgba(255,255,255,.22); }
.sv-service-step:first-child { padding-left: 0; border-left: 0; }
.sv-service-number { color: var(--sv-cyan); font-family: var(--sv-display); font-size: 3.3rem; font-weight: 800; }
.sv-service-step h3 { margin: 26px 0 12px; color: white; font-size: 1.25rem; }
.sv-service-step p { margin: 0; color: rgba(255,255,255,.72); font-size: .93rem; line-height: 1.65; }

/* Company */
.sv-company { padding: 96px 0; }
.sv-company-grid { width: var(--sv-container); margin: 0 auto; gap: clamp(50px, 7vw, 100px); }
.sv-company-image img { min-height: 550px; width: 100%; object-fit: cover; }
.sv-company-copy { padding: 40px 0; }
.sv-company-copy .sv-section-title { max-width: 10ch; }
.sv-company-copy .sv-body-copy { margin-top: 28px; }

/* Certifications */
.sv-certifications { border-top: 1px solid var(--sv-line); border-bottom: 1px solid var(--sv-line); }
.sv-certifications-inner { width: var(--sv-container); margin: 0 auto; gap: 0; }
.sv-cert-intro { min-height: 150px; padding: 34px; background: var(--sv-yellow); color: var(--sv-navy); }
.sv-cert-intro strong { font-family: var(--sv-display); font-size: 1.35rem; text-transform: uppercase; }
.sv-cert { min-height: 150px; padding: 38px 28px; border-right: 1px solid var(--sv-line); }
.sv-cert strong { display: block; color: var(--sv-blue); font-family: var(--sv-display); font-size: 1.35rem; text-transform: uppercase; }
.sv-cert span { display: block; margin-top: 7px; color: var(--sv-muted); font-size: .88rem; }

/* Contact */
.sv-contact { position: relative; overflow: hidden; padding: 96px 0 34px; background: var(--sv-navy); color: white; }
.sv-contact::after { content: ""; position: absolute; inset: 0 0 0 68%; background: linear-gradient(rgba(9,22,42,.56), rgba(9,22,42,.8)), url("https://svenskabearing.com/wp-content/uploads/2024/04/561463.jpg") center/cover; opacity: .65; }
.sv-contact-inner { position: relative; z-index: 1; width: var(--sv-container); margin: 0 auto; }
.sv-contact .sv-kicker { color: var(--sv-yellow); }
.sv-contact h2 { max-width: 12ch; margin: 0; color: white; font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: .95; }
.sv-contact-details { max-width: 850px; margin-top: 52px; gap: 0; }
.sv-contact-detail { min-height: 112px; padding: 0 32px; border-left: 1px solid rgba(255,255,255,.3); }
.sv-contact-detail:first-child { padding-left: 0; border-left: 0; }
.sv-contact-detail strong { display: block; color: var(--sv-cyan); font-family: var(--sv-display); letter-spacing: .08em; text-transform: uppercase; }
.sv-contact-detail a,
.sv-contact-detail span { display: block; margin-top: 9px; color: white; font-size: .92rem; line-height: 1.55; text-decoration: none; }
.sv-footer-row { margin-top: 70px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.65); font-size: .78rem; }

/* Interior pages */
.sv-page-main { width: var(--sv-container); margin: 0 auto; padding: 170px 0 90px; }
.sv-page-main .wp-block-post-title { font-family: var(--sv-display); font-size: clamp(3rem, 6vw, 6rem); text-transform: uppercase; }

@media (max-width: 960px) {
  :root { --sv-container: min(100% - 32px, 760px); }
  body.admin-bar .sv-header { top: 46px; }
  .sv-header { padding-top: 16px; }
  .sv-header-inner { padding-bottom: 10px; }
  .sv-hero { min-height: 700px; }
  .sv-hero .wp-block-cover__inner-container { padding-top: 155px; }
  .sv-wqs-grid,
  .sv-marine-layout,
  .sv-company-grid { grid-template-columns: 1fr !important; }
  .sv-wqs-image img,
  .sv-company-image img,
  .sv-marine-image img { min-height: 420px; }
  .sv-service-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sv-service-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .sv-certifications-inner { grid-template-columns: repeat(2, 1fr) !important; }
  .sv-contact::after { inset: 52% 0 0 45%; }
  .sv-contact-details { grid-template-columns: 1fr !important; }
  .sv-contact-detail { min-height: 0; padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
}

@media (max-width: 640px) {
  .sv-section-title { font-size: 2.65rem; }
  .sv-hero { min-height: 690px; }
  .sv-hero h1 { font-size: 3.55rem; }
  .sv-hero .wp-block-buttons { align-items: stretch; flex-direction: column; }
  .sv-hero .wp-block-button { width: 100%; }
  .sv-hero .wp-block-button__link { width: 100%; text-align: center; }
  .sv-wqs,
  .sv-marine,
  .sv-industrial,
  .sv-service,
  .sv-company { padding: 74px 0; }
  .sv-wqs-image img,
  .sv-company-image img,
  .sv-marine-image img { min-height: 310px; }
  .sv-industrial-grid,
  .sv-service-grid,
  .sv-certifications-inner { grid-template-columns: 1fr !important; }
  .sv-service-step,
  .sv-service-step:first-child,
  .sv-service-step:nth-child(3) { min-height: 0; padding: 28px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .sv-cert-intro,
  .sv-cert { min-height: 0; }
  .sv-contact { padding-top: 76px; }
  .sv-contact::after { inset: 58% 0 0 0; opacity: .28; }
  .sv-contact h2 { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
