/* ===== KOROSENAI Design System ===== */
:root {
  --color-primary: #0e173c;
  --color-accent: #214184;
  --color-dark: #111111;
  --color-text: rgba(0, 0, 0, 0.64);
  --color-text-dark: #333333;
  --color-text-muted: #666666;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gold: #ffdea4;
  --color-bg: #ffffff;
  --color-footer-bg: #222222;
  --color-footer-overlay: rgba(0, 0, 0, 0.32);
  --color-dark-overlay: rgba(0, 0, 0, 0.6);
  --color-border: rgba(0, 0, 0, 0.12);

  --font-heading: 'Kanit', sans-serif;
  --font-body: 'Kanit', 'Helvetica', 'Arial', sans-serif;
  --font-decorative: 'Allura', cursive;

  --shadow-card: rgba(0, 0, 0, 0.12) 0px 12px 18px -6px;
  --shadow-card-strong: rgba(0, 0, 0, 0.3) 0px 12px 18px -12px;
  --radius: 6px;
  --radius-round: 350px;

  --max-width: 1080px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-color: var(--color-white);
  background-image:
    linear-gradient(188deg, rgb(255, 255, 255) 25%, rgba(255, 255, 255, 0) 100%),
    url('../images/calligraphy_58.jpg');
  background-size: cover;
  background-position: center;
}

.hero-brushes {
  background-image: url('../images/calligraphy_brushes_17.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto;
  padding-bottom: 27px;
}

.hero-decorative-letter {
  font-family: var(--font-decorative);
  font-size: min(537px, 40vw);
  color: var(--color-text-muted);
  line-height: 0.2;
  opacity: 0.08;
  overflow: hidden;
  height: 120px;
  padding-top: 40px;
}

.hero-logo {
  padding: 100px 0 27px;
  text-align: center;
}

.hero-logo img {
  max-width: 280px;
  margin: 0 auto;
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 27px 0;
  margin-top: 55px;
}

.nav-item {
  padding: 16px 24px;
  border-bottom: 2px solid transparent;
  transition: border 0.3s;
}

.nav-item:hover {
  border-bottom-color: var(--color-primary);
}

.nav-item p {
  color: var(--color-black);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== Decorative Image Below Nav ===== */
.hero-bottom-image {
  padding-top: 153px;
  text-align: center;
}

.hero-bottom-image img {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Content Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Our Story & Vision ===== */
.story-section {
  background-color: var(--color-white);
  padding: 54px 0;
}

.story-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 27px 0;
}

.story-icon {
  flex-shrink: 0;
}

.story-icon img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-round);
  object-fit: contain;
}

.story-text {
  flex: 1;
}

.story-text h2,
.services-heading h2,
.features-heading h2 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 500;
  line-height: 60px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.story-text p {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

/* ===== Our Services ===== */
.services-section {
  background-color: var(--color-white);
  padding: 0 0 54px;
  margin-bottom: 30px;
}

.services-heading {
  padding: 3px 0 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 27px 0;
}

.service-card {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.service-card-icon {
  margin-bottom: 30px;
}

.service-card-icon span {
  color: var(--color-accent);
  font-size: 32px;
  font-weight: 400;
  line-height: 32px;
  border-radius: var(--radius);
}

.service-card h4 {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 25.2px;
  padding-bottom: 10px;
}

.service-card p {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

/* ===== Key Features ===== */
.features-section {
  background-color: var(--color-white);
  padding: 1px 0 54px;
}

.features-heading {
  padding: 27px 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 27px 0;
}

.feature-card {
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-strong);
  border: 0px solid var(--color-border);
  text-align: center;
}

.feature-card-icon {
  margin-bottom: 30px;
}

.feature-card-icon span {
  color: var(--color-accent);
  font-size: 32px;
  font-weight: 900;
  line-height: 32px;
  border-radius: var(--radius);
}

.feature-card h4 {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 25.2px;
  padding-bottom: 10px;
}

.feature-card p {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
}

/* ===== CTA / Contact Section ===== */
.cta-section {
  background-color: var(--color-white);
  background-image:
    linear-gradient(90deg, rgb(234, 234, 234) 40%, rgba(255, 255, 255, 0) 100%),
    url('../images/calligraphy_43.jpg');
  background-size: cover;
  background-position: center;
}

.cta-brushes {
  background-image: url('../images/calligraphy_68.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto;
  padding-bottom: 96px;
  margin-bottom: 60px;
}

.cta-decorative-letter {
  font-family: var(--font-decorative);
  font-size: min(537px, 40vw);
  color: var(--color-text-muted);
  line-height: 0.2;
  opacity: 0.08;
  overflow: hidden;
  height: 100px;
}

.cta-content {
  position: relative;
  padding: 27px 40px;
  border: 1px solid var(--color-border);
  margin-bottom: 60px;
  margin-left: 60px;
}

.cta-label {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
  color: var(--color-text-dark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 8.4px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cta-heading {
  background-image: linear-gradient(90deg, rgb(234, 234, 234) 20%, rgba(255, 255, 255, 0) 50%);
  padding: 10px 0;
}

.cta-heading h3 {
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 72px;
  padding-bottom: 10px;
}

.cta-button {
  display: inline-block;
  color: var(--color-white);
  background-color: var(--color-black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 20.4px;
  padding: 20px 30px;
  text-transform: uppercase;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--color-accent);
}

.cta-bottom-brushes {
  text-align: center;
  padding: 20px 0;
}

.cta-bottom-brushes img {
  max-width: 300px;
  margin: 0 auto;
}

/* ===== Pre-Footer / Info Section ===== */
.info-section {
  background-color: var(--color-dark-overlay);
  padding: 54px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 27px 0;
}

.info-col {}

.info-col .logo-small {
  margin-bottom: 23px;
}

.info-col .logo-small img {
  width: 60px;
  height: auto;
}

.info-col h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  padding-bottom: 10px;
}

.info-col h4 {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 24px;
  padding-bottom: 10px;
  padding-top: 20px;
  margin-bottom: 10px;
}

.info-col p {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 23.8px;
  margin-bottom: 10px;
}

.info-col a {
  color: var(--color-white);
  transition: color 0.3s;
}

.info-col a:hover {
  color: var(--color-gold);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-footer-bg);
}

.footer-bar {
  background-color: var(--color-footer-overlay);
  padding: 15px 0 5px;
  text-align: center;
}

.footer-bar p {
  color: var(--color-text-muted);
  font-size: 12px;
  padding-bottom: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .story-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services-grid,
  .features-grid,
  .info-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .story-text h2,
  .services-heading h2,
  .features-heading h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .cta-heading h3 {
    font-size: 36px;
    line-height: 44px;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .hero-bottom-image {
    padding-top: 60px;
  }
}

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

  .hero-logo {
    padding: 60px 0 20px;
  }

  .story-text h2,
  .services-heading h2,
  .features-heading h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .cta-heading h3 {
    font-size: 28px;
    line-height: 36px;
  }

  .cta-content {
    padding: 20px;
    margin-left: 0;
  }

  .cta-label {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid {
    text-align: center;
  }

  .info-col .logo-small img {
    margin: 0 auto;
  }
}
