/* ==========================================================================
   ARMAN ROLL — CUSTOM STYLES
   Bootstrap 5.3 RTL is loaded in index.html. This file contains only the
   project-specific design tokens, section styles, and responsive overrides.
   ========================================================================== */

@font-face {
  font-family: 'dana';
  src: url(../fonts/dana-400.ttf);
}

@font-face {
  font-family: 'dana-bold';
  src: url(../fonts/dana-700.ttf);
}

@font-face {
  font-family: 'Vazirmatn';
  src: url(../fonts/Vazirmatn/Vazirmatn-Regular.ttf);
}

@font-face {
  font-family: 'Vazirmatn-Medium';
  src: url(../fonts/Vazirmatn/Vazirmatn-Medium.ttf);
}

@font-face {
  font-family: 'Vazirmatn-SemiBold';
  src: url(../fonts/Vazirmatn/Vazirmatn-SemiBold.ttf);
}

@font-face {
  font-family: 'Vazirmatn-Bold';
  src: url(../fonts/Vazirmatn/Vazirmatn-Bold.ttf);
}

/* 1. Design tokens
   Keep colors, typography, and shared layout values here so the design can
   be adjusted globally without hunting through individual selectors. */
:root {
  --color-green: #103d32;
  --color-green-deep: #092d25;
  --color-gold: #c6a66b;
  --color-cream: #f6f3ec;
  --color-white: #fffefa;
  --color-text: #64736a;
  --color-line: #dcddd2;
  --font-main: "Vazirmatn", Tahoma, sans-serif;
  --font-main-bold: "Vazirmatn-Bold", Tahoma, sans-serif;
  --font-main-semibold: "Vazirmatn-SemiBold", Tahoma, sans-serif;
  --font-dana: "dana", Tahoma, sans-serif;
  --container-width: 1264px;
  --section-space: 64px;
  --radius-small: 4px;
  --radius-card: 12px;
}

/* 2. Global / base styles
   Smooth scrolling and global RTL alignment support the Persian content.
   Bootstrap's container remains responsible for responsive page widths. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.9;
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-container {
  max-width: var(--container-width);
}

/* 3. Shared typography and helper classes
   Headings use the brand green; gold eyebrow labels act as small section
   markers. These shared styles keep the visual rhythm consistent. */
h1,
h2,
h3,
p {
  margin-top: 0;
  text-align: justify;
}

h1,
h2,
h3 {
  color: var(--color-green);
  font-family: var(--font-main-bold);
  line-height: 1.55;
}

img {
  object-fit: contain !important;
}

/* Keep the bootstrap Font HTML icons height on check */
.bi {
  line-height: 1;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-gold);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow-dark {
  color: var(--color-gold);
}

/* 4. Placeholder media and icons
   Replace these blocks with <img> or inline SVG elements when final assets
   are ready. Keep the wrapper classes to preserve the designed geometry. */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-green);
  font-size: 14px;
  text-align: center;
}

.icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 18px;
  min-height: 18px;
  border: 1px dashed currentColor;
  border-radius: 3px;
  font-size: 8px;
  line-height: 1;
}

/* 5. Header and navigation
   The dark green header uses a subtle bottom border. The brand lockup places
   the logo placeholder beside the two-line Persian brand name. */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--color-green);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.site-header .navbar {
  min-height: 104px;
  padding: 18px 0;
}

.navbar-collapse {
  flex-grow: 0 !important;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--color-cream);
}

.brand-lockup:hover {
  color: var(--color-cream);
}

.brand-logo {
  width: 58px;
  height: 58px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.5;
}

.brand-copy strong {
  color: var(--color-cream);
  font-size: 21px;
  font-weight: 700;
}

.brand-copy small {
  color: var(--color-gold);
  font-size: 12px;
}

.nav-links {
  gap: 30px;
  align-items: center;
}

.nav-links .nav-link {
  padding: 8px 0;
  color: #e3e9df;
  font-size: 16px;
  font-family: var(--font-main-bold);
}

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

.menu-toggle {
  border-color: rgba(255, 255, 255, .45);
  color: var(--color-cream);
}

.menu-icon-placeholder {
  font-size: 23px;
}

/* 6. Hero section
   Desktop layout places the image on the left and the RTL text on the right.
   The Bootstrap row stacks these columns naturally on smaller screens. */
.hero-section {
  padding: 48px 0;
  background: var(--color-green);
}

