* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inria Serif', serif;
  background-color: #EFE5DD;
  color: #1b1b1b;
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background-color: rgba(239, 229, 221, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background-color: rgba(239, 229, 221, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2b1b1b;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #2b1b1b;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background-color: #a73625;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #a73625;
}

.nav-links a:hover::after {
  width: 100%;
}

.dropdown-menu {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: rgba(239, 229, 221, 0.7);
  backdrop-filter: blur(20px);
  transition: height 0.4s ease;
  z-index: 1100;
  pointer-events: none;
}

.dropdown-menu.active {
  height: 100vh;
  pointer-events: auto;
}

.dropdown-menu ul {
  list-style: none;
  padding: 100px 0;
  text-align: center;
  margin: 0;
}

.dropdown-menu li {
  margin: 35px 0;
}

.dropdown-menu a {
  color: #1b1b1b;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dropdown-menu a:hover {
  color: #a73625;
}

/* HERO */
.origami-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('../images/tets.png') center top / cover no-repeat;
  color: #F4DEA1;
  overflow: hidden;
  text-align: center;
  font-family: 'Inria Serif', serif;
}

.hero-text {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text .date {
  color: #F0E5DD;
  font-size: 11px;
  letter-spacing: 1.1px;
  margin-bottom: 5px;
}

.hero-text .subheading {
  font-size: 24px;
  color: #F4DEA1;
  margin: 12px 0 8px;
}

.hero-text .title {
  font-size: 64px;
  color: #BA4430;
  margin: 0 0 15px;
}

.hero-text .cta {
  font-size: 15px;
  color: #F4DEA1;
  letter-spacing: 1.5px;
}

.hero-text .cta a {
  color: #F4DEA1;
  text-decoration: none;
  letter-spacing: 1.5px;
  position: relative;
}

.hero-text .cta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background-color: #F4DEA1;
  transition: width 0.3s ease;
}

.hero-text .cta a:hover::after {
  width: 100%;
}

/* HISTORY */

.origami-history {
  background: #EFE5DD;
  padding: 180px 8vw 0;
  text-align: left;
  position: relative;
}

.history-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top block */
.history-text-block {
  max-width: 750px;
  margin: 0 auto 100px;
}

.history-text-block h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.3px;
  margin-bottom: 14px;
  color: #1b1b1b;
}

.history-text-block p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: #1b1b1b;
}

/* Tradition block */
.tradition-block {
  max-width: 780px;
  margin: 60px auto 30px;
}

.tradition-title {
  font-size: 42px;
  font-weight: 400;
  color: #1b1b1b;
  margin-bottom: 16px;
  border: none;
}

.tradition-copy {
  font-size: 16px;
  line-height: 1.75;
  color: #1b1b1b;
}

/* Palace image */
.palace-image {
  width: 100vw;
  max-width: none;
  display: block;
  margin: 40px 0 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}


/* TIMELINE */
.timeline-section {
  background-color: #EFE5DD;
  padding: 100px 0;
  color: #2a2a2a;
}

.timeline-container {
  position: relative;
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  border-left: 2px solid #1b1b1b;
}

.timeline-block {
  position: relative;
  margin: 80px 0;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  left: -10px;
  top: 10px;
  width: 18px;
  height: 18px;
  background-color: #f6f2eb;
  border: 3px solid #1b1b1b;
  border-radius: 50%;
}

.timeline-line {
  position: absolute;
  left: -1px;
  top: 28px;
  width: 2px;
  height: calc(100% + 60px);
  background-color: #1b1b1b;
}

.timeline-content h2 {
  font-size: 72px;
  color: #a0462f;
  margin-bottom: 0;
  font-weight: 400;
}

.timeline-content h3 {
  font-size: 20px;
  color: #a0462f;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content .years,
.timeline-content .century {
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: -10px;
  margin-bottom: 20px;
}

.timeline-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.timeline-image {
  margin-top: 20px;
  text-align: left;
}

.timeline-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

/* CRAFT */

.the-craft {
  padding: 80px 8vw;
  background: #EFE5DD;
}

.craft-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #9b4a32;
}

.craft-text {
  display: flex;
  justify-content: space-between;
  gap: 5vw;
  margin-bottom: 60px;
}

.left-col,
.right-col {
  flex: 1;
  max-width: 45%;
}

.right-col ul {
  margin-top: 10px;
  padding-left: 20px;
}

.folds-info {
  text-align: center;
  margin-top: 40px;
}

.fold-types {
  display: flex;
  justify-content: center;
  gap: 60px;
  font-size: 1.1rem;
  margin-top: 10px;
}


.flower-row {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.flower-row img {
  width: 80%;
  max-width: 900px;
}

/* MATERIALS */
.materials-guide {
  background-color: #EFE5DD;
  padding: 120px 8vw;
  text-align: center;
}

.materials-title {
  font-size: 60px;
  color: #a0442e;
  font-weight: 400;
  margin-bottom: 80px;
  text-align: left;
}

.materials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
}

/* —— MATERIALS GRID —— */

.material {
  width: 220px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.material img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.material-info {
  text-align: center;
  margin-top: 16px;
  padding: 0;
}

.material-info h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: #a0442e;
}

.material-info p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(27, 27, 27, 0.6);
  transition: color 0.3s ease;
}

.material:hover img {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.05);
}

.material:hover .material-info p {
  color: rgba(27, 27, 27, 0.85);
}

