/* ============================================
   REIDGE OnePage - Global Styles
   ============================================ */

/* --- Local Fonts (Inter) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-bold.woff2') format('woff2');
}

/* --- CSS Variables --- */
:root {
  --color-primary: #920a00;
  --color-primary-dark: #6d0700;
  --color-text-dark: #4a4a4a;
  --color-text-light: #999;
  --color-bg-light: #f7f7f7;
  --color-bg-white: #fff;
  --color-border: #e0e0e0;
  --color-white: #fff;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-subtitle: 24px;
  --fs-body: 20px;
  --fs-body-md: 16px;
  --fs-small: 15px;
  --fs-table-head: 16px;

  --fw-bold: 700;
  --fw-medium: 500;
  --fw-normal: 400;

  --section-padding-x: 122px;
  --section-padding-y: 100px;

  --breakpoint-tablet: 1024px;
  --breakpoint-mobile: 768px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ============================================
   Section: Hero
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 800px;
  padding: 70px 98px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-section > *:not(.hero-bg):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

.hero-logo-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  flex-shrink: 0;
}

.hero-logo {
  width: 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo img {
  display: block;
}

.hero-logo-top {
  width: 63px;
  height: auto;
}

.hero-logo-bottom {
  width: 62px;
  height: auto;
  margin-top: 4px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1020px;
  margin-top: 76px;
}

.hero-content h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--color-white);
}

.hero-content p {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-white);
}

/* ============================================
   Section: Company Intro
   ============================================ */
.company-intro-section {
  background: var(--color-bg-white);
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.intro-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intro-hero .label {
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--color-text-dark);
}

.intro-hero .mission {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-primary);
}

.intro-hero .desc {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-text-dark);
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-block h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--color-primary);
}

.section-block > p {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-text-dark);
}

/* Two-column list */
.two-col-list {
  display: flex;
  gap: 60px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
}

.two-col-list .col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* Card Grid */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-row {
  display: flex;
  gap: 20px;
}

.info-card {
  flex: 1;
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-primary);
}

.info-card p {
  font-size: var(--fs-body-md);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  color: var(--color-text-dark);
}

/* ============================================
   Section: Product
   ============================================ */
.product-section {
  background: var(--color-bg-white);
  padding: 114px var(--section-padding-x) var(--section-padding-y);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-header h2 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--color-primary);
}

.product-header p {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-text-dark);
}

.product-header .divider-line {
  width: 100%;
  height: 1px;
  background: #cccccc;
}

.product-content {
  display: flex;
  gap: 146px;
  align-items: flex-start;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 65px;
  flex-shrink: 0;
  width: 583px;
}

.image-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.image-card-1 {
  width: 100%;
}

.image-card-2 {
  width: 100%;
}

.play-button {
  position: absolute;
  width: 80px;
  height: 80px;
  bottom: 22px;
  right: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button img.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.play-button img.icon {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
}

.product-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 37px;
  min-width: 0;
}

.product-text .text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-text .text-section h3 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--color-primary);
}

.product-text .text-section p {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  color: var(--color-text-dark);
}

.product-text .section-divider {
  width: 100%;
  height: 1px;
  background: #cccccc;
}

/* ============================================
   Section: Table
   ============================================ */
.table-section {
  background: var(--color-bg-white);
  padding: var(--section-padding-y) 0;
  position: relative;
}

.table-section-inner {
  padding: 0 var(--section-padding-x);
}

.table-section h2 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 40px;
}

.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
}

.data-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-table-head);
  font-weight: var(--fw-bold);
  line-height: 24px;
  padding: 10px 30px;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th:first-child {
  width: 48px;
}

.data-table thead th:nth-child(2) {
  width: 320px;
}

.data-table thead th:nth-child(3) {
  width: 320px;
}

.data-table thead th:nth-child(4) {
  width: 420px;
}

.data-table thead th:nth-child(5) {
  width: 220px;
}

.data-table tbody td {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 24px;
  padding: 10px 30px;
  vertical-align: top;
  color: var(--color-text-dark);
}

.data-table tbody td:first-child {
  width: 48px;
  text-align: center;
}

.data-table tbody tr:nth-child(even) {
  background: var(--color-bg-light);
}

.data-table tbody tr:nth-child(odd) {
  background: var(--color-bg-white);
}

/* Clickable row hover */
.data-table tbody tr.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.data-table tbody tr.clickable-row:hover {
  background-color: #eaeaea !important;
}

