/*
Theme Name: Thmins Tunnel
Theme URI: https://tunnellamp.com
Author: Codex
Description: A professional multilingual WordPress theme for Thmins Lighting tunnel lights and public lighting products.
Version: 1.0.0
Text Domain: thmins-tunnel
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #07131f;
  --bg-soft: #0d2032;
  --panel: rgba(10, 27, 42, 0.78);
  --panel-strong: rgba(8, 22, 35, 0.94);
  --line: rgba(140, 179, 214, 0.16);
  --text: #e8f0f7;
  --muted: #9fb3c6;
  --accent: #ffb547;
  --accent-soft: #ffd48e;
  --sky: #5ec6ff;
  --success: #66d8a6;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 198, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 181, 71, 0.12), transparent 24%),
    linear-gradient(180deg, #08111a 0%, #0a1725 48%, #061019 100%);
  line-height: 1.65;
}

body.page-template-default {
  background:
    radial-gradient(circle at top left, rgba(255, 181, 71, 0.08), transparent 24%),
    linear-gradient(180deg, #08111a 0%, #091521 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
}

.header-inner,
.section-inner,
.footer-inner,
.page-inner {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5, 15, 24, 0.8);
  border-bottom: 1px solid rgba(140, 179, 214, 0.08);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 181, 71, 0.96), rgba(94, 198, 255, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 30px rgba(255, 181, 71, 0.18);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 15px;
  border-radius: 999px;
  border: 2px solid rgba(7, 19, 31, 0.72);
}

.brand-mark::after {
  inset: 6px 20px;
}

.brand-name {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav ul,
.language-switcher ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.primary-nav a {
  color: rgba(232, 240, 247, 0.84);
  font-size: 0.98rem;
}

.language-switcher ul {
  gap: 8px;
  flex-wrap: wrap;
}

.language-switcher a,
.language-switcher span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 179, 214, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.language-switcher .current-lang span {
  color: #07131f;
  background: var(--accent);
  border-color: transparent;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffca73);
  color: #08111a;
  box-shadow: 0 14px 36px rgba(255, 181, 71, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(140, 179, 214, 0.14);
  color: var(--text);
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid,
.story-grid,
.metrics-grid,
.catalog-grid,
.proof-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.story-card,
.metric-card,
.catalog-card,
.proof-card,
.contact-card,
.cta-panel,
.page-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-card {
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 56px);
}

.hero-visual,
.story-card,
.metric-card,
.catalog-card,
.proof-card,
.contact-card,
.cta-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.12);
  color: var(--accent-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
.display-line {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  max-width: 12ch;
}

.hero-copy p,
.section-heading p,
.page-lead,
.page-content p,
.page-content li {
  color: rgba(232, 240, 247, 0.82);
  font-size: 1.06rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.hero-highlights div,
.visual-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(140, 179, 214, 0.1);
}

.hero-highlights strong,
.visual-stat strong,
.metric-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.hero-note {
  margin-top: 22px;
  color: var(--accent-soft);
  font-size: 0.98rem;
}

.hero-visual {
  background:
    linear-gradient(160deg, rgba(10, 31, 49, 0.94), rgba(8, 20, 31, 0.94));
  overflow: hidden;
  position: relative;
}

.tunnel-visual {
  min-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.tunnel-arch {
  position: absolute;
  inset: 26px 26px auto;
  height: 62%;
  border-radius: 240px 240px 36px 36px;
  background:
    radial-gradient(circle at center top, rgba(255, 211, 128, 0.75), rgba(255, 181, 71, 0.08) 34%, transparent 60%),
    linear-gradient(180deg, rgba(10, 28, 44, 0.1), rgba(6, 17, 26, 0.8));
  border: 1px solid rgba(140, 179, 214, 0.12);
}

.tunnel-arch::before,
.tunnel-arch::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 10%;
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 211, 128, 0.16), rgba(255, 181, 71, 0.82), rgba(255, 211, 128, 0.24));
  box-shadow: 0 0 26px rgba(255, 181, 71, 0.34);
}

.tunnel-arch::before {
  left: 18%;
}

.tunnel-arch::after {
  right: 18%;
}

.road-line {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 2px;
  height: 30%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.14), rgba(255, 181, 71, 0.86));
  box-shadow: 0 0 22px rgba(255, 181, 71, 0.24);
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 22px;
}

.section-heading h2,
.page-card h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.story-grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
}

.metrics-grid,
.catalog-grid,
.proof-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card h3,
.catalog-card h3,
.proof-card h3,
.contact-card h3,
.metric-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.metric-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(94, 198, 255, 0.12);
  color: var(--sky);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.catalog-card ul,
.proof-card ul,
.page-content ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(232, 240, 247, 0.82);
}

.cta {
  padding: 34px 0 72px;
}

.cta-panel {
  background:
    linear-gradient(135deg, rgba(255, 181, 71, 0.14), rgba(94, 198, 255, 0.12)),
    var(--panel-strong);
}

.site-footer {
  padding: 0 0 36px;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.footer-grid h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

.page-hero {
  padding: 56px 0 34px;
}

.page-content {
  padding: 0 0 72px;
}

.page-card .eyebrow {
  margin-bottom: 6px;
}

.page-content .page-card + .page-card {
  margin-top: 24px;
}

.page-content h2,
.page-content h3 {
  margin: 28px 0 14px;
  font-size: 1.7rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.page-content td,
.page-content th {
  border: 1px solid rgba(140, 179, 214, 0.16);
  padding: 12px 14px;
  text-align: left;
}

.page-content blockquote {
  margin: 20px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
}

.product-group + .product-group {
  margin-top: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.product-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(140, 179, 214, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.product-thumb {
  aspect-ratio: 1.08 / 1;
  background:
    radial-gradient(circle at top left, rgba(94, 198, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(10, 27, 42, 0.86), rgba(8, 22, 35, 0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-copy {
  padding: 18px;
}

.product-type {
  margin: 0 0 8px;
  color: var(--sky);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card-copy h4 {
  margin: 0 0 14px;
  font-size: 1.18rem;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

body.rtl {
  direction: rtl;
}

body.rtl .header-inner,
body.rtl .section-heading {
  flex-direction: row-reverse;
}

body.rtl .primary-nav ul,
body.rtl .language-switcher ul,
body.rtl .hero-actions,
body.rtl .cta-actions {
  flex-direction: row-reverse;
}

body.rtl .catalog-card ul,
body.rtl .proof-card ul,
body.rtl .page-content ul {
  padding-right: 18px;
  padding-left: 0;
}

@media (max-width: 960px) {
  .header-inner,
  .header-nav,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .story-grid,
  .metrics-grid,
  .catalog-grid,
  .proof-grid,
  .contact-grid,
  .footer-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .tunnel-arch {
    position: relative;
    inset: auto;
    height: 320px;
    margin-bottom: 18px;
  }

  .road-line {
    bottom: 24%;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .hero-copy,
  .page-card {
    padding: 24px;
  }

  .hero-visual,
  .story-card,
  .metric-card,
  .catalog-card,
  .proof-card,
  .contact-card,
  .cta-panel,
  .footer-grid {
    padding: 22px;
  }
}
