/* ══════════════════════════════════════════════
   Tamma Solutions — Main Stylesheet v1.0.0
   ══════════════════════════════════════════════ */

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

:root {
  --bg:        #f0f2f4;
  --bg-alt:    #e6e9ed;
  --surface:   #ffffff;
  --steel:     #d4d9e0;
  --rule:      #c8cdd5;
  --mid:       #8a96a4;
  --body:      #3a4450;
  --head:      #1a2230;
  --accent:    #b8902e;
  --accent-h:  #9a7420;
  --dark-band: #1e2530;
  --font-d: 'Barlow Condensed', sans-serif;
  --font-b: 'Barlow', sans-serif;
  --px: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-b);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px); height: 56px;
  background: rgba(240,242,244,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: var(--font-d); font-weight: 700; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--head);
}
.nav-logo span { color: var(--accent); }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--mid);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--head); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--head); }
.nav-drawer {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 190;
  background: rgba(240,242,244,0.98); border-bottom: 1px solid var(--rule);
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.nav-drawer.open { max-height: 400px; }
.nav-links { list-style: none; padding: 8px 0 24px; }
.nav-links li { border-bottom: 1px solid var(--rule); }
.nav-links a {
  display: block; padding: 16px var(--px);
  font-family: var(--font-d); font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
}
.nav-links a:active { color: var(--accent); }

@media (min-width: 768px) {
  :root { --px: 48px; }
  nav { height: 64px; }
  .nav-toggle { display: none; }
  .nav-drawer { position: static; max-height: none; overflow: visible; background: none; border: none; transition: none; }
  .nav-links { display: flex; gap: 32px; padding: 0; }
  .nav-links li { border: none; }
  .nav-links a { padding: 0; font-size: 13px; letter-spacing: 0.12em; transition: color 0.2s; }
  .nav-links a:hover { color: var(--accent); }
}

/* ══ HERO ══ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 56px var(--px) 72px;
  overflow: hidden; background: var(--dark-band);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.03) 59px, rgba(255,255,255,0.03) 60px),
    repeating-linear-gradient(0deg,  transparent, transparent 59px, rgba(255,255,255,0.03) 59px, rgba(255,255,255,0.03) 60px);
}
.hero-shapes {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-end;
  overflow: hidden; pointer-events: none; opacity: 0.35;
}
.profile-stack { display: flex; flex-direction: column; gap: 3px; transform: skewY(-6deg) translateX(30%); flex-shrink: 0; }
.profile-bar {
  height: 22px; width: 320px;
  background: linear-gradient(90deg, #2a3545 0%, #3e5068 30%, #5a7090 50%, #3e5068 70%, #2a3545 100%);
  border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(0,0,0,0.35);
  animation: shimmer 4s ease-in-out infinite alternate;
}
.profile-bar:nth-child(even) { width: 290px; margin-left: 30px; }
.profile-bar:nth-child(3n) { height: 14px; background: linear-gradient(90deg, #1e2c3d 0%, #2a3e55 50%, #1e2c3d 100%); }
@keyframes shimmer { from { filter: brightness(0.8); } to { filter: brightness(1.25); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,37,48,0.98) 0%, rgba(30,37,48,0.72) 55%, rgba(30,37,48,0.3) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-kicker {
  font-family: var(--font-d); font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.hero-kicker::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.hero h1 {
  font-family: var(--font-d); font-size: clamp(52px, 14vw, 88px);
  font-weight: 800; line-height: 0.92; letter-spacing: -0.01em;
  text-transform: uppercase; color: #eef2f6; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 14px; color: #8a9ab0; margin-bottom: 8px; line-height: 1.7; max-width: 340px; }
.hero-support { font-size: 12px; color: #505e70; margin-bottom: 36px; max-width: 320px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 15px 28px; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: background 0.2s;
}
.btn-primary:active, .btn-primary:hover { background: var(--accent-h); }
.btn-primary svg { width: 13px; height: 13px; }

@media (min-width: 768px) {
  .hero { padding-top: 0; }
  .hero-shapes { opacity: 0.5; }
  .hero-overlay { background: linear-gradient(to right, rgba(30,37,48,0.97) 35%, rgba(30,37,48,0.35) 100%); }
  .profile-stack { transform: skewY(-4deg) translateX(0); }
  .profile-bar { width: 520px; }
  .profile-bar:nth-child(even) { width: 480px; margin-left: 40px; }
}

/* ══ SHARED ══ */
section { padding: 64px var(--px); }
.section-label {
  font-family: var(--font-d); font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
.section-title {
  font-family: var(--font-d); font-size: clamp(34px, 9vw, 52px);
  font-weight: 700; text-transform: uppercase; color: var(--head);
  line-height: 1; letter-spacing: 0.01em; margin-bottom: 36px;
}
.divider { height: 1px; background: var(--rule); margin: 0 var(--px); }
@media (min-width: 768px) { section { padding: 96px var(--px); } }

/* ══ CAPABILITIES ══ */
.capabilities { background: var(--surface); }
.cap-grid { display: flex; flex-direction: column; border: 1px solid var(--rule); }
.cap-card { padding: 32px 24px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.cap-card:last-child { border-bottom: none; }
.cap-num { font-family: var(--font-d); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); opacity: 0.8; margin-bottom: 14px; }
.cap-card h3 { font-family: var(--font-d); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--head); margin-bottom: 10px; }
.cap-card p { font-size: 14px; color: var(--mid); line-height: 1.7; }
@media (min-width: 768px) {
  .cap-grid { flex-direction: row; }
  .cap-card { padding: 48px 36px; border-bottom: none; border-right: 1px solid var(--rule); flex: 1; transition: background 0.25s; }
  .cap-card:last-child { border-right: none; }
  .cap-card:hover { background: var(--bg); }
}

/* ══ THAI METAL PARTNER ══ */
.partner { background: var(--bg-alt); }
.partner .section-title { margin-bottom: 4px; }
.partner-subtitle {
  font-family: var(--font-d); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid);
  margin-bottom: 32px;
}
.partner-inner { display: flex; flex-direction: column; gap: 32px; }
.partner-body p { font-size: 14px; color: var(--body); line-height: 1.85; margin-bottom: 14px; }
.partner-body p:last-child { margin-bottom: 0; }
.partner-aside { display: none; }
.partner-photo {
  display: block; width: 100%; height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--rule);
  filter: brightness(0.9) saturate(0.8);
}
.cert-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.cert-tag {
  font-family: var(--font-d); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--body);
  background: var(--bg); border: 1px solid var(--rule);
  padding: 5px 10px;
}
.partner-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; margin-top: 20px;
}
.partner-link:hover { color: var(--accent-h); }
@media (min-width: 768px) {
  .partner-inner { flex-direction: row; gap: 64px; align-items: stretch; }
  .partner-body { flex: 1.6; }
  .partner-aside { display: block; flex: 1; }
}

