/* ===================================================
   TOMOE LINK — Professional Website Stylesheet
   Color Palette:
     Primary Navy:   #0D1B2A
     Accent Gold:    #C9A84C
     Mid-Blue:       #1E3A5F
     Light Grey:     #F5F6F8
     Text Dark:      #1A1A2E
     Text Mid:       #4A5568
   =================================================== */

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1A1A2E;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: #C9A84C; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 12px;
}
.section-label.light { color: #C9A84C; }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #0D1B2A;
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-title.light { color: #fff; }

.section-intro {
  font-size: 1.05rem;
  color: #4A5568;
  max-width: 680px;
  margin-bottom: 48px;
}
.section-intro.light { color: rgba(255,255,255,0.8); }

.section {
  padding: 96px 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
}
.btn-primary {
  background: #C9A84C;
  color: #0D1B2A;
  border-color: #C9A84C;
}
.btn-primary:hover {
  background: #b8943e;
  border-color: #b8943e;
  color: #0D1B2A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #0D1B2A;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.25s;
  flex-shrink: 0;
}
.btn-download svg { width: 18px; height: 18px; }
.btn-download:hover {
  background: #C9A84C;
  color: #0D1B2A;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201,168,76,0.3);
}
.btn-full { width: 100%; justify-content: center; }

/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s, padding 0.3s;
  padding: 16px 0;
}
#navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo with image */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.logo-tomoe { color: #C9A84C; }
.logo-link { color: #C9A84C; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #C9A84C;
  transition: width 0.25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* Contact Us nav button */
.nav-links a.nav-cta {
  background: #C9A84C;
  color: #0D1B2A;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover {
  background: #b8943e;
  color: #0D1B2A;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('hero-global.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.88) 0%,
    rgba(30, 58, 95, 0.75) 50%,
    rgba(13, 27, 42, 0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 80px;
}
.hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero h1 .accent { color: #fff; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: #C9A84C;
  border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}
@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.4; }
}

/* ===================================================
   ABOUT
   =================================================== */
.about-section { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: #4A5568;
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: #0D1B2A; }

.about-card {
  background: #0D1B2A;
  border-radius: 8px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 24px;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid #C9A84C;
  padding-left: 16px;
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #C9A84C;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about-badge {
  background: #F5F6F8;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.badge-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.about-badge p {
  font-size: 0.9rem;
  color: #4A5568;
  font-weight: 500;
  line-height: 1.5;
}

/* ===================================================
   SERVICES
   =================================================== */
.services-section { background: #F5F6F8; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  border: 1px solid #E8EAF0;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: #C9A84C;
  transition: height 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13,27,42,0.12);
  border-color: transparent;
}
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #C9A84C;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 12px;
  line-height: 1.35;
}
.service-card p {
  font-size: 0.92rem;
  color: #4A5568;
  line-height: 1.7;
}

/* ===================================================
   VALUE PROPOSITION
   =================================================== */
.value-section {
  position: relative;
  background: #0D1B2A;
  overflow: hidden;
}
.value-bg {
  position: absolute;
  inset: 0;
  background: url('hero-network.jpg') center center / cover no-repeat;
  opacity: 0.08;
}
.value-section .container { position: relative; z-index: 1; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 36px 28px;
  transition: all 0.3s;
}
.value-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}
.value-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(201,168,76,0.25);
  line-height: 1;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}
.value-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ===================================================
   CLIENTS
   =================================================== */
.clients-section { background: #fff; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.client-type {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid #E8EAF0;
  border-radius: 8px;
  transition: all 0.3s;
}
.client-type:hover {
  border-color: #C9A84C;
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
  transform: translateY(-4px);
}
.client-icon {
  width: 64px; height: 64px;
  background: rgba(201,168,76,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #C9A84C;
}
.client-icon svg { width: 32px; height: 32px; }
.client-type h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 12px;
}
.client-type p {
  font-size: 0.92rem;
  color: #4A5568;
  line-height: 1.7;
}

/* ===================================================
   DOWNLOADS
   =================================================== */
.downloads-section { background: #F5F6F8; }

.downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.download-card {
  background: #fff;
  border: 1px solid #E8EAF0;
  border-radius: 8px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.3s;
}
.download-card:hover {
  border-color: #C9A84C;
  box-shadow: 0 8px 32px rgba(13,27,42,0.08);
}
.download-icon {
  width: 56px; height: 56px;
  background: rgba(13,27,42,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D1B2A;
  flex-shrink: 0;
}
.download-icon svg { width: 28px; height: 28px; }
.download-info { flex: 1; }
.download-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 6px;
}
.download-info p {
  font-size: 0.9rem;
  color: #4A5568;
  margin-bottom: 8px;
  line-height: 1.6;
}
.file-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9A84C;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-section { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0D1B2A;
  letter-spacing: 0.02em;
}
.req { color: #C9A84C; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #E8EAF0;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1A1A2E;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-group textarea { resize: vertical; }

.form-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 4px;
  padding: 14px 20px;
  color: #166534;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}
.form-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 4px;
  padding: 14px 20px;
  color: #991b1b;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #0D1B2A;
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-brand .footer-logo {
  margin-bottom: 16px;
  display: inline-flex;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}
.footer-links h4,
.footer-services h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 20px;
}
.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links li a:hover { color: #C9A84C; }
.footer-services li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-card { margin-bottom: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(13,27,42,0.98);
    padding: 80px 32px 40px;
    flex-direction: column;
    gap: 24px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-links a.nav-cta { text-align: center; }
  .hamburger { display: flex; z-index: 1001; }

  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 1.7rem; }
  .logo-img { width: 32px; height: 32px; }
}

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
