/* GUIRUI ELECTRONIC - Light Mint Theme - Differentiated style */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-bg: #ccfbf1;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 2.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.logo:hover { color: var(--accent-light); }
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Hero - Full viewport carousel */
.hero-fullscreen {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,250,252,0.4) 0%, rgba(248,250,252,0.85) 100%);
  z-index: 1;
}
.hero-slides .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slides .hero-slide.active { opacity: 1; z-index: 1; }
.hero-slides .hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.hero-copy-panels {
  display: grid;
}
.hero-copy-panels > .hero-copy {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  pointer-events: none;
}
.hero-copy-panels > .hero-copy.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-center .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-center h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}
.hero-center p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}
.hero-btn:hover { background: var(--accent-light); transform: translateY(-2px); }

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}
.hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dots span.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

/* Section common */
section { padding: 4rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.sect-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.sect-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

/* Products - 4-col fixed grid */
.products-section { background: var(--bg-white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.product-card .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card .card-body {
  padding: 1.25rem;
}
.product-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* About section */
.about-section { background: var(--bg-light); }
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img-main {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-intro p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Testimonials */
.testimonials-section { background: var(--bg-white); }
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--accent); }
.testimonial-card .stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* Message section - left image, right form */
.message-section {
  background: var(--bg-light);
  padding: 4rem 2rem;
}
.message-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.message-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.message-img img { width: 100%; height: 100%; object-fit: cover; }
.message-form {
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-send {
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-send:hover { background: var(--accent-light); transform: translateY(-2px); }

/* Footer */
.site-footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-logo { display: block; margin-bottom: 1rem; }
.footer-logo img { max-height: 44px; }
.footer-desc {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
  color: #94a3b8;
}
.footer-nav h4, .footer-contact h4, .footer-social h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}
.footer-nav ul { list-style: none; }
.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: white; }
.footer-contact p, .footer-contact a {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  text-decoration: none;
}
.footer-contact a:hover { color: white; }
.footer-social-links { display: flex; gap: 0.5rem; }
.footer-social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s;
}
.footer-social-links a:hover {
  background: var(--accent);
  color: white;
}
.footer-copy {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #64748b;
}

.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.3s;
  z-index: 999;
  font-size: 1.1rem;
}
.back-top:hover { opacity: 1; }

/* Contact page */
.contact-banner {
  height: 280px;
  overflow: hidden;
  margin-top: 60px;
}
.contact-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-content {
  padding: 4rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.contact-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.contact-img img { width: 100%; height: 100%; object-fit: cover; }
.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.contact-info .info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.contact-info .info-item i {
  color: var(--accent);
  width: 24px;
  flex-shrink: 0;
}
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* About page */
.page-header {
  padding: 7rem 2rem 3rem;
  background: var(--bg-white);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}
.page-header p { color: var(--text-muted); }
.about-content {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.about-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.about-img-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .contact-grid { grid-template-columns: 1fr; }
  .testimonial-cards { grid-template-columns: 1fr; }
  .message-inner { grid-template-columns: 1fr; }
  .message-img { order: -1; }
}
@media (max-width: 768px) {
  .site-header { padding: 0.75rem 1rem; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 4rem 2rem;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .nav-menu.open { right: 0; }
  .menu-toggle { display: block; z-index: 201; }
  section { padding: 3rem 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { max-width: none; }
  .footer-social-links { justify-content: center; }
  .about-img-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-banner { height: 200px; }
}
