/* ============================================================
   JAMILI CARPETS — Enterprise Stylesheet
   Colors: #0D1B2A, #1B365D, #C99A47, #E6C17A, #F5EBDD
   ============================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --color-navy-dark: #0D1B2A;
  --color-navy: #1B365D;
  --color-gold: #C99A47;
  --color-gold-light: #E6C17A;
  --color-cream: #F5EBDD;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gray: #6B7280;
  --color-gray-light: #E5E7EB;
  --color-gray-lighter: #F9FAFB;
  --color-red: #DC2626;
  --color-green: #16A34A;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.20);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container-max: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-navy-dark);
  background: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* ===== UTILITY ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-cream { color: var(--color-cream); }
.text-white { color: var(--color-white); }
.text-navy { color: var(--color-navy); }

.bg-navy-dark { background: var(--color-navy-dark); }
.bg-navy { background: var(--color-navy); }
.bg-gold { background: var(--color-gold); }
.bg-cream { background: var(--color-cream); }
.bg-white { background: var(--color-white); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--color-gray);
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-navy-dark);
  border-color: var(--color-white);
}

.btn-light:hover {
  background: var(--color-cream);
  border-color: var(--color-cream);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-navy-dark);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(201,154,71,0.2);
}

.header.scrolled {
  height: 64px;
  background: rgba(13,27,42,0.97);
  box-shadow: var(--shadow-md);
}

.navbar {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .nav-logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--color-cream);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-cta {
  margin-left: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: var(--header-height);
}

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

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,27,42,0.85) 0%, rgba(27,54,93,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 .highlight {
  color: var(--color-gold-light);
}

.hero-content p {
  color: var(--color-cream);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-cream);
  font-size: 0.85rem;
  text-align: center;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  margin: 0 auto;
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

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

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13,27,42,0.88) 0%, rgba(27,54,93,0.82) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}

.page-hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero-content p {
  color: var(--color-cream);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-gold-light);
}

.breadcrumb span {
  color: var(--color-cream);
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-gray-light);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 50%;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-navy-dark);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-gray);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: var(--color-navy-dark);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.stat-item p {
  color: var(--color-cream);
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTENT BLOCKS (image + text) ===== */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-block-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.content-block-image:hover img {
  transform: scale(1.05);
}

.content-block-text h2 {
  margin-bottom: 1.5rem;
}

.content-block-text p {
  color: var(--color-gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-block-text .btn {
  margin-top: 1.5rem;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-gray-light);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-navy);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.product-card-body .product-desc {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-spec {
  background: var(--color-cream);
  color: var(--color-navy);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

.product-spec strong {
  color: var(--color-gold);
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-light);
}

.product-price {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13,27,42,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--color-navy-dark);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-images {
  position: relative;
}

.modal-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background: var(--color-navy);
}

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
}

.modal-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.modal-thumbnail.active {
  border-color: var(--color-gold);
}

.modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 2rem;
}

.modal-details h2 {
  margin-bottom: 1rem;
}

.modal-details .product-description {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.modal-spec-table {
  width: 100%;
  margin-bottom: 1.5rem;
}

.modal-spec-table tr {
  border-bottom: 1px solid var(--color-gray-light);
}

.modal-spec-table td {
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.modal-spec-table td:first-child {
  font-weight: 600;
  color: var(--color-navy);
  width: 40%;
}

.modal-spec-table td:last-child {
  color: var(--color-gray);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-gray-light);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  border-radius: var(--radius-md);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question .faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-question .faq-icon {
  background: var(--color-gold);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

.faq-answer p {
  color: var(--color-gray);
  line-height: 1.8;
  margin: 0;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--color-navy-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--color-cream);
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,154,71,0.15);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-info-item .contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
}

.contact-info-item .contact-text h4 {
  color: var(--color-gold-light);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-info-item .contact-text p,
.contact-info-item .contact-text a {
  color: var(--color-cream);
  font-size: 0.95rem;
  margin: 0;
}

.contact-info-item .contact-text a:hover {
  color: var(--color-gold);
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,154,71,0.2);
}

.contact-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,154,71,0.15);
  border-radius: 50%;
  transition: var(--transition);
}

.contact-social a:hover {
  background: var(--color-gold);
  transform: translateY(-3px);
}

.contact-social a svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
  transition: var(--transition);
}

.contact-social a:hover svg {
  color: var(--color-navy-dark);
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  margin-bottom: 0.5rem;
}

.contact-form-card .form-intro {
  color: var(--color-gray);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-navy-dark);
  background: var(--color-gray-lighter);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(201,154,71,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(22,163,74,0.1);
  color: var(--color-green);
  border: 1px solid var(--color-green);
}

.form-message.error {
  display: block;
  background: rgba(220,38,38,0.1);
  color: var(--color-red);
  border: 1px solid var(--color-red);
}

