/* ========================================
   GENERAL
======================================== */

:root {
  --olive: #606348;
  --brown: #624a33;
  --cream: #f1f0e9;
  --beige: #d9d6c9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Tajarib", Arial, sans-serif;
  overflow-x: hidden;

  /* Fade when a page loads */
  animation: erk-page-fade-in 450ms ease-out both;
}

@keyframes erk-page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

button,
a,
select,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

/* ========================================
   HEADER
======================================== */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid rgba(96, 99, 72, 0.15);
}

.header-content {
  width: 100%;
  max-width: 1700px;
  min-height: 90px;
  margin: auto;
  padding: 8px 3%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.navigation {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
}

.navigation a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 2px;
  font-size: 21px;
  font-weight: 500;
  transition: color 0.25s;
}

.navigation a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 0;
  height: 2px;
  width: 0;
  background: var(--olive);
  transition: width 0.25s;
}

.navigation a:hover,
.navigation a.active {
  color: var(--olive);
}

.navigation a:hover::after,
.navigation a.active::after {
  width: 100%;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-button {
  border: 0;
  background: transparent;
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  opacity: 0.75;
  cursor: not-allowed;
}

.cart-count {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--olive);
  border-radius: 3px;
}

/* ========================================
   HERO
======================================== */

.welcome-section {
  position: relative;
  min-height: 530px;
  padding: 65px 6%;
  display: grid;
  place-items: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(241, 240, 233, 0.66), rgba(241, 240, 233, 0.77)),
    url("assets/images/hero-art.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.welcome-content {
  width: 100%;
  max-width: 780px;
  margin: auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  margin: 0 0 12px;
  color: var(--olive);
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.hero-tagline {
  max-width: 680px;
  margin: 0 auto;
  color: var(--brown);
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding: 13px 34px;
  background: var(--olive);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition:
    background 0.25s,
    transform 0.25s;
}

.shop-button:hover {
  background: var(--brown);
  transform: translateY(-3px);
}

/* ========================================
   BANNER 1 - STORY
======================================== */

.story-section {
  position: relative;
  width: 100%;
  padding: 66px 6% 72px;
  background: #eae9e1;
  overflow: hidden;
}

.story-section::before,
.story-section::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  background: url("assets/images/icon-192.webp") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.story-section::before {
  top: 22px;
  left: 34px;
  transform: rotate(-12deg);
}

.story-section::after {
  right: 35px;
  bottom: 18px;
  transform: scaleX(-1) rotate(10deg);
}

.story-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.story-container h2 {
  margin: 0;
  color: var(--olive);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.story-divider {
  width: 60px;
  height: 1px;
  margin: 13px auto 23px;
  background: var(--olive);
  opacity: 0.4;
}

.story-container p {
  width: 100%;
  margin: 0;
  color: var(--brown);
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 400;
  line-height: 2.05;
  text-align: right;
  direction: rtl;
}

/* ========================================
   BANNER 2 - PHILOSOPHY
======================================== */

.philosophy-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 155px;
  padding: 37px 7%;
  background: var(--olive);
  color: var(--cream);
  overflow: hidden;
}

.philosophy-banner::before,
.philosophy-banner::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: url("assets/images/icon-192.webp") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.philosophy-banner::before {
  top: 5px;
  left: 36px;
  transform: rotate(-10deg);
}

.philosophy-banner::after {
  bottom: 5px;
  right: 36px;
  transform: scaleX(-1) rotate(10deg);
}

.philosophy-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-container h2 {
  margin: 0 auto;
  color: var(--cream);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
}

/* ========================================
   COLLECTIONS PAGE
======================================== */

.collections-section {
  width: 100%;
  min-height: 70vh;
  padding: 85px 6% 105px;
  background: #f8f7f2;
}

.section-heading {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--olive);
  margin-bottom: 14px;
}

.section-heading h1,
.section-heading h2 {
  color: var(--olive);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.4;
  margin: 12px 0 16px;
}

.section-heading p {
  color: var(--brown);
  font-size: 18px;
  line-height: 1.9;
  margin: 0 auto;
  max-width: 650px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
}

.collection-card {
  display: block;
  min-width: 0;
  color: var(--olive);
  text-decoration: none;
  transition: transform 0.35s ease;
}

.collection-card:hover {
  transform: translateY(-6px);
}

.collection-art {
  position: relative;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.nature-card .collection-art {
  background: linear-gradient(145deg, #d7dac4, #a5ad86);
}

.heritage-card .collection-art {
  background: linear-gradient(145deg, #e9d9c2, #b99f80);
}

.artistic-card .collection-art {
  background: linear-gradient(145deg, #e8e4d9, #c4c0a8);
}

.collection-number {
  position: absolute;
  top: 22px;
  right: 25px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: var(--olive);
  opacity: 0.75;
}

.collection-symbol {
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  color: var(--olive);
  opacity: 0.45;
}

.collection-info {
  padding: 22px 5px;
  text-align: right;
}

.collection-info h2,
.collection-info h3 {
  margin: 0 0 10px;
  font-size: 25px;
  color: var(--olive);
  line-height: 1.5;
}

.collection-info span {
  color: var(--brown);
  font-size: 15px;
}

.collection-card:hover .collection-info span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========================================
   CONTACT
======================================== */

.contact-section {
  width: 100%;
  padding: 80px 6%;
  background: #f8f7f2;
  text-align: center;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 15px 28px;
  background: var(--olive);
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.contact-links a:hover {
  background: var(--brown);
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(96, 99, 72, 0.14);
  padding: 28px 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.site-footer img {
  width: 58px;
  height: auto;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--olive);
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1000px) {
  .navigation {
    gap: 22px;
  }

  .navigation a {
    font-size: 18px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

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

  .collection-art {
    height: 310px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {
  .header-content {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    padding: 8px 4%;
  }

  .brand {
    grid-column: 1;
  }

  .brand img {
    width: 49px;
    height: 49px;
  }

  .header-actions {
    grid-column: 2;
  }

  .menu-toggle {
    display: flex;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--cream);
    padding: 20px;
    border-bottom: 1px solid var(--beige);
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    font-size: 18px;
  }

  .welcome-section {
    min-height: 450px;
    padding: 65px 7%;
  }

  .hero-title {
    font-size: clamp(42px, 9vw, 58px);
  }

  .hero-tagline {
    font-size: clamp(22px, 6vw, 30px);
  }

  .story-section {
    padding: 55px 7% 62px;
  }

  .story-container h2 {
    font-size: 30px;
  }

  .story-container p {
    font-size: 16px;
    line-height: 1.95;
  }

  .story-section::before,
  .story-section::after {
    width: 110px;
    height: 110px;
    opacity: 0.035;
  }

  .philosophy-banner {
    min-height: 135px;
    padding: 30px 7%;
  }

  .philosophy-container h2 {
    font-size: clamp(20px, 5vw, 27px);
    line-height: 1.75;
  }

  .philosophy-banner::before,
  .philosophy-banner::after {
    width: 95px;
    height: 95px;
    opacity: 0.05;
  }

  .collections-section {
    padding: 60px 5% 75px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading p {
    font-size: 17px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .collection-art {
    height: 290px;
  }

  .collection-info h2,
  .collection-info h3 {
    font-size: 23px;
  }

  .contact-section {
    padding: 60px 5%;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