/* ══ PRODUCTS ══ */
.products { background: var(--surface); }
.products-inner { display: flex; flex-direction: column; gap: 40px; }
.product-list { list-style: none; }
.product-list > li {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 14px; color: var(--body);
  display: flex; align-items: flex-start; gap: 14px;
}
.product-list > li::before { content: ''; display: block; width: 4px; height: 4px; margin-top: 8px; background: var(--accent); flex-shrink: 0; }
.sub-list { list-style: none; padding-left: 18px; margin-top: 8px; }
.sub-list li { font-size: 13px; color: var(--mid); padding: 3px 0; display: flex; gap: 10px; }
.sub-list li::before { content: '—'; color: var(--steel); font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent);
  padding: 13px 24px; text-decoration: none; margin-top: 28px;
  -webkit-tap-highlight-color: transparent; transition: background 0.2s, color 0.2s;
}
.btn-outline:hover, .btn-outline:active { background: var(--accent); color: #fff; }
.products-visual { display: none; }
@media (min-width: 768px) {
  .products-inner { flex-direction: row; gap: 72px; align-items: start; }
  .products-inner > div:first-child { flex: 1; }
  .products-visual { display: block; flex: 1; position: relative; }
  .products-photo {
    width: 100%; height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    border: 1px solid var(--rule);
    filter: brightness(0.92) saturate(0.85);
  }
}

/* ══ INDUSTRIES ══ */
.industries { background: var(--bg-alt); }
.industries-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 32px;
}
.industry-item {
  padding: 20px 18px; background: var(--surface); border: 1px solid var(--rule);
  font-family: var(--font-d); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--head);
  cursor: pointer; position: relative;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.industry-item::after {
  content: '+';
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  font-family: var(--font-d); font-size: 18px; font-weight: 300;
  color: var(--accent); opacity: 0.7;
  transition: transform 0.25s, opacity 0.2s;
  line-height: 1;
}
.industry-item.active { background: var(--dark-band); color: #eef2f6; }
.industry-item.active::after { content: '−'; opacity: 1; color: var(--accent); }

.industry-detail {
  display: none;
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--accent);
  padding: 28px 24px 32px;
  animation: slideDown 0.28s ease;
}
.industry-detail.visible { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.industry-detail-label {
  font-family: var(--font-d); font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.industry-detail-label::before { content: ''; display: block; width: 16px; height: 1px; background: var(--accent); }
.industry-detail-title {
  font-family: var(--font-d); font-size: clamp(22px, 5vw, 30px);
  font-weight: 700; text-transform: uppercase; color: var(--head);
  line-height: 1.05; letter-spacing: 0.02em; margin-bottom: 18px;
}
.industry-detail-body p {
  font-size: 14px; color: var(--body); line-height: 1.85; margin-bottom: 12px;
}
.industry-detail-body p:last-child { margin-bottom: 0; }
.industry-detail-apps {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.industry-detail-apps-label {
  font-family: var(--font-d); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid);
  margin-bottom: 10px;
}
.industry-apps-list { display: flex; flex-wrap: wrap; gap: 6px; }
.industry-app-tag {
  font-family: var(--font-d); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--body);
  background: var(--bg); border: 1px solid var(--rule);
  padding: 5px 12px;
}
.industries-support { font-size: 13px; color: var(--mid); max-width: 520px; }

@media (min-width: 768px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-item { font-size: 15px; padding: 24px 26px; }
  .industry-item::after { right: 20px; }
  .industry-detail { padding: 36px 40px 40px; }
  .industry-detail-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
  .industry-detail-apps { margin-top: 0; padding-top: 0; border-top: none; border-left: 1px solid var(--rule); padding-left: 40px; }
}

/* ══ SERVICES ══ */
.services { background: var(--dark-band); }
.services .section-label { color: var(--accent); }
.services .section-title { color: #eef2f6; }
.services-grid { display: flex; flex-direction: column; gap: 2px; }
.service-block {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  padding: 28px 24px;
}
.service-block h3 {
  font-family: var(--font-d); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #eef2f6;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.service-list { list-style: none; }
.service-list li {
  font-size: 13px; color: #8a9ab0; padding: 6px 0;
  display: flex; gap: 10px; align-items: flex-start;
}
.service-list li::before { content: '—'; color: var(--accent); opacity: 0.6; flex-shrink: 0; font-size: 11px; margin-top: 2px; }
@media (min-width: 768px) {
  .services-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .service-block { padding: 36px 36px; }
  .service-block h3 { font-size: 18px; }
}

/* ══ CTA ══ */
.cta {
  background: var(--bg-alt); padding: 80px var(--px);
  text-align: center; position: relative; overflow: hidden;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, var(--rule) 39px, var(--rule) 40px);
  opacity: 0.35;
}
.cta-title {
  font-family: var(--font-d); font-size: clamp(42px, 12vw, 72px);
  font-weight: 800; text-transform: uppercase;
  color: var(--head); line-height: 1; margin-bottom: 16px; position: relative;
}
.cta-sub { font-size: 14px; color: var(--mid); margin: 0 auto 12px; max-width: 300px; position: relative; }
.cta-email {
  font-family: var(--font-d); font-size: 17px; letter-spacing: 0.08em;
  color: var(--accent); text-decoration: none; display: block;
  margin-bottom: 0; position: relative;
}
@media (min-width: 768px) {
  .cta { padding: 120px var(--px); }
  .cta-sub { max-width: 440px; font-size: 15px; }
}

/* ══ FOOTER ══ */
footer { background: var(--dark-band); padding: 40px var(--px); }
.footer-main {
  display: flex; flex-direction: column; gap: 36px;
}
.footer-brand {
  font-family: var(--font-d); font-size: 15px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: #eef2f6; margin-bottom: 8px;
}
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 12px; color: #4a5a6a; margin-bottom: 16px; }
.footer-email {
  font-family: var(--font-d); font-size: 13px; letter-spacing: 0.1em;
  color: var(--accent); text-decoration: none; display: inline-block; margin-bottom: 20px;
}
.footer-copy { font-size: 11px; color: #3a4a5a; }
.footer-links-col { flex-shrink: 0; }
.footer-links-label {
  font-family: var(--font-d); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: #4a5a6a;
  margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-links li {}
.footer-links a {
  font-family: var(--font-d); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8a9ab0; text-decoration: none;
  display: inline-block; padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-right { flex-shrink: 0; }
.footer-site-link {
  font-family: var(--font-d); font-size: 12px; letter-spacing: 0.1em;
  color: #4a5a6a; text-decoration: none;
}
.footer-site-link:hover { color: #8a9ab0; }
@media (min-width: 768px) {
  footer { padding: 56px var(--px); }
  .footer-main { flex-direction: row; align-items: flex-start; gap: 64px; }
  .footer-brand-col { flex: 1; }
  .footer-email { display: block; margin-bottom: 20px; }
  .footer-right { margin-left: auto; align-self: flex-end; }
}

/* ══ FADE IN ══ */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.65s ease forwards; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.22s; }
.fade-up.d3 { animation-delay: 0.36s; }
.fade-up.d4 { animation-delay: 0.5s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