.hero-media {
  width: 100%;
  min-height: 530px;
  color: var(--color-cream);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-content h1 {
  margin-bottom: 0;
  color: var(--color-cream);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  text-align: right;
}

.hero-content h1 span {
  display: block;
  color: var(--color-gold);
}

.hero-description {
  max-width: 620px;
  margin-bottom: 0;
  color: #e3e9df;
  font-size: 18px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero-actions .btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-small);
  font-size: 15px;
  font-family: var(--font-main-semibold);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

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

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

.btn-cream {
  border: 1px solid var(--color-cream);
  color: var(--color-green);
  background: var(--color-cream);
}

.btn-cream:hover {
  border-color: var(--color-gold);
  color: var(--color-green);
  background: var(--color-gold);
}

/* 7. Products section
   The alternating rows use Bootstrap columns. The separator is a short gold
   rule centered between product descriptions, as in the Figma layout. */

body .mobile-view {
  display: none !important;
}

.section-light {
  background: var(--color-white);
}

.products-section {
  padding: var(--section-space) 0;
}

.section-heading {
  margin-bottom: 28px;
  text-align: right;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.product-row {
  padding: 18px 0;
}

.product-media {
  width: 100%;
  min-height: 231px;
  aspect-ratio: 414 / 231;
  border-color: rgba(16, 61, 50, .2);
}

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

.product-copy {
  position: relative;
  padding: 14px 0;
}

.product-index {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-gold);
  font-size: 16px;
  font-family: var(--font-main-bold);
  letter-spacing: .08em;
}

.product-copy h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.product-copy p {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 17px;
  line-height: 2.05;
}

.product-separator {
  width: 56px;
  height: 2px;
  margin: 12px auto;
  background: var(--color-gold);
}

/* 8. Statistics strip
   Each metric occupies one Bootstrap column. Vertical separators are added
   on desktop only, avoiding cramped dividers on narrow screens. */
.stats-section {
  padding: 30px 0;
  background: var(--color-green);
  border-bottom: 1px solid var(--color-line);
}

.stat-item {
  display: flex;
  min-height: 100px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
}

.stat-item strong {
  color: var(--color-gold);
  font-size: 38px;
  font-family: var(--font-main-semibold);
  line-height: 1.3;
}

.stat-item span {
  margin-top: -4px;
  color: var(--color-white);
  font-size: 14px;
}

.stat-item small {
  color: var(--color-white);
  font-size: 15px;
}

.stats-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: right;
}

.stats-intro h2 {
  margin-bottom: 4px;
  color: var(--color-gold);
  font-size: 22px;
}

.stats-intro p {
  margin-bottom: 0;
  color: var(--color-white);
  font-size: 13px;
}

/* 9. About section
   Image and text are balanced in a two-column layout. The text list retains
   the product-use guidance from the supplied design content. */
.about-section {
  padding: var(--section-space) 0;
}

.about-media {
  width: 100%;
  min-height: 344px;
  aspect-ratio: 460 / 344;
}

.about-copy h2 {
  margin-bottom: 22px;
  font-size: 34px;
}

.about-point {
  margin-bottom: 18px;
}

.about-point h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.about-point p,
.about-list {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 17px;
  line-height: 2.05;
}

.about-list {
  padding-right: 25px;
}

/* 10. Contact section
   Cards use a quiet border and white background. Telephone and email values
   are functional links; social and map URLs remain placeholders until given. */
.contact-section {
  padding: var(--section-space) 0;
}

.subsection-title {
  margin-bottom: 16px;
  color: var(--color-green);
  font-size: 16px;
  font-family: var(--font-main-bold);
}

.contact-card {
  /* display: flex; */
  min-height: 126px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 20px;
  border: 1px solid #e5e1d8;
  border-radius: var(--radius-card);
  border: 2px solid var(--color-line);
  transition: box-shadow .2s ease, transform .2s ease;
}

.contact-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-green);
  font-size: 14px;
  font-family: var(--font-main-bold);
}

.contact-card-description {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  transition: color .2s ease, transform .2s ease;
}

.contact-card a:hover,
.contact-card p:hover {
  color: #222;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-link,
.map-links a {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--color-line);
  border-radius: var(--radius-card);
  color: var(--color-green);
  background: var(--color-white);
  font-weight: 500;
  transition: box-shadow .2s ease, transform .2s ease;
}

.social-link img,
.map-links a img {
  width: 34px;
}

