/* ============================================================
   HAMEDCO — Page-Specific Styles
   Homepage, About, Product, Contact, etc.
   ============================================================ */

/* ── Plus-sign pattern (reusable) ──────────────────────── */
.pattern-plus::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 16v8M16 20h8' stroke='rgba(255,255,255,0.06)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}

/* ── Hero Carousel ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--color-white);
}

.hero-carousel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active { opacity: 1; z-index: 1; }

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

/* Left-to-right gradient overlay for text readability */
.hero-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(20,95,108,0.96) 0%,
    rgba(26,122,138,0.88) 35%,
    rgba(43,158,179,0.65) 60%,
    rgba(43,158,179,0.35) 80%,
    rgba(43,158,179,0.15) 100%
  );
}

/* Pattern overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 16v8M16 20h8' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 640px;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-8);
  line-height: 1.6;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Carousel Dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  position: relative;
}

/* Invisible touch area for accessibility (44px target) */
.hero-dot::before {
  content: '';
  position: absolute;
  inset: -15px;
}

.hero-dot.active {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.15);
}

@media (max-width: 639px) {
  .hero { min-height: 520px; }
  .hero .container { min-height: 520px; padding-top: var(--space-12); padding-bottom: var(--space-16); }
  .hero p { font-size: 1.0625rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ── Page Hero (Inner pages) ────────────────────────────── */
.page-hero {
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='dots2' patternUnits='userSpaceOnUse' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23dots2)'/%3E%3C/svg%3E");
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 600px;
}

.page-hero .breadcrumbs {
  margin-bottom: var(--space-4);
  padding: 0;
}

.page-hero .breadcrumbs .breadcrumb-item {
  color: rgba(255,255,255,0.7);
}

.page-hero .breadcrumbs .breadcrumb-item:hover {
  color: var(--color-white);
}

.page-hero .breadcrumbs .breadcrumb-separator {
  color: rgba(255,255,255,0.4);
}

.page-hero .breadcrumbs .breadcrumb-current {
  color: rgba(255,255,255,0.9);
}

/* ── About Page ─────────────────────────────────────────── */
.about-intro-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.value-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  background: var(--color-primary-light);
  border-radius: 50%;
  color: var(--color-primary);
}

.value-card-icon svg {
  width: 32px;
  height: 32px;
}

.value-card h3 {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ── Product Detail Page ────────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 767px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-gray-200);
}

.product-tabs-section {
  margin-top: var(--space-12);
}

.related-products {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-gray-200);
}

/* ── Products Listing ───────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1023px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .products-grid { grid-template-columns: 1fr; }
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── Contact Page ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.office-card {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.office-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.office-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.office-detail {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-gray-700);
}

.office-detail svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-gray-400);
  margin-top: 3px;
}

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-section {
  margin-top: var(--space-12);
}

.contact-form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
}

/* ── Map Embed ──────────────────────────────────────────── */
.map-embed {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
}

/* ── Career Page ────────────────────────────────────────── */
.career-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.perk-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

.perk-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .career-perks { grid-template-columns: 1fr; }
}

/* ── Quote Request Page ─────────────────────────────────── */
.quote-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.quote-sidebar {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.quote-sidebar h3 {
  margin-bottom: var(--space-4);
}

.quote-benefit {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 0.9375rem;
}

.quote-benefit:last-child {
  border-bottom: none;
}

.quote-benefit svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-success);
  margin-top: 2px;
}

@media (max-width: 767px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Partner Detail ─────────────────────────────────────── */
.partner-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-10);
}

.partner-logo-large {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  object-fit: contain;
}

@media (max-width: 639px) {
  .partner-detail-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Why Choose Us ─────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.why-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.why-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-item h4, .why-item h3.h4 {
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.why-item p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── Testimonials ──────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-base);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

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

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 56px;
  color: var(--color-primary);
  opacity: .15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card blockquote {
  font-size: 14px;
  color: var(--color-gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(43,158,179,.15);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900);
}

.testimonial-role {
  font-size: 12px;
  color: var(--color-gray-500);
}

@media (max-width: 767px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── Blog Cover (contained style) ────────────────────────── */
.blog-cover {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.blog-cover-header {
  text-align: center;
  margin-bottom: 24px;
}

.blog-cover-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--color-gray-900);
  margin-bottom: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cover-header .cover-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

.blog-cover-header .cover-meta .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.blog-cover-header .cover-cat {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.blog-cover-img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Blog Article Layout ───────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
}

.blog-article {
  max-width: 720px;
}

.toc-sidebar {
  position: sticky;
  top: 96px;
}

.toc-box {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.toc-box h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-900);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-gray-200);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 2px;
}

.toc-list a {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--color-gray-500);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all var(--transition-fast);
  line-height: 1.35;
}

.toc-list a:hover {
  color: var(--color-gray-700);
  background: var(--color-gray-100);
}

.toc-list a.active {
  color: var(--color-primary-dark);
  border-left-color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 500;
}

.toc-list .toc-h3 a {
  padding-left: 22px;
  font-size: 12px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-gray-200);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray-700);
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    position: static;
  }
}

/* ── FAQ Accordion ─────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--color-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: var(--space-4);
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-gray-400);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── Process Steps ─────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: var(--gradient-hero);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
}

.process-step h4, .process-step h3.h4 {
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ── Gallery Main ──────────────────────────────────────── */
.gallery-main {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--color-gray-50);
  padding: var(--space-6);
  cursor: zoom-in;
}

/* ── Product Info Sidebar ──────────────────────────────── */
.product-info-sidebar {
  position: sticky;
  top: 96px;
}

.product-brand-badge {
  margin-bottom: var(--space-3);
}

/* ── Career Perks ──────────────────────────────────────── */
.career-perks {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 720px;
  margin: 0 auto;
}

.perk-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.perk-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.perk-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-lightest, rgba(43,158,179,0.08));
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perk-card h4 {
  margin-bottom: var(--space-1);
}

.perk-card p {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
}

/* ── Blog Filter Bar ────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.filter-bar .tabs {
  background: var(--color-gray-50);
  border-radius: var(--radius-full);
  padding: 4px;
  display: inline-flex;
  gap: 2px;
}

.filter-bar .tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-500);
  transition: all 0.2s;
}

.filter-bar .tab.active,
.filter-bar .tab:hover {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

