@charset "UTF-8";

/* ========================================================
   Variables & Reset
   ======================================================== */
:root {
  /* Colors */
  --color-text: #5c544e; /* Soft dark brown */
  --color-text-light: #8e847a; /* Lighter brown for secondary text */
  --color-bg: #fcfbfa; /* Warm off-white */
  --color-bg-alt: #f5f0eb; /* Slightly darker, warm background */
  --color-primary: #e89f71; /* Warm soft orange/terracotta */
  --color-primary-hover: #d68b5e;
  --color-accent: #dcedc1; /* Soft green */
  --color-white: #ffffff;

  /* Fonts */
  --font-base: "Zen Kaku Gothic New", sans-serif;
  --font-heading: "Kiwi Maru", serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul {
  list-style: none;
}

.text-small {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ========================================================
   Components
   ======================================================== */

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: 500;
  text-align: center;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  border: 2px solid var(--color-primary);
}

.btn:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 159, 113, 0.3);
  opacity: 1; /* override generic a:hover */
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Sections */
.section {
  position: relative;
  padding: 120px 0 70px 0;
}

.section--bg-alternate {
  background-color: var(--color-bg-alt);
}

.section__inner {
  position: relative;
  z-index: 20;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

/* Wave Dividers */
.wave-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

@media (min-width: 768px) {
  .wave-divider svg {
    height: 100px;
  }
}

.wave-divider--bg {
  color: var(--color-bg);
}

.wave-divider--bg-alt {
  color: var(--color-bg-alt);
}

/* ========================================================
   Layout
   ======================================================== */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    padding var(--transition-fast);
  padding: 24px 0;
}

.header.is-scrolled {
  background-color: rgba(252, 251, 250, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-item a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.header__nav-item:not(.header__nav-item--contact) a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.header__nav-item:not(.header__nav-item--contact) a:hover::after {
  width: 100%;
}

.header__nav-item--contact a {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.header__nav-item--contact a:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  opacity: 1;
}

.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.header__hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  left: 0;
  transition:
    transform var(--transition-fast),
    top var(--transition-fast),
    opacity var(--transition-fast);
}

.header__hamburger span:nth-child(1) {
  top: 0;
}
.header__hamburger span:nth-child(2) {
  top: 9px;
}
.header__hamburger span:nth-child(3) {
  top: 18px;
}

/* Mobile Menu Active State */
.header__hamburger.is-active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* FV (First View) */
.fv {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fv__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(232, 159, 113, 0.1) 0%,
      rgba(252, 251, 250, 0) 60%
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(220, 237, 193, 0.2) 0%,
      rgba(252, 251, 250, 0) 60%
    );
  z-index: -1;
  opacity: 0; /* Animated in with GSAP */
}

.fv__inner {
  text-align: center;
  opacity: 0; /* Animated in with GSAP */
  transform: translateY(30px);
}

.fv__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.fv__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 2;
  color: var(--color-text);
}

.fv__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0; /* Animated in with GSAP */
}

.fv__scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  writing-mode: vertical-rl;
}

.fv__scroll::after {
  content: "";
  width: 1px;
  height: 60px;
  background-color: var(--color-primary);
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Works */
.works__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.works__card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.works__card a {
  display: block;
}

.works__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.works__card:hover .works__img {
  transform: scale(1.05);
}

.works__img-wrapper {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.works__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.works__info {
  padding: 24px;
}

.works__tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  font-weight: 500;
}

.works__name {
  font-size: 1.1rem;
  font-weight: 500;
}

.works__btn-wrapper {
  text-align: center;
}

/* Service */
.service__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service__item {
  background-color: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-fast);
}

.service__item:hover {
  transform: translateY(-5px);
}

.service__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.service__icon svg {
  width: 32px;
  height: 32px;
}

.service__item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.service__item-text {
  font-size: 0.95rem;
  text-align: left;
  color: var(--color-text-light);
}

/* About */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about__img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about__img-wrapper::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.about__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.about__intro {
  margin-bottom: 32px;
}

.about__details dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px dashed #dcd5cd;
}

.about__details dt {
  font-weight: 700;
  color: var(--color-primary);
}

.about__details dd {
  color: var(--color-text-light);
}

/* Contact */
.contact__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact__desc {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact__btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.contact__btns .btn {
  width: 100%;
  max-width: 400px;
}

/* Footer */
.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 40px 0;
  text-align: center;
}

.footer__copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* ========================================================
   Media Queries
   ======================================================== */
@media screen and (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-bg);
    padding: 100px 40px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .header__hamburger {
    display: block;
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__img-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .about__details dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about__details dt {
    margin-top: 16px;
  }

  .about__details dt:first-child {
    margin-top: 0;
  }

  .section {
    padding: 80px 0;
  }
}