.social-link:hover,
.map-links a:hover,
.contact-card:hover {
  /* border-color: var(--color-gold); */
  color: var(--color-green);
  transform: translateY(-2px);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

/* ,
    0px 3px 10px rgba(198, 166, 107, 0.3),
    0px 0px 5px rgba(198, 166, 107, 0.2),
    0px 2px 2px rgba(198, 166, 107, 1),
    -1px 1px 1px rgba(198, 166, 107, 1) */

.external-mark {
  color: var(--color-gold);
  font-size: 18px;
}

.map-heading {
  margin-top: 24px;
}

.map-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--color-gold);
  border-radius: 50%;

  background-color: var(--color-primary, #103D32);
  color: #fff;

  font-size: 1.25rem;

  cursor: pointer;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(12px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

/* Visible state */
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover effect */
.back-to-top:hover {
  background-color: #C6A66B;
  color: #103D32;
}

/* Keyboard accessibility */
.back-to-top:focus-visible {
  outline: 3px solid #C6A66B;
  outline-offset: 4px;
}


/* 11. Footer
   The dark footer closes the page with license, contact, and brand columns.
   A top border separates the copyright row from the main footer content. */
.site-footer {
  padding: 40px 0 22px;
  color: #e3e9df;
  background: var(--color-green-deep);
}

.footer-main {
  padding-bottom: 28px;
}

.footer-main div:nth-child(3) {
  justify-content: end;
}

.license-placeholder {
  display: flex;
  width: 72px;
  height: 100px;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: 10px;
  text-align: center;
}

.license-caption {
  margin: 10px 0 0;
  color: var(--color-cream);
  font-family: var(--font-main-semibold);
}

/* .site-footer small {
  color: #e3e9df;
} */

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.site-footer .site-container .footer-main .footer-contact div {
  flex-direction: row !important;
}

.footer-contact h2 {
  margin-bottom: 4px;
  color: var(--color-white);
  font-size: 15px;
}

.footer-contact a,
.footer-contact p {
  margin: 0;
  /* color: #e3e9df; */
  color: var(--color-text);
  font-size: 14px;
}

.footer-brand {
  justify-content: flex-start;
}

.footer-brand img {
  width: 58px;
}

.footer-tagline {
  margin: 10px 0 0;
  color: var(--color-text);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #e3e9df;
  font-size: 12px;
}

/* 12. Responsive adjustments
    Tablet: reduce hero image height and vertical spacing.
    Mobile: stack navigation/content, make buttons full-width, and simplify
   statistics and footer alignment for comfortable reading. */
@media (max-width: 991.98px) {
  :root {
    --section-space: 48px;
  }

  .site-header .navbar {
    min-height: 82px;
  }

  .navbar-collapse {
    padding-top: 18px;
  }

  .nav-links {
    align-items: center;
    gap: 8px;
  }

  #home>div:nth-child(1)>div:nth-child(1) {
    flex-direction: column-reverse;
  }

  .hero-media {
    min-height: 380px;
  }

  .hero-content,
  .hero-content h1 {
    align-items: center;
    text-align: center;
  }

  .hero-description {
    text-align: center;
  }

  body #product-placeholder article:nth-child(3) {
    flex-direction: column-reverse;
  }

  .product-row {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
  }

  .product-image-column {
    order: 1;
  }

  .product-copy-column {
    order: 2;
  }

  .stats-section .stat-item:nth-child(2) {
    border-left: 0;
  }

  .footer-main {
    align-items: center;
    text-align: center;
  }

  .footer-main div:nth-child(3) {
    /* commented for testing */
    /* flex-direction: row !important; */
    justify-content: center;
    align-items: center;
    gap: 1px !important;
  }

  .license-caption,
  .footer-tagline {
    text-align: center;
  }

  /* commented for testing */
  /* .footer-main .license-placeholder {
    margin: 0 auto;
  } */
}

@media (max-width: 767.98px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-space: 38px;
  }

  body {
    font-size: 15px;
  }

  .brand-logo-placeholder {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-section {
    padding: 30px 0 40px;
  }

  #home>div:nth-child(1)>div:nth-child(1) {
    flex-direction: column-reverse;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-content h1 {
    font-size: 25px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

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

  .section-heading h2,
  .about-copy h2 {
    font-size: 27px;
  }

  .product-media {
    min-height: 205px;
  }

  .product-copy p,
  .about-point p,
  .about-list {
    font-size: 15px;
  }

  .stats-section {
    padding: 24px 0;
  }

  .stats-section>div:nth-child(1) .g-4 {
    flex-direction: column !important;
    justify-content: center;
    text-align: center;
  }

  .stats-intro h2,
  .stats-intro p {
    text-align: center;
  }

  .stat-item {
    min-height: 115px;
    padding: 8px 14px;
    align-items: center;
    text-align: center;
  }

  .stat-item strong {
    font-size: 34px;
  }

  .stat-item span {
    margin-top: -2px;
  }

  .stat-item small {
    font-size: 13px;
  }

  .stats-intro h2 {
    font-size: 18px;
  }

  .social-grid {
    gap: 10px;
  }

  .social-link {
    min-height: 62px;
    padding: 10px;
    font-size: 13px;
  }

  .map-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    padding-bottom: 10px;
  }
}

@media (max-width: 400px) {
  .footer-bottom {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }
}

@media (max-width: 333px) {

  .social-grid,
  .map-links {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* 13. Reduced motion
    Respect the operating-system preference for users who request less motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .back-to-top {
    transition: none;
  }
}

.me {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  align-content: center;
}