/* =========================================
   PRECISIONPRINT THAILAND — MASTER STYLESHEET
   Premium Industrial Printing
   ========================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #C40000;
  --red-dark:  #8B0000;
  --red-light: #FF1A1A;
  --black:     #0A0A0A;
  --dark-1:    #111111;
  --dark-2:    #1A1A1A;
  --dark-3:    #222222;
  --dark-4:    #2E2E2E;
  --gray-1:    #888888;
  --gray-2:    #BBBBBB;
  --light-1:   #F5F5F5;
  --light-2:   #FAFAFA;
  --white:     #FFFFFF;
  --silver:    #C0C0C0;
  --metallic:  linear-gradient(135deg, #888 0%, #C0C0C0 50%, #888 100%);

  --font-display: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.25);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.4);
  --shadow-red: 0 8px 32px rgba(196,0,0,0.3);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1320px;
  --container-md: 960px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--light-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

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

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-text {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 24px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--gray-2);
  max-width: 560px;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-3);
  color: var(--white);
  border: 1px solid var(--dark-4);
}
.btn-dark:hover {
  background: var(--dark-4);
  border-color: var(--red);
  color: var(--white);
}

.btn-arrow::after {
  content: '→';
  font-family: var(--font-body);
  font-size: 18px;
  transition: transform var(--transition);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  letter-spacing: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-primary {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.1em;
}

.logo-secondary {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: var(--gray-1);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-links > li > a.active {
  color: var(--red);
  background: rgba(196,0,0,0.1);
}

.dropdown-arrow {
  font-size: 8px;
  opacity: 0.5;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--gray-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.dropdown-menu li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  padding-left: 20px;
}

.nav-cta {
  flex-shrink: 0;
}

.btn-quote {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-quote:hover {
  background: var(--red-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- SECTIONS --- */
section { position: relative; }

.section-light {
  background: var(--light-2);
  color: var(--dark-1);
}

.section-light .section-title { color: var(--dark-1); }
.section-light .section-subtitle { color: #555; }

.section-dark { background: var(--dark-1); }
.section-darker { background: var(--black); }
.section-medium { background: var(--dark-2); }

/* --- DIVIDER --- */
.red-rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
}

/* --- CARDS --- */
.card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(196,0,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.card-light {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--dark-1);
  transition: all var(--transition);
}

.card-light:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}

/* --- GRID --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* --- PAGE HERO (for inner pages) --- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--dark-1);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(196,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 120px);
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 24px;
}

.page-hero p {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-2);
  max-width: 600px;
  line-height: 1.7;
}

/* --- FLOATING LINE BUTTON --- */
.float-line {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #00B900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(0,185,0,0.4);
  transition: all var(--transition);
}

.float-line:hover {
  background: #00D600;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,185,0,0.5);
}

.float-line-icon {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  padding: 80px 0 64px;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-1);
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(196,0,0,0.1);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  font-size: 14px;
  color: var(--gray-1);
  transition: all var(--transition);
  display: inline-block;
}

.footer-nav ul li a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact address {
  font-style: normal;
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.8;
}

.footer-contact address p { margin-bottom: 14px; }
.footer-contact address a { color: var(--gray-2); }
.footer-contact address a:hover { color: var(--white); }

.footer-contact strong {
  color: var(--white);
  font-weight: 600;
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.line-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00B900;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  transition: all var(--transition);
}

.line-cta:hover {
  background: #00D600;
  color: var(--white);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: none;
}

.copyright {
  font-size: 13px;
  color: var(--gray-1);
}

.footer-legal {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.footer-legal a {
  color: var(--gray-1);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--white); }

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- UTILITIES --- */
.text-red { color: var(--red); }
.text-gray { color: var(--gray-1); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-1);
    z-index: 999;
    padding: 100px 40px 40px;
    gap: 4px;
    overflow-y: auto;
  }

  .nav-links.open > li > a {
    font-size: 28px;
    padding: 12px 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding-left: 20px;
    box-shadow: none;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container, .container-md { padding: 0 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .float-line {
    bottom: 20px;
    right: 20px;
  }
}