/* ===== MAP ===== */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-light));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
  margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  background: var(--color-gold);
  border: 3px solid var(--color-cream);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -8px;
}

.timeline-item:nth-child(even)::after {
  left: -8px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--color-gold);
}

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

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  border-radius: 50%;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-cream);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-navy-dark);
  color: var(--color-cream);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(245,235,221,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,154,71,0.15);
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-gold);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  transition: var(--transition);
}

.footer-social a:hover svg {
  color: var(--color-navy-dark);
}

.footer-col h4 {
  color: var(--color-gold-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(245,235,221,0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item span,
.footer-contact-item a {
  color: rgba(245,235,221,0.7);
  font-size: 0.9rem;
}

.footer-contact-item a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(201,154,71,0.2);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(245,235,221,0.5);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
}

/* ===== ADMIN PANEL ===== */
.admin-header {
  background: var(--color-navy-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.admin-header h1 {
  color: var(--color-gold);
  font-size: 1.5rem;
  margin: 0;
}

.admin-header .admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-header .admin-user span {
  color: var(--color-cream);
  font-size: 0.9rem;
}

.admin-logout {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.admin-logout:hover {
  background: var(--color-gold-light);
}

.admin-login {
  max-width: 400px;
  margin: 4rem auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.admin-login h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.admin-login p {
  text-align: center;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--color-white);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.admin-tab {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gray);
  transition: var(--transition);
}

.admin-tab.active {
  background: var(--color-navy-dark);
  color: var(--color-gold);
}

.admin-tab:hover:not(.active) {
  background: var(--color-cream);
  color: var(--color-navy-dark);
}

.admin-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.admin-panel h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-gray-light);
}

.admin-field {
  margin-bottom: 1.5rem;
}

.admin-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-navy-dark);
  background: var(--color-white);
  transition: var(--transition);
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,154,71,0.1);
}

.admin-field textarea {
  resize: vertical;
  min-height: 100px;
}

.admin-field .hint {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: 0.25rem;
}

.admin-image-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-image-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-gray-light);
  background: var(--color-gray-lighter);
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-navy-dark);
  color: var(--color-gold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.admin-upload-btn:hover {
  background: var(--color-navy);
}

.admin-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.admin-save-btn:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.admin-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-product-card {
  background: var(--color-gray-lighter);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-gray-light);
}

.admin-product-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.admin-product-card .admin-product-images {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-product-card .admin-product-images img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.admin-product-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-product-actions button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.admin-edit-btn {
  background: var(--color-navy);
  color: var(--color-white);
}

.admin-edit-btn:hover {
  background: var(--color-navy-dark);
}

.admin-delete-btn {
  background: var(--color-red);
  color: var(--color-white);
}

.admin-delete-btn:hover {
  background: #B91C1C;
}

.admin-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-green);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.admin-add-btn:hover {
  background: #15803D;
  transform: translateY(-2px);
}

.admin-faq-list .admin-faq-item {
  background: var(--color-gray-lighter);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-gray-light);
}

.admin-messages-list .admin-message-item {
  background: var(--color-gray-lighter);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-gray-light);
  border-left: 4px solid var(--color-gold);
}

.admin-message-item.unread {
  border-left-color: var(--color-red);
  background: rgba(220,38,38,0.05);
}

.admin-message-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.admin-message-item .message-meta {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-bottom: 0.75rem;
}

.admin-message-item p {
  font-size: 0.9rem;
  color: var(--color-navy-dark);
}

.admin-loading {
  text-align: center;
  padding: 3rem;
  color: var(--color-gray);
}

.admin-loading .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-gray-light);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

.admin-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy-dark);
  color: var(--color-gold);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.admin-toast.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

.admin-toast.error {
  background: var(--color-red);
  color: var(--color-white);
}

.admin-toast.success {
  background: var(--color-green);
  color: var(--color-white);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 12px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  .features-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

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

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

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    transform: translateX(-100%);
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(201,154,71,0.1);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }

  .features-grid,
  .values-grid,
  .stats-grid,
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3rem;
    padding-right: 0;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-item::after {
    left: 12px !important;
    right: auto !important;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 2rem 1.5rem;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-content {
    border-radius: 0;
    max-height: 100vh;
    min-height: 100vh;
  }

  .modal-main-image {
    height: 250px;
  }

  .modal-details {
    padding: 1.5rem;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .admin-tab {
    white-space: nowrap;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ===== RESPONSIVE: SMALL MOBILE ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .stat-item h3 {
    font-size: 2.25rem;
  }

  .product-card-body {
    padding: 1.25rem;
  }

  .contact-info-card,
  .contact-form-card,
  .admin-panel {
    padding: 1.5rem;
  }

  .admin-login {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }
}

/* ===== PRINT ===== */
@media print {
  .header, .footer, .whatsapp-float, .nav-toggle, .hero-scroll {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
