/*
Theme Name: Xfibres EN
Theme URI: https://xfibres.ba
Author: Translated from xfibres.ba
Author URI: https://xfibres.ba
Description: English translation of the Xfibres steel fibres for concrete reinforcement website. A clean, single-page-style classic WordPress theme with Home, Catalog, Certificates and Partners pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xfibres-en
Tags: business, one-column, custom-menu, featured-images, translation-ready
*/

/* ---------- Design tokens ---------- */
:root {
  --x-blue: #1f5f8b;
  --x-blue-dark: #154562;
  --x-blue-light: #2e8ac2;
  --x-bg: #ffffff;
  --x-bg-alt: #ecede8;
  --x-bg-grey: #6b6f72;
  --x-text: #2a3236;
  --x-text-light: #5a6166;
  --x-on-dark: #ffffff;
  --x-border: #e3e4e0;
  --x-radius: 4px;
  --x-shadow: 0 4px 18px rgba(20, 40, 60, 0.08);
  --x-container: 1180px;
  --x-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --x-font-head: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--x-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--x-text);
  background: var(--x-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--x-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--x-blue-dark); }
h1, h2, h3, h4 { font-family: var(--x-font-head); color: var(--x-text); margin: 0 0 .6em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
ul li { margin-bottom: .35em; }

.container {
  max-width: var(--x-container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--x-blue);
  color: #fff !important;
  border-radius: var(--x-radius);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .85rem;
  border: 2px solid var(--x-blue);
  transition: all .2s ease;
}
.btn:hover { background: var(--x-blue-dark); border-color: var(--x-blue-dark); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--x-blue) !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--x-bg-alt);
  border-bottom: 1px solid var(--x-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px;
}
.site-logo img { max-height: 46px; width: auto; }
.site-nav ul {
  list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0;
}
.site-nav a {
  color: var(--x-text);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
}
.site-nav a:hover, .site-nav .current-menu-item a { color: var(--x-blue); }
.site-nav .current-menu-item a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--x-blue);
}
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--x-text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  background: linear-gradient(rgba(20,30,45,.55), rgba(20,30,45,.55)),
              url('images/hero.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  color: #fff;
}
.hero .container { width: 100%; }
.hero-inner {
  max-width: 720px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  padding: 2.5rem;
  border-radius: var(--x-radius);
  border: 1px solid rgba(255,255,255,.15);
}
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero .tagline {
  font-size: 1.35rem; font-weight: 600; letter-spacing: .15em;
  margin: 1rem 0 2rem; color: #fff;
}
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-watermark {
  background:
    linear-gradient(rgba(236,237,232,.92), rgba(236,237,232,.92)),
    repeating-linear-gradient(-12deg, transparent 0 60px, rgba(31,95,139,.05) 60px 120px);
}
.section-grey { background: var(--x-bg-grey); color: #fff; }
.section-grey h2, .section-grey h3 { color: #fff; }
.section-title-bar {
  background: var(--x-bg-grey);
  color: #fff;
  padding: 26px 0;
}
.section-title-bar h2 { color: #fff; margin: 0; }

.lead {
  max-width: 900px; margin: 0 auto 2.5rem;
  text-align: center; font-size: 1.05rem; color: var(--x-text-light);
}
.section-heading {
  text-align: center; margin-bottom: 3rem;
}
.section-heading h2 { color: var(--x-blue); }
.section-heading .underline {
  width: 60px; height: 3px; background: var(--x-blue);
  margin: .8rem auto 0;
}

/* ---------- Two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col ul { padding-left: 1.2em; }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.adv-card {
  background: #fff;
  border-radius: var(--x-radius);
  padding: 1.6rem;
  box-shadow: var(--x-shadow);
  border-top: 3px solid var(--x-blue);
}

/* ---------- Application area ---------- */
.app-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.app-block:last-child { margin-bottom: 0; }
.app-block.reverse > :first-child { order: 2; }
.app-block img {
  border-radius: var(--x-radius);
  box-shadow: var(--x-shadow);
}
.app-images-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

/* ---------- Certificates / partners ---------- */
.cert-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.cert-grid img, .gallery-grid img {
  border-radius: var(--x-radius);
  box-shadow: var(--x-shadow);
  background: #fff;
}
.partners-list {
  list-style: none; padding: 0; max-width: 700px; margin: 0 auto;
}
.partners-list li {
  background: #fff; padding: 1.2rem 1.5rem;
  border-radius: var(--x-radius); margin-bottom: 1rem;
  box-shadow: var(--x-shadow);
  border-left: 4px solid var(--x-blue);
}
.partners-list .country {
  font-size: .85rem; text-transform: uppercase;
  color: var(--x-blue); font-weight: 700; letter-spacing: .1em;
  display: block; margin-bottom: .25rem;
}

/* ---------- Contact / footer ---------- */
.contact-section {
  background: var(--x-blue-dark);
  color: #fff;
}
.contact-section h2, .contact-section h3 { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-block p { margin: .25rem 0; }
.contact-block a { color: #fff; text-decoration: underline; }
.contact-block .label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  opacity: .75; margin-bottom: .35rem;
}

.site-footer {
  background: #0f2030; color: #c8d0d8;
  padding: 28px 0; font-size: .9rem; text-align: center;
}
.site-footer a { color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--x-bg-grey);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col, .app-block, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .app-block.reverse > :first-child { order: 0; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--x-bg-alt);
    border-bottom: 1px solid var(--x-border);
    padding: 1rem 0;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column; gap: 0;
    padding: 0 24px;
  }
  .site-nav li { padding: .5rem 0; border-bottom: 1px solid var(--x-border); }
  section { padding: 60px 0; }
  .hero { min-height: 70vh; }
  .hero-inner { padding: 1.75rem; }
}
