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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

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

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-dark);
  height: var(--header-height);
  box-shadow: 0 1px 0 0 var(--color-bg-dark);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-logo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.header-logo-subtitle {
  font-family: var(--font-family-en);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.header-nav a {
  font-family: var(--font-family-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  position: relative;
}

.header-nav a:hover {
  color: var(--color-accent);
}

.header-nav a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 14px;
  background: url('../img/decorations/viewall-icon.png') no-repeat center;
  background-size: contain;
  vertical-align: middle;
  margin-right: 0;
  transition: width var(--transition-normal), margin-right var(--transition-normal);
}

.header-nav a:hover::before {
  width: 14px;
  margin-right: 4px;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

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

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--color-white);
  z-index: 105;
  padding: 100px 40px 40px;
  transition: right var(--transition-normal);
  flex-direction: column;
  gap: var(--spacing-lg);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-family: var(--font-family-en);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-primary);
  display: block;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

/* ========================================
   Section Common
   ======================================== */
.section {
  padding: var(--section-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-title {
  font-family: var(--font-family-en);
  font-size: var(--font-size-section-title);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.section-title .first-letter {
  color: #F9C305;
  font-size: 56px;
}

.section-divider {
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
  margin-bottom: var(--spacing-xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   VIEW ALL Button
   ======================================== */
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 50px;
  font-family: var(--font-family-en);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.btn-view-all:hover {
  background-color: #333;
  color: var(--color-white);
}

.btn-view-all-icon {
  width: 16px;
  height: 16px;
}

/* Section Title Paw Icon */
.section-title-paw {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ========================================
   Wave Divider
   ======================================== */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-divider-top {
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  margin-bottom: -40px;
  pointer-events: none;
}

.wave-divider-bottom {
  margin-bottom: -2px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 120px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-xl);
}

.footer-menu h3 {
  font-family: var(--font-family-en);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-menu-list a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-menu-list a::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url('../img/decorations/viewall-icon.png') no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.footer-menu-list a:hover {
  color: var(--color-accent);
}

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-logo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-logo-subtitle {
  font-family: var(--font-family-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo-text {
  font-family: var(--font-family-en);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-right {
  text-align: right;
}

.footer-right-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  transition: background-color var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-accent);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-copyright {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Modal / Popup Common
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 210;
}

/* ========================================
   Utility
   ======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .section-inner {
    padding: 0 40px;
  }

  .footer-inner {
    padding: 0 40px;
  }

  .header-inner {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .section-inner {
    padding: 0 20px;
  }

  .footer-inner {
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-nav-overlay.active {
    display: block;
  }

  .section-title {
    font-size: 32px;
  }

  .section-title .first-letter {
    font-size: 40px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-right {
    text-align: center;
  }

  .section {
    padding: 40px 0;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-inner {
    padding: 0 16px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-title .first-letter {
    font-size: 34px;
  }
}
