/*
 Theme Name:   Flatsome Child - AlpLixil
 Theme URI:    https://www.alplixil.com/
 Description:  Child theme for Flatsome - LIXIL Vietnam ALP Program
 Author:       LIXIL Vietnam
 Author URI:   https://www.alplixil.com/
 Template:     flatsome
 Version:      1.0.0
 Text Domain:  flatsome-child-alplixil
*/

/* ============================================================
   LIXIL Brand Colors
   Primary: #f26f21 (LIXIL Orange)
   Secondary: #1a1a1a (Dark)
   Light: #f4f4f4
   White: #ffffff
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Quicksand:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* ============================================================
   CSS Custom Properties (Variables)
   ============================================================ */
:root {
  --lixil-orange: #f26f21;
  --lixil-orange-dark: #d45e10;
  --lixil-orange-light: #f5893e;
  --lixil-dark: #1a1a1a;
  --lixil-gray: #555555;
  --lixil-light: #f4f4f4;
  --lixil-white: #ffffff;
  --font-primary: 'Open Sans', sans-serif;
  --font-heading: 'Quicksand', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
}

/* ============================================================
   Base Typography
   ============================================================ */
body {
  font-family: var(--font-primary);
  color: var(--lixil-dark);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--lixil-dark);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

/* ============================================================
   Flatsome Override: Primary Color -> LIXIL Orange
   ============================================================ */
.primary-color,
.color-primary {
  color: var(--lixil-orange) !important;
}

.primary-bg,
.bg-primary,
.ux-btn.primary,
a.button.primary,
.button.primary,
input[type="submit"],
button[type="submit"] {
  background-color: var(--lixil-orange) !important;
  border-color: var(--lixil-orange) !important;
  color: #fff !important;
}

.ux-btn.primary:hover,
a.button.primary:hover,
.button.primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--lixil-orange-dark) !important;
  border-color: var(--lixil-orange-dark) !important;
}

/* Outline button */
.button.outline,
.ux-btn.outline {
  border: 2px solid var(--lixil-orange) !important;
  color: var(--lixil-orange) !important;
  background: transparent !important;
}
.button.outline:hover,
.ux-btn.outline:hover {
  background: var(--lixil-orange) !important;
  color: #fff !important;
}

/* ============================================================
   Site Header
   ============================================================ */
.header-main {
  background-color: var(--lixil-white);
  border-bottom: 2px solid var(--lixil-orange);
}

.header-top {
  background-color: var(--lixil-orange);
  color: #fff;
}

.header-top a {
  color: #fff;
}

/* Logo Area */
.logo a {
  display: inline-block;
}

/* Navigation */
.nav-dark .nav > li > a,
.header-nav.nav-dark > li > a {
  color: var(--lixil-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.nav > li > a:hover,
.nav > li.active > a,
.nav > li.current-menu-item > a {
  color: var(--lixil-orange) !important;
}

/* ============================================================
   Hero / Banner Section
   ============================================================ */
.alp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 600px;
}

.alp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(242,111,33,0.15));
  z-index: 1;
}

.alp-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 40px 80px;
  color: #fff;
}

.alp-hero__title {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  line-height: 1.2;
}

.alp-hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.alp-hero__cta {
  display: inline-block;
  background: var(--lixil-orange);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(242,111,33,0.4);
}

.alp-hero__cta:hover {
  background: var(--lixil-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,111,33,0.5);
}

/* ============================================================
   Section Styles
   ============================================================ */
.alp-section {
  padding: 80px 0;
}

.alp-section--orange {
  background: var(--lixil-orange);
  color: #fff;
}

.alp-section--orange h2,
.alp-section--orange h3,
.alp-section--orange p {
  color: #fff;
}

.alp-section--light {
  background: var(--lixil-light);
}

.alp-section--dark {
  background: var(--lixil-dark);
  color: #fff;
}

.alp-section__title {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}

.alp-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--lixil-orange);
}

.alp-section--orange .alp-section__title::after {
  background: #fff;
}

.alp-section__title.centered {
  text-align: center;
}

.alp-section__title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   Gallery / Image Grid
   ============================================================ */
.alp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.alp-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: #f0f0f0;
}

.alp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.alp-gallery__item:hover img {
  transform: scale(1.08);
}

/* ============================================================
   Cards / Posts
   ============================================================ */
.alp-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.alp-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.alp-card__body {
  padding: 24px;
}

.alp-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--lixil-dark);
}

.alp-card__excerpt {
  color: var(--lixil-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.alp-card__link {
  display: inline-block;
  color: var(--lixil-orange);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.alp-card__link:hover {
  border-color: var(--lixil-orange);
}

/* ============================================================
   Carousel / Slider Override (Flatsome)
   ============================================================ */
.flickity-page-dots .dot {
  background: var(--lixil-orange);
}

.slider-nav-circle .flickity-prev-next-button {
  background: var(--lixil-orange);
}

/* ============================================================
   Footer
   ============================================================ */
.footer-bottom {
  background: var(--lixil-dark);
  color: rgba(255,255,255,0.7);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-main {
  background: #111;
  color: rgba(255,255,255,0.8);
}

.footer-main h4,
.footer-main .widget-title {
  color: var(--lixil-orange);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-main a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-main a:hover {
  color: var(--lixil-orange);
}

/* ============================================================
   Xem thêm button (Orange style)
   ============================================================ */
.btn-xem-them,
.btn-orange {
  display: inline-block;
  background: var(--lixil-orange);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid var(--lixil-orange);
}

.btn-xem-them:hover,
.btn-orange:hover {
  background: var(--lixil-orange-dark);
  border-color: var(--lixil-orange-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-orange { color: var(--lixil-orange) !important; }
.bg-orange { background-color: var(--lixil-orange) !important; }
.border-orange { border-color: var(--lixil-orange) !important; }

.font-quicksand { font-family: var(--font-heading) !important; }
.font-montserrat { font-family: var(--font-accent) !important; }

.lixil-divider {
  height: 3px;
  background: linear-gradient(to right, var(--lixil-orange), transparent);
  border: none;
  margin: 30px 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .alp-hero__title { font-size: 2rem; }
  .alp-hero__content { padding: 80px 20px 60px; }
  .alp-section { padding: 50px 0; }
  .alp-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .alp-gallery { grid-template-columns: 1fr; }
}
