/*
Theme Name: DYS Fiber Global
Theme URI: https://www.dys-fiber.com/
Author: DYS Fiber
Description: A responsive English WordPress theme for DYS Fiber Optic Limited.
Version: 1.3.0
Text Domain: dys-fiber
*/

:root {
  --navy: #071a2f;
  --navy-soft: #102b48;
  --blue: #0877d1;
  --cyan: #20b8dc;
  --ink: #172334;
  --muted: #657286;
  --line: #dfe6ee;
  --paper: #f4f7fa;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(7, 26, 47, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--soft { background: var(--paper); }
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section-title { max-width: 760px; margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
.section-copy { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(7,26,47,.96);
  color: var(--white);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand img, .custom-logo { width: auto; max-height: 42px; }
.brand-mark { width: 40px; height: 40px; border: 7px solid var(--cyan); border-radius: 50%; box-shadow: inset 8px 0 0 var(--blue); }
.primary-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: rgba(255,255,255,.86); font-size: .92rem; font-weight: 700; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--cyan); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.header-cta { padding: 10px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }

.hero {
  min-height: 700px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, rgba(5,22,40,.94) 0%, rgba(5,22,40,.72) 48%, rgba(5,22,40,.18) 100%), url('assets/images/hero-fiber.jpg') center/cover;
}
.hero::after { content: ""; position: absolute; inset: auto -100px -260px auto; width: 520px; height: 520px; border: 1px solid rgba(32,184,220,.42); border-radius: 50%; box-shadow: 0 0 0 80px rgba(32,184,220,.06), 0 0 0 160px rgba(32,184,220,.04); }
.hero-content { position: relative; z-index: 1; max-width: 770px; padding: 100px 0; }
.hero-kicker { color: var(--cyan); font-size: .8rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 24px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .96; letter-spacing: -.04em; }
.hero p { max-width: 660px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.8vw, 1.24rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 800; }
.button:hover { background: #0969b4; transform: translateY(-1px); }
.button--ghost { border-color: rgba(255,255,255,.35); background: transparent; }
.button--ghost:hover { background: rgba(255,255,255,.1); }
.trust-strip { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; border-top: 1px solid rgba(255,255,255,.14); background: rgba(7,26,47,.7); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-item strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.trust-item span { color: rgba(255,255,255,.64); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.product-card { grid-column: span 2; }
.product-card:nth-last-child(2):nth-child(4), .product-card:last-child { grid-column: span 3; }
.product-card { min-height: 420px; position: relative; overflow: hidden; border-radius: var(--radius); color: var(--white); box-shadow: var(--shadow); }
.product-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .5s ease; }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,23,41,.94), rgba(6,23,41,.05) 76%); }
.product-card:hover img { transform: scale(1.04); }
.product-card__body { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 34px; }
.product-card h3 { margin: 0 0 8px; font-size: 1.65rem; }
.product-card p { margin: 0; color: rgba(255,255,255,.72); }
.product-card__link { display: inline-block; margin-top: 16px; color: var(--cyan); font-weight: 800; }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.about-image { position: relative; }
.about-image img { width: 100%; min-height: 520px; border-radius: var(--radius); object-fit: cover; }
.about-badge { position: absolute; right: -24px; bottom: 28px; max-width: 220px; padding: 24px; border-radius: 14px; background: var(--blue); color: var(--white); box-shadow: var(--shadow); }
.about-badge strong { display: block; font-size: 2rem; }
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 34px; }
.stat { padding: 20px; border-left: 3px solid var(--cyan); background: var(--paper); }
.stat strong { display: block; color: var(--navy); font-size: 1.75rem; }
.stat span { color: var(--muted); font-size: .86rem; }

.solution-grid, .support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.info-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card img { width: 100%; height: 230px; object-fit: cover; }
.info-card__body { padding: 26px; }
.info-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.3rem; }
.info-card p { margin: 0; color: var(--muted); }
.text-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 800; }

.quality-band { overflow: hidden; position: relative; background: var(--navy); color: var(--white); }
.quality-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -320px; border: 80px solid rgba(32,184,220,.08); border-radius: 50%; }
.quality-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.quality-list { display: grid; gap: 14px; }
.quality-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.quality-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(32,184,220,.14); color: var(--cyan); font-weight: 900; }
.quality-item strong { display: block; }
.quality-item span { color: rgba(255,255,255,.62); font-size: .9rem; }

.cta { padding: 80px 0; background: linear-gradient(120deg, var(--blue), #0b9bbd); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.08; }
.cta p { max-width: 620px; margin: 14px 0 0; color: rgba(255,255,255,.78); }
.cta .button { flex: 0 0 auto; background: var(--white); color: var(--blue); }

.site-footer { padding: 66px 0 26px; background: #061321; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.footer-title { margin: 0 0 14px; color: var(--white); font-size: 1rem; }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

.content-area { min-height: 60vh; padding: 80px 0; }
.post-card { padding: 26px 0; border-bottom: 1px solid var(--line); }
.entry-title { color: var(--navy); }
.catalog-hero { padding: 92px 0; background: var(--navy); color: var(--white); }
.catalog-hero h1 { max-width: 850px; margin: 8px 0 16px; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1; }
.catalog-hero > .container > p:last-child { max-width: 720px; margin: 0; color: rgba(255,255,255,.7); font-size: 1.08rem; }
.catalog-breadcrumb { margin: 0 0 18px; color: rgba(255,255,255,.65); font-size: .9rem; }
.catalog-breadcrumb a { color: var(--cyan); }
.series-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.series-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.series-card:last-child { grid-column: 1 / -1; }
.series-card img { width: 100%; height: 330px; object-fit: cover; }
.series-card__body { padding: 30px; }
.series-card h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.6rem; }
.series-card p { margin: 0; color: var(--muted); }
.series-card span, .catalog-product-card span { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 800; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.catalog-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.catalog-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.catalog-product-card img { width: 100%; height: 260px; object-fit: contain; background: #fff; }
.catalog-product-card > div { padding: 24px; }
.catalog-product-card h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.25rem; }
.catalog-product-card p { margin: 0; color: var(--muted); }
.product-detail__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.product-detail__image { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.product-detail__image img { width: 100%; max-height: 560px; object-fit: contain; }
.product-detail h1 { margin: 10px 0 20px; color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.05; }
.product-lead { color: var(--muted); font-size: 1.15rem; }
.product-content { margin-top: 24px; }
.button--dark { background: var(--navy); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; right: 0; left: 0; padding: 24px 20px; background: var(--navy); }
  .site-nav.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 16px; }
  .header-cta { display: none; }
  .about-grid, .quality-grid { grid-template-columns: 1fr; gap: 42px; }
  .catalog-product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail__grid { grid-template-columns: 1fr; gap: 42px; }
  .product-grid, .solution-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { grid-column: auto; }
  .product-card:last-child { grid-column: 1 / -1; }
  .solution-grid .info-card:last-child, .support-grid .info-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 72px 0; }
  .hero { min-height: 760px; background-position: 62% center; }
  .hero-content { padding-bottom: 210px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item { padding: 16px; }
  .product-grid, .solution-grid, .support-grid, .footer-grid { grid-template-columns: 1fr; }
  .series-grid, .catalog-product-grid { grid-template-columns: 1fr; }
  .series-card:last-child { grid-column: auto; }
  .product-card:last-child { grid-column: auto; }
  .solution-grid .info-card:last-child, .support-grid .info-card:last-child { grid-column: auto; }
  .product-card { min-height: 360px; }
  .about-badge { right: 12px; }
  .section-head, .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
}
