/* ============================================
   Phu My Tan Plastic — Company Website
   ============================================ */

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

:root {
  --color-primary: #1f8b3a;
  --color-primary-dark: #15692a;
  --color-primary-light: #d4f4dc;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #ffffff;
  --color-bg-light: #f5fbf6;
  --color-border: #e3e8e5;
  --shadow-sm: 0 2px 8px rgba(31, 139, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 139, 58, 0.12);
  --radius: 12px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "Roboto", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-primary);
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text-fallback {
  display: none; /* Ẩn mặc định — chỉ hiện khi logo image fail load (qua onerror JS) */
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #f5fbf6 0%, #e8f5ec 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 139, 58, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-text-muted);
  margin-bottom: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle strong {
  color: var(--color-text);
}

.hero-meta {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

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

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--color-bg-light);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.about-content strong {
  color: var(--color-text);
}

.about-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

/* ============================================
   PRODUCTS
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}

.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--color-primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-icon svg {
  width: 100%;
  height: 100%;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.product-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--color-primary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.contact-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contact-card a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ============================================
   MAP
   ============================================ */
.map-wrap {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
}

.map-actions {
  text-align: center;
  margin-top: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0d2814;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.footer-logo .logo-name {
  color: white;
  font-size: 22px;
}

.footer-logo .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-col strong {
  color: white;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header-inner {
    height: 70px;
  }

  .logo-img {
    height: 48px;
  }

  .map-wrap iframe {
    height: 350px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

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

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

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