/* FOLDING */
.folding-styles {
  background-color: #EFE5DD;
  padding: 100px 8vw;
  text-align: center;
}

.folding-title {
  font-size: 60px;
  color: #a0442e;
  font-weight: 400;
  margin-bottom: 80px;
  text-align: left;
}

.folding-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 80px;
}

.folding-item {
  width: 220px;
  position: relative;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.folding-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.folding-info {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
  margin-top: 16px;
}

.folding-info h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 6px 0 2px;
}

.folding-info p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.folding-item:hover img {
  transform: translateY(-10px);
  filter: brightness(1.05);
}

.folding-item:hover .folding-info {
  opacity: 1;
  transform: translateY(0);
}

/* MODERN REACH */
.modern-reach {
  position: relative;
  background-color: #EFE5DD;
  background-image: url('../images/flower wall.png');
  background-repeat: repeat-y;
  background-size: 360px auto;
  background-position: left 60px top;
  padding: 120px 10vw;
  display: flex;
  justify-content: flex-end;
}

.reach-content {
  width: 55%;
  z-index: 2;
}

.reach-title {
  font-size: 60px;
  color: #a0442e;
  font-weight: 400;
  margin-bottom: 60px;
}

.reach-category {
  margin-bottom: 90px;
}

.reach-category h3 {
  font-size: 26px;
  color: #1b1b1b;
  font-weight: 400;
  margin-bottom: 15px;
}

.reach-category p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: #2a2a2a;
}

/* FOOTER */
.site-footer {
  background-color: #EFE5DD;
  text-align: center;
  padding: 60px 0 40px;
  font-size: 18px;
  color: #a0462f;
  letter-spacing: 1px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #a0462f;
  text-decoration: none;
  border-bottom: 1px solid #a0462f;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: #1b1b1b;
  border-bottom-color: #1b1b1b;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
  .navbar {
    padding: 15px 30px;
  }

  .history-text {
    top: 24%;
    width: clamp(260px, 40vw, 560px);
  }

  .tradition-text {
    left: 8%;
  }

  .tradition-text .description {
    width: min(360px, 45%);
  }
}

@media (min-width: 901px) {

  .material-info {
    opacity: 0.6; 
    background-color: rgba(239, 229, 221, 0.85);
    transition: opacity 0.3s ease, background-color 0.3s ease;
  }

  .material:hover .material-info {
    opacity: 1;
    background-color: rgba(239, 229, 221, 1);
  }

  .folding-info {
    opacity: 0.6;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .folding-item img {
    filter: brightness(0.92);
    transition: filter 0.3s ease;
  }

  .folding-item:hover img {
    filter: brightness(1);
  }

  .folding-item:hover .folding-info {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .dropdown-menu {
    top: 76px;
  }

  .history-text,
  .tradition-text {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: 100%;
  }

   .origami-history {
    padding: 60px 6vw 80px;
  }

  .history-text-block {
    margin-bottom: 50px;
  }

  .history-text-block h3 {
    font-size: 13px;
  }

  .history-text-block p,
  .tradition-copy {
    font-size: 15px;
  }

  .tradition-title {
    font-size: 32px;
    margin-bottom: 14px;
  }

  .tradition-block {
    margin-bottom: 30px;
  }

.palace-image {
  width: 100vw;
  max-width: none;
  display: block;
  margin: 40px 0 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

  .craft-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .left-col,
  .right-col {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .fold-types {
    flex-direction: column;
    gap: 20px;
  }

 
  .material,
  .material img,
  .material-info,
  .material-info p {
    all: unset;
  }

  .material {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
  }

  .material img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
  }

  .material-info {
    display: block;
    text-align: center;
    padding-top: 10px;
  }

  .material-info h3 {
    font-size: 22px;
    color: #a0442e;
    margin-bottom: 4px;
  }

  .material-info p {
    font-size: 15px;
    color: #1b1b1b;
    line-height: 1.5;
  }

    .material-info p:hover,
  .material-info p:active,
  .material-info p:focus {
    color: #1b1b1b;
  }

    .folding-item {
    cursor: default;
    transition: none;
  }

  .folding-item img {
    transform: none;
    filter: none;
    transition: none;
  }

  .folding-info {
    opacity: 1;
    transform: none;
    margin-top: 12px;
    transition: none;
  }


  .modern-reach {
    background-image: none;
    justify-content: center;
  }

  .reach-content {
    width: 100%;
  }

    .logo:hover,
  .nav-links a:hover,
  .dropdown-menu a:hover,
  .hero-text .cta a:hover::after,
  .material:hover img,
  .material:hover .material-info p,
  .folding-item:hover img,
  .folding-item:hover .folding-info,
  .nav-links a:hover::after,
  .site-footer a:hover {
    transform: none;
    filter: none;
    color: inherit;
  }

  .nav-links a:hover::after,
  .hero-text .cta a:hover::after {
    width: 0;
  }

  .site-footer a:hover {
    border-bottom-color: currentColor;
  }
}



@media (max-width: 600px) {
  .hero-text .title {
    font-size: 48px;
  }

  .hero-text .subheading {
    font-size: 20px;
  }

  .materials-title,
  .folding-title,
  .reach-title,
  .craft-title {
    font-size: 40px;
  }

  .timeline-content h2 {
    font-size: 48px;
  }
}

@media (min-width: 901px) {
  .dropdown-menu {
    display: none;
  }
}
