/* ========================================
   ROOT VARIABLES & BASE STYLES
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary:    #3674B5;
  --primary-light: #578FCA;
  --accent:     #FADA7A;
  --cream:      #F5F0CD;
  --dark:       #1a1a2e;
  --text:       #2d2d2d;
  --text-muted: #6b7280;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --shadow-sm:  0 2px 8px rgba(54,116,181,0.08);
  --shadow-md:  0 8px 30px rgba(54,116,181,0.14);
  --shadow-lg:  0 20px 60px rgba(54,116,181,0.18);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--dark);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ========================================
   UTILITY CLASSES
======================================== */
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 50px;
}

.title-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(54,116,181,0.09);
  border: 1px solid rgba(54,116,181,0.18);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary-custom:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   NAVBAR
======================================== */
.navbar-custom {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(54,116,181,0.1);
  padding: 16px 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1050;
}
.navbar-custom.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -0.02em;
}
.navbar-brand-custom span { color: var(--accent); }

.nav-link-custom {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after { width: calc(100% - 32px); }
.nav-link-custom:hover,
.nav-link-custom.active { color: var(--primary) !important; }

.navbar-toggler-custom {
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
}
.navbar-toggler-custom span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO SLIDER
======================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--dark);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
}
.slide.active { opacity: 1; z-index: 1; }
.slide.prev   { opacity: 0; z-index: 2; }

.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-in-out;
}
.slide.active img { transform: scale(1); }

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.6) 0%, rgba(54,116,181,0.25) 100%);
  z-index: 3;
}

.slider-controls {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 28px;
  border-radius: 5px;
}

.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.slider-arrow:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.slider-prev { left: 30px; }
.slider-next { right: 30px; }

/* ========================================
   ABOUT SECTION
======================================== */
.about-section { background: var(--white); }

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%; height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-badge {
  position: absolute;
  bottom: 24px; left: -20px;
  background: var(--accent);
  color: var(--dark);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}
.about-badge span { display: block; font-size: 2rem; line-height: 1; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.stat-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.stat-box .number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-box .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ========================================
   PRODUCTS SECTION
======================================== */
.products-section { background: var(--cream); }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-card-img img { transform: scale(1.08); }

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(54,116,181,0.85), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 24px;
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-body { padding: 20px; }
.product-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }

/* ========================================
   BLOG SECTION
======================================== */
.blog-section { background: var(--white); }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.blog-card-img { height: 220px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.07); }

.blog-card-body { padding: 24px; }
.blog-meta {
  display: flex; gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-meta i { color: var(--primary-light); margin-right: 4px; }
.blog-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

/* ========================================
   TEAM SECTION
======================================== */
.team-section { background: linear-gradient(135deg, var(--cream) 0%, rgba(245,240,205,0.4) 100%); }

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding-bottom: 28px;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.team-img-wrap {
  position: relative;
  overflow: hidden;
  height: 260px;
}
.team-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrap img { transform: scale(1.06); }

.team-social {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(54,116,181,0.95), transparent);
  padding: 28px 16px 12px;
  display: flex; justify-content: center; gap: 12px;
  opacity: 0;
  transform: translateY(100%);
  transition: var(--transition);
}
.team-card:hover .team-social { opacity: 1; transform: translateY(0); }
.team-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.85rem;
  transition: var(--transition);
}
.team-social a:hover { background: var(--accent); color: var(--dark); }

.team-name { font-size: 1.1rem; font-weight: 700; margin: 20px 0 4px; }
.team-role { font-size: 0.85rem; color: var(--primary-light); font-weight: 500; }

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 0;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand span { color: var(--accent); }
.footer p { font-size: 0.9rem; line-height: 1.8; }

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(250,218,122,0.3);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before { content: '→'; font-size: 0.75rem; opacity: 0; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 16px; font-size: 0.9rem;
}
.footer-contact-item i {
  color: var(--accent);
  margin-top: 2px; min-width: 16px;
}

.footer-social {
  display: flex; gap: 10px; margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); transform: translateY(-3px); }

.footer-bottom {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   BREADCRUMB
======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(250,218,122,0.12);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.breadcrumb-custom { position: relative; z-index: 1; }
.breadcrumb-custom .breadcrumb-item a { color: var(--accent); }
.breadcrumb-custom .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.breadcrumb-custom .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-custom .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5); }

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(54,116,181,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  color: white; font-size: 2rem; cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { color: var(--accent); transform: rotate(90deg); }

/* ========================================
   PRODUCT DETAILS
======================================== */
.product-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.product-detail-img img { width: 100%; max-height: 500px; object-fit: cover; }

.product-detail-info { padding: 10px 0; }
.product-detail-title { font-size: 2.2rem; margin-bottom: 16px; }
.product-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 10px;
}
.feature-list li i { color: var(--primary); }

/* ========================================
   BLOG DETAILS
======================================== */
.blog-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.blog-detail-img img { width: 100%; max-height: 480px; object-fit: cover; }

.blog-content h3 { font-size: 1.5rem; margin: 28px 0 12px; }
.blog-content p { margin-bottom: 16px; font-size: 0.98rem; line-height: 1.9; }
.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}

.blog-tags { margin-top: 32px; }
.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 4px;
  border: 1px solid rgba(54,116,181,0.2);
}

/* ========================================
   CONTACT
======================================== */
.contact-section { background: var(--white); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-label-custom { font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }

.form-control-custom {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
  outline: none;
  color: var(--text);
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54,116,181,0.12);
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: white;
  height: 100%;
}
.contact-info-card h3 { color: white; margin-bottom: 8px; }
.contact-detail {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 28px;
}
.contact-icon {
  width: 46px; height: 46px; min-width: 46px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-detail h5 { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; font-family: 'DM Sans'; }
.contact-detail p { font-size: 0.95rem; opacity: 0.9; margin: 0; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 50px;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { display: block; width: 100%; height: 400px; }

/* ========================================
   ALERT / TOAST
======================================== */
.alert-custom {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ========================================
   ABOUT PAGE SPECIFIC
======================================== */
.values-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
  text-align: center;
}
.values-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.values-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: white; font-size: 1.5rem;
}

/* ========================================
   AOS-LIKE ANIMATIONS
======================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animated {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-left"].aos-animated { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="fade-right"].aos-animated { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos="zoom-in"].aos-animated { transform: scale(1); }

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: var(--dark); transform: translateY(-4px); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
  .about-badge { left: 10px; }
  .contact-form-wrap { padding: 32px 24px; }
  .contact-info-card { padding: 32px 24px; }
}

@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .hero-slider { height: 70vh; min-height: 400px; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .stat-box .number { font-size: 1.5rem; }
  .slider-arrow { width: 40px; height: 40px; font-size: 0.9rem; }
  .slider-prev { left: 12px; }
  .slider-next { right: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-detail-img img { max-height: 280px; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
