/*
Theme Name: HTX Tịnh Trà
Theme URI: 
Author: Antigravity
Author URI: 
Description: Giao diện Landing Page Đỉnh Cao, Cao Cấp dành cho HTX Tịnh Trà.
Version: 2.0
Text Domain: tinhtra
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --primary: #143d2c;      /* Deep Forest Green */
  --primary-light: #1f5c42;
  --gold: #d4af37;         /* Premium Gold */
  --gold-hover: #f1c94f;
  --dark: #0a1a13;
  --light: #fcfaf5;        /* Warm Cream */
  --white: #ffffff;
  --text: #4a5568;
  --text-light: #718096;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(20, 61, 44, 0.05), 0 2px 4px -1px rgba(20, 61, 44, 0.03);
  --shadow-lg: 0 20px 40px -5px rgba(20, 61, 44, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.3;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 120px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.section-title {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

.text-center {
  text-align: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn i { font-size: 1.1rem; }

.btn-primary {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(20, 61, 44, 0.3);
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(20, 61, 44, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 25px 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

header.scrolled .logo { color: var(--primary); }
.logo span { color: var(--gold); }
.logo img { max-height: 55px; width: auto; border-radius: 0; }

nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

header.scrolled nav a { color: var(--primary); }
nav a:hover, nav a.active { color: var(--gold); }

/* HERO */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(10, 26, 19, 0.8) 0%, rgba(10, 26, 19, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-top: 80px;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-btns { display: flex; gap: 20px; }

/* ABOUT SECTION - COLLAGE */
.about {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  position: relative;
}

.collage-img-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  margin-top: 40px;
}

.collage-img-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.collage-img-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.about-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.about-collage img:hover { transform: scale(1.03); }

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 20px;
}

/* PREMIUM PRODUCTS */
.products {
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 450px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-card img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.7s ease;
}

.product-card:hover img { transform: scale(1.08); }

.product-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(20, 61, 44, 0.95) 0%, rgba(20, 61, 44, 0.4) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
}

.product-overlay h3 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.product-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* TIMELINE PROCESS */
.process {
  background: var(--light);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; width: 2px; height: 100%;
  background: rgba(212, 175, 55, 0.3);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-img, .timeline-content {
  width: 45%;
}

.timeline-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.timeline-dot {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: var(--gold);
  border: 5px solid var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-content h4 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.timeline-content p {
  font-size: 1.1rem;
  color: var(--text);
}

/* VIDEO SECTION */
.video-section {
  background: var(--primary);
  color: var(--white);
}

.video-section .section-title, .video-section .section-subtitle, .video-section .section-desc {
  color: var(--white);
}

.video-section .section-subtitle { color: var(--gold); }

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
}

.video-card video { width: 100%; display: block; }

/* GALLERY GRID */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 0;
}

.gallery-item:hover img { transform: scale(1.05); }

/* CONTACT */
.contact {
  background: var(--light);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-img {
  position: relative;
}

.contact-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.contact-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(20, 61, 44, 0.85);
  padding: 60px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-overlay h3 { color: var(--gold); font-size: 2.5rem; margin-bottom: 30px; }

.c-info { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.c-info i { font-size: 1.5rem; color: var(--gold); margin-top: 5px; }
.c-info p { font-size: 1.1rem; line-height: 1.5; }

.contact-form { padding: 60px; }
.contact-form h3 { font-size: 2rem; margin-bottom: 30px; color: var(--primary); }

.form-group { margin-bottom: 24px; }
.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #f8fafc;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

textarea.form-control { height: 150px; resize: none; }

/* FOOTER */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.footer-social a {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--primary); transform: translateY(-5px); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .timeline::before { left: 40px; }
  .timeline-dot { left: 40px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; align-items: flex-start; padding-left: 100px; }
  .timeline-img, .timeline-content { width: 100%; margin-bottom: 20px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .about-collage { grid-template-columns: 1fr; }
  .collage-img-1, .collage-img-2, .collage-img-3 { grid-column: 1; grid-row: auto; margin-top: 0; }
  .product-grid, .video-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large, .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
  .contact-overlay { padding: 40px 20px; }
  .contact-form { padding: 40px 20px; }
}