.data-table tbody tr.clickable-row:active {
  background-color: #e0e0e0 !important;
}

.table-disclaimer {
  padding: 30px 0 0;
  font-size: var(--fs-body-md);
  font-weight: var(--fw-normal);
  color: var(--color-text-light);
  list-style: none;
  padding-left: 0;
}

.table-disclaimer li {
  list-style: disc;
}

/* Mobile scroll hint */
.scroll-hint {
  display: none;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: var(--color-text-light);
  background: var(--color-bg-light);
  border-radius: 4px;
  margin-top: 12px;
}

/* ============================================
   Section: Footer
   ============================================ */
.footer-section {
  background: var(--color-primary);
  padding: 0 var(--section-padding-x);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-inner {
  display: flex;
  gap: 45px;
  align-items: center;
}

.footer-inner p {
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--color-white);
  white-space: nowrap;
}

.footer-divider {
  width: 0;
  height: 35px;
  border-left: 1px solid var(--color-white);
}

/* ============================================
   Responsive: Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding-x: 48px;
    --section-padding-y: 60px;
  }

  .hero-section {
    height: auto;
    min-height: 600px;
    padding: 50px 48px;
  }

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

  .hero-content p {
    font-size: 20px;
  }

  .company-intro-section {
    gap: 48px;
  }

  .product-content {
    gap: 60px;
  }

  .product-images {
    width: 400px;
  }

  .image-card-1 {
    width: 100%;
    height: auto;
    aspect-ratio: 536 / 354;
  }

  .image-card-2 {
    width: 100%;
    height: auto;
    aspect-ratio: 583 / 507;
  }
}

/* ============================================
   Responsive: Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 24px;
    --fs-subtitle: 20px;
    --fs-body: 16px;
    --fs-body-md: 14px;
    --fs-small: 13px;
    --section-padding-x: 20px;
    --section-padding-y: 48px;
  }

  /* --- Hero --- */
  .hero-section {
    height: auto;
    min-height: 500px;
    padding: 40px 20px;
    justify-content: flex-start;
    gap: 40px;
  }

  .hero-logo {
    width: 50px;
    height: 63px;
  }

  .hero-logo-top {
    width: 50px;
    height: 51px;
  }

  .hero-logo-bottom {
    width: 50px;
    height: 12px;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  /* --- Company Intro --- */
  .company-intro-section {
    gap: 36px;
  }

  .intro-hero .mission {
    font-size: 22px;
  }

  /* Two-column → single column */
  .two-col-list {
    flex-direction: column;
    gap: 24px;
  }

  /* Card grid → single column */
  .card-row {
    flex-direction: column;
  }

  .info-card h3 {
    font-size: 18px;
  }

  .info-card p {
    font-size: 15px;
  }

  /* --- Product --- */
  .product-section {
    padding-top: 60px;
  }

  /* Stack: images on top, text below */
  .product-content {
    flex-direction: column;
    gap: 40px;
  }

  .product-images {
    width: 100%;
    gap: 40px;
  }

  .image-card-1,
  .image-card-2 {
    width: 100%;
    height: auto;
  }

  .image-card-1 {
    aspect-ratio: 536 / 354;
  }

  .image-card-2 {
    aspect-ratio: 583 / 507;
  }

  .play-button {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }

  .play-button img.circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }

  .play-button img.icon {
    width: 24px;
    height: 24px;
  }

  .product-text {
    gap: 28px;
  }

  .product-text .text-section h3 {
    font-size: 24px;
  }

  /* --- Table: horizontal scroll --- */
  .table-section-inner {
    padding: 0 20px;
  }

  .table-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .scroll-hint {
    display: block;
  }

  .table-disclaimer {
    padding-left: 20px;
    font-size: 14px;
  }

  /* --- Footer --- */
  .footer-section {
    height: auto;
    padding: 40px 20px;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-inner p {
    font-size: 18px;
    white-space: normal;
  }

  .footer-divider {
    width: 60px;
    height: 0;
    border-left: none;
    border-top: 1px solid var(--color-white);
  }
}

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

/* ============================================
   Animations
   ============================================ */

/* --- Hero Background Zoom --- */
.hero-bg img.hero-zoom-ready {
  transform: scale(1);
  will-change: transform;
}

.hero-bg img.hero-zoom-active {
  animation: heroZoom 3s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* --- Title Fade-In-Up --- */
.anim-title {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.anim-title--visible {
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Content Fade-In-Up (faster, after title) --- */
.anim-content {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.anim-content--visible {
  animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
