/* ==========================================================================
   Union Fiber Industrial Company — Global Stylesheet
   Brand colors (from UFIC Brand Guidelines):
     Red:   #ff0013
     Navy:  #002b64
     Grey:  #eef0f3
   Typography: Monda (headings), DM Sans (body), Georgia serif fallback for logo-adjacent text
   ========================================================================== */

:root {
  --color-red: #ff0013;
  --color-red-dark: #cc000f;
  --color-navy: #002b64;
  --color-navy-light: #0a3d82;
  --color-grey: #eef0f3;
  --color-white: #ffffff;
  --color-text: #1c2530;
  --color-text-muted: #55606e;
  --color-border: #dde1e7;
  --font-primary: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Monda', 'Segoe UI', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-width: 1200px;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,43,100,0.08);
  --shadow-md: 0 4px 16px rgba(0,43,100,0.10);
  --shadow-lg: 0 10px 30px rgba(0,43,100,0.14);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }

a { color: var(--color-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-red); }

ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-navy); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }

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

.section { padding: 72px 0; }
.section--grey { background: var(--color-grey); }
.section--navy { background: var(--color-navy); color: var(--color-white); }
.section--navy h2, .section--navy h3 { color: var(--color-white); }

.eyebrow {
  display: inline-block;
  color: var(--color-red);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--color-red); color: var(--color-white); box-shadow: 0 8px 24px rgba(255,0,19,0.25); }
.btn--primary:hover { background: var(--color-red-dark); color: var(--color-white); }
.btn--outline { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn--outline:hover { background: var(--color-white); color: var(--color-navy); }
.btn--navy { background: var(--color-navy); color: var(--color-white); }
.btn--navy:hover { background: var(--color-navy-light); color: var(--color-white); }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.top-bar {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.82rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--color-white); }
.top-bar a:hover { color: var(--color-red); }
.top-bar__contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar__contacts span { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--color-navy); font-size: 1.15rem; }
.brand img { height: 100px; width: auto; }
.brand small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  border-radius: var(--radius);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.has-dropdown:hover > a { color: var(--color-red); background: var(--color-grey); }
.main-nav > ul > li > a.is-active { color: var(--color-red); }

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  border: 1px solid var(--color-border);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--color-text);
}
.dropdown li a:hover { background: var(--color-grey); color: var(--color-red); }

.nav-cta { margin-left: 10px; }
.lang-switch {
  font-weight: 700;
  color: var(--color-navy) !important;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px !important;
  font-size: 0.82rem;
}
.lang-switch:hover { border-color: var(--color-red); color: var(--color-red) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-navy);
  cursor: pointer;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  background: var(--color-grey);
  font-size: 0.85rem;
  padding: 14px 0;
}
.breadcrumbs ol { display: flex; gap: 6px; flex-wrap: wrap; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-navy); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--color-text-muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(120deg, var(--color-navy) 0%, #001c44 100%);
  color: var(--color-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: #ff6b73; }
.hero h1 { color: var(--color-white); margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: #cdd8ec; max-width: 560px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero--page { padding: 56px 0; }
.hero--page .hero__inner { grid-template-columns: 1fr; }

.stat-strip {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.9rem; color: var(--color-red); font-weight: 700; }
.stat span { font-size: 0.85rem; color: var(--color-text-muted); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-grey);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--color-red);
  font-size: 1.4rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--color-text-muted); font-size: 0.94rem; margin-bottom: 0; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-navy), #06336f);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card__body h3 { margin-bottom: 8px; font-size: 1.08rem; }
.product-card__body p { color: var(--color-text-muted); font-size: 0.92rem; flex: 1; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-grey);
  color: var(--color-navy);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}
.badge::before { content: '✓'; color: var(--color-red); font-weight: 700; }

/* Clients / trust strip */
.clients-strip { background: var(--color-white); padding: 48px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.clients-strip__title { text-align: center; color: var(--color-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 28px; font-weight: 600; }
.clients-grid { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.clients-grid img { height: 42px; width: auto; object-fit: contain; filter: grayscale(20%); opacity: 0.85; transition: opacity var(--transition); }
.clients-grid img:hover { opacity: 1; }

/* Applications / feature lists */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.feature-list li::before { content: '●'; color: var(--color-red); flex-shrink: 0; margin-top: 4px; font-size: 0.6rem; }

.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.spec-table th { background: var(--color-grey); color: var(--color-navy); font-weight: 600; }
.spec-table tr:hover td { background: #fafbfc; }

/* FAQ / accordion */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-item__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px;
  background: none; border: none; text-align: left;
  font-weight: 600; font-size: 1rem; color: var(--color-navy);
  cursor: pointer;
}
.accordion-item__q::after { content: '+'; font-size: 1.4rem; color: var(--color-red); transition: transform var(--transition); }
.accordion-item.is-open .accordion-item__q::after { transform: rotate(45deg); }
.accordion-item__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-item__a p { color: var(--color-text-muted); padding-bottom: 16px; font-size: 0.94rem; }

/* CTA banner */
.cta-banner {
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 6px; }
.cta-banner p { color: #ffe0e2; margin-bottom: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }

/* Blog list */
.post-card { display: flex; flex-direction: column; }
.post-card__meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-info-item__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-grey); color: var(--color-red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.1rem;
}
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--color-navy); margin-bottom: 6px; display: block; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--color-navy);
}
.form-status { font-size: 0.9rem; padding: 10px 0; }
.form-status.success { color: #1a7a3b; }
.form-status.error { color: var(--color-red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-navy); color: #c9d3e6; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a { color: #c9d3e6; }
.footer-grid a:hover { color: var(--color-red); }
.footer-brand img { height: 80px;
    width: 60px; margin-bottom: 14px; }
.footer-brand p { color: #a8b6d1; font-size: 0.9rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: #93a1bf;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: #93a1bf; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-red); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: none; cursor: pointer; font-size: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); font-size: 1.5rem; z-index: 400;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--color-white); flex-direction: column; align-items: stretch; padding: 12px; box-shadow: var(--shadow-md); display: none; max-height: calc(100vh - 78px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .has-dropdown .dropdown { position: static; box-shadow: none; display: none; border: none; padding-left: 14px; }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .top-bar__contacts { justify-content: center; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
