/* css/inner.css — used by all inner pages */

.inner-section {
  padding: 100px 0;
}

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

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 4/3;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.img-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 70%);
  border-radius: 24px;
  opacity: 0.15;
  z-index: 0;
}

.about-content .section-label { margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }
.about-content p { color: var(--muted); line-height: 1.9; margin-bottom: 16px; }

.about-values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,151,58,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.value-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ======================== WHY US ======================== */
.why-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, #3d3228 100%);
}

.why-section .section-label { color: var(--gold-light); }
.why-section .section-title { color: white; }

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

.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,151,58,0.2);
  border-radius: 20px;
  padding: 32px 24px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  border-color: rgba(184,151,58,0.5);
}

.why-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(184,151,58,0.2);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}

.why-card h3 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ======================== CONTACT CARDS ======================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cinfo-card {
  background: white;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cinfo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(184,151,58,0.35);
}

.cinfo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 20px;
}

.cinfo-card h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.cinfo-card a,
.cinfo-card span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.8;
  transition: var(--transition);
}

.cinfo-card a:hover { color: var(--gold); }

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

.product-card {
  border-radius: 20px;
  overflow: hidden;
}

.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-card-body {
  padding: 28px;
}

.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184,151,58,0.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.product-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.product-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ======================== KALITEH ======================== */
.kaliteh-search {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.kaliteh-search input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  outline: none;
  transition: var(--transition);
}

.kaliteh-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,151,58,0.1);
}

.kaliteh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.swatch-item {
  aspect-ratio: 1;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.swatch-item:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  border-color: white;
  z-index: 2;
}

.swatch-num {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 10px;
  text-align: center;
  padding: 4px;
  opacity: 0;
  transition: var(--transition);
}

.swatch-item:hover .swatch-num {
  opacity: 1;
}

/* Modal */
.swatch-modal {
  position: fixed;
  inset: 0;
  background: rgba(26,21,16,0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.swatch-modal.open {
  opacity: 1;
  visibility: visible;
}

.swatch-modal-box {
  background: white;
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  width: 300px;
  transform: scale(0.9);
  transition: var(--transition);
}

.swatch-modal.open .swatch-modal-box {
  transform: scale(1);
}

.swatch-preview {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  margin: 0 auto 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.swatch-modal-box h3 {
  margin-bottom: 6px;
  color: var(--charcoal);
}

.swatch-hex {
  font-size: 13px;
  color: var(--muted);
  font-family: monospace;
  background: var(--cream);
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
}

/* ======================== CONTACT FORM ======================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ci-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ci-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,151,58,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.ci-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.ci-item span { font-size: 14px; color: var(--muted); }

/* Contact Form */
.form-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 32px;
  color: var(--charcoal);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-group label span {
  color: #e53e3e;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
  color: var(--charcoal);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: white;
  box-shadow: 0 0 0 4px rgba(184,151,58,0.1);
}

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

.captcha-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  background: var(--cream);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
}

.captcha-question {
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
  white-space: nowrap;
}

.captcha-row input {
  width: 90px;
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  transition: var(--transition);
  background: white;
}

.captcha-row input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,151,58,0.1);
}

.form-notice {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  justify-content: center;
}

.form-success,
.form-error {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

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

@media (max-width: 860px) {
  .about-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .inner-section { padding: 60px 0; }
  .kaliteh-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

/* ======================== CTA BOX (used on inner pages) ======================== */
.cta-box {
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(184,151,58,0.15);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .cta-box { padding: 40px 24px; }
}

/* ══════════════════════════════════════
   FIBER LANDING CARDS (products.php)
══════════════════════════════════════ */
.fiber-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fiber-landing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.fiber-landing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(26,21,16,0.14);
  border-color: var(--gold);
}

.flc-top {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.flc-top::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.flc-icon {
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.35s ease;
}

.fiber-landing-card:hover .flc-icon {
  transform: scale(1.15) rotate(-5deg);
}

.flc-badge {
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
}

.flc-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flc-body h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.flc-body > p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.flc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  flex: 1;
}

.flc-features li {
  font-size: 13px;
  color: var(--muted);
  padding-right: 16px;
  position: relative;
}

.flc-features li::before {
  content: '›';
  position: absolute;
  right: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  top: 1px;
}

.flc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  transition: gap 0.25s ease;
}

.fiber-landing-card:hover .flc-cta {
  color: var(--charcoal);
}

/* ── Fiber chips on product card ── */
.fiber-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.fiber-links-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.fiber-links-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fiber-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid;
  transition: all 0.25s ease;
}

.fiber-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.fiber-cotton {
  color: #1b5e20;
  border-color: #1b5e20;
  background: rgba(27,94,32,0.06);
}
.fiber-cotton:hover {
  background: #1b5e20;
  color: white;
}

.fiber-polyester {
  color: #0d47a1;
  border-color: #0d47a1;
  background: rgba(13,71,161,0.06);
}
.fiber-polyester:hover {
  background: #0d47a1;
  color: white;
}

.fiber-span {
  color: #4a148c;
  border-color: #4a148c;
  background: rgba(74,20,140,0.06);
}
.fiber-span:hover {
  background: #4a148c;
  color: white;
}

/* ══ Responsive ══ */
@media (max-width: 860px) {
  .fiber-landing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .fiber-links-row { flex-direction: column; }
  .fiber-chip { justify-content: center; }
}

/* ══════════════════════════════════════
   FIBER LANDING — SPECS / PROCESS / FAQ
══════════════════════════════════════ */

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.spec-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(184,151,58,0.3);
}

.spec-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.spec-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 26px; right: 10%; left: 10%;
  height: 2px;
  background: linear-gradient(to left, var(--border), var(--gold), var(--border));
  z-index: 0;
}

.pt-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pt-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.pt-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pt-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  text-align: right;
  transition: color 0.25s ease;
}

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

.faq-chevron {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.35s ease;
}

.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 22px 18px;
  padding-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
  border-top: 1px solid var(--border);
}

/* Other Fibers Grid */
.other-fibers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.other-fiber-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.other-fiber-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.ofc-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.other-fiber-card:hover .ofc-icon {
  transform: scale(1.2);
}

.other-fiber-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.other-fiber-card span {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 860px) {
  .specs-grid      { grid-template-columns: repeat(2, 1fr); }
  .process-timeline{ grid-template-columns: repeat(3, 1fr); }
  .process-timeline::before { display: none; }
  .other-fibers-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 580px) {
  .specs-grid      { grid-template-columns: 1fr 1fr; }
  .process-timeline{ grid-template-columns: 1fr 1fr; }
  .other-fibers-grid { grid-template-columns: 1fr; }
}
