/*
Theme Name: iPonX
Theme URI: https://iponx.com
Author: iPonX Inc.
Author URI: https://iponx.com
Description: Official iPonX Inc. International Consulting theme
Version: 1.0
License: GNU General Public License v2
*/

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

:root {
  --white: #ffffff;
  --gray-50: #f8f8f6;
  --gray-100: #f0efed;
  --gray-200: #e4e3e0;
  --gray-400: #a8a6a2;
  --gray-700: #3d3c3a;
  --gray-900: #1a1917;
  --accent: #1a3a5c;
  --accent-light: #2d5f8a;
  --gold: #b8965a;
  --gold-light: #d4b07a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: padding 0.3s;
}
.nav-logo {
  font-family: 'Roboto Slab', serif;
  font-size: 22px; font-weight: 400;
  letter-spacing: 0.08em; color: #0047AB;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0;
}
.nav-logo .x-letter {
  font-family: 'Roboto Slab', serif;
  font-size: 22px; font-weight: 400;
  color: #0047AB;
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--gray-700); transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 0.55rem 1.5rem; border-radius: 2px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-light); }

/* HERO */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 5rem;
  background: var(--white);
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(3rem, 4.5vw, 4.8rem);
  font-weight: 300; line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: var(--gray-700); max-width: 420px;
  margin-bottom: 2.8rem;
}
.hero-actions { display: flex; gap: 1.2rem; align-items: center; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 0.9rem 2.2rem; border: none; border-radius: 2px;
  font-family: 'Roboto', sans-serif; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-light); }
.btn-outline {
  background: transparent; color: var(--accent);
  padding: 0.9rem 2.2rem; border: 1px solid var(--accent);
  border-radius: 2px; font-family: 'Roboto', sans-serif;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.hero-right {
  position: relative; overflow: hidden;
  background: var(--gray-100);
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.18) 0%, transparent 60%);
}
.hero-badge {
  position: absolute; bottom: 2.5rem; left: 2.5rem;
  background: rgba(255,255,255,0.96);
  padding: 1.2rem 1.6rem; border-left: 3px solid var(--gold);
}
.hero-badge-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--accent);
}
.hero-badge-sub {
  font-size: 0.75rem; color: var(--gray-400); margin-top: 0.2rem;
  letter-spacing: 0.05em;
}

/* STATS STRIP */
.stats-strip {
  background: var(--accent);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 2.5rem 5rem;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Roboto', sans-serif;
  font-size: 2.8rem; font-weight: 300; color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-top: 0.4rem;
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.12); }

/* SECTION COMMON */
section { padding: 6rem 5rem; }
.section-eyebrow {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem); font-weight: 300;
  color: var(--gray-900); line-height: 1.2; margin-bottom: 1.2rem;
}

/* SERVICES */
#services { background: var(--gray-50); }
.services-header { max-width: 540px; margin-bottom: 3.5rem; }
.services-header p { font-size: 0.95rem; font-weight: 300; line-height: 1.8; color: var(--gray-700); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--gray-200); }
.service-card {
  background: var(--white); padding: 2.8rem 2.2rem;
  transition: transform 0.25s;
}
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 44px; height: 44px; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.service-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.45rem; font-weight: 600; color: var(--gray-900);
  margin-bottom: 0.8rem;
}
.service-desc { font-size: 0.87rem; font-weight: 300; line-height: 1.75; color: var(--gray-700); }
.service-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.4rem; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  transition: gap 0.2s;
}
.service-link:hover { gap: 0.8rem; }

/* ABOUT */
#about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center; padding: 6rem 5rem;
  background: var(--white);
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; height: 480px; object-fit: cover;
  display: block; filter: brightness(0.9) saturate(0.85);
}
.about-accent-box {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 120px; height: 120px; background: var(--gold);
  z-index: -1;
}
.about-right p {
  font-size: 0.95rem; font-weight: 300; line-height: 1.85;
  color: var(--gray-700); margin-bottom: 1.2rem;
}
.about-right ul { list-style: none; margin: 1.8rem 0; }
.about-right ul li {
  font-size: 0.88rem; font-weight: 400; color: var(--gray-700);
  padding: 0.55rem 0; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 0.8rem;
}
.about-right ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* APPROACH */
#approach { background: var(--gray-50); }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-top: 3rem; }
.approach-step { position: relative; }
.step-number {
  font-family: 'Roboto', sans-serif;
  font-size: 4rem; font-weight: 300; color: var(--gray-200);
  line-height: 1; margin-bottom: 0.5rem;
}
.step-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.35rem; font-weight: 600; color: var(--gray-900);
  margin-bottom: 0.7rem;
}
.step-desc { font-size: 0.85rem; font-weight: 300; line-height: 1.75; color: var(--gray-700); }

/* CONTACT */
#contact { background: var(--accent); padding: 5rem; }
#contact .section-eyebrow { color: var(--gold-light); }
#contact .section-title { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3rem; }
.contact-info p {
  font-size: 0.95rem; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,0.7); margin-bottom: 2rem;
}
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.contact-item-icon {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 16px; height: 16px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; }
.contact-item-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.contact-item-value { font-size: 0.92rem; color: var(--white); margin-top: 0.15rem; }
.contact-item-value a { color: var(--white); text-decoration: none; }
.contact-item-value a:hover { color: var(--gold-light); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 1rem; color: var(--white);
  font-family: 'Roboto', sans-serif; font-size: 0.9rem; font-weight: 300;
  outline: none; transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold-light); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  background: var(--gold); color: var(--white);
  padding: 0.9rem 2.5rem; border: none; border-radius: 2px;
  font-family: 'Roboto', sans-serif; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; align-self: flex-start; transition: background 0.2s;
}
.form-submit:hover { background: var(--gold-light); }

/* FOOTER */
footer {
  background: var(--gray-900); padding: 2rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: 0.05em;
  display: inline-flex; align-items: center;
}
.footer-copy { font-size: 0.75rem; color: var(--gray-400); }
.footer-hq { font-size: 0.75rem; color: var(--gray-400); text-align: right; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.hero-eyebrow  { animation-delay: 0.1s; }
.hero-title    { animation-delay: 0.25s; }
.hero-desc     { animation-delay: 0.4s; }
.hero-actions  { animation-delay: 0.55s; }

/* WHY/HOW/WHAT DIAGRAM */
.whw-diagram { display: flex; flex-direction: column; align-items: center; gap: 2rem; width: 100%; }
.ring3 { animation: pulseRing 4s ease-in-out infinite; }
.ring2 { animation: pulseRing 4s ease-in-out infinite 0.4s; }
.ring1 { animation: pulseRing 4s ease-in-out infinite 0.8s; }
.core  { animation: pulseCore 4s ease-in-out infinite; }
@keyframes pulseRing { 0%,100% { opacity: 1; } 50% { opacity: 0.75; } }
@keyframes pulseCore { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.whw-legend { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; max-width: 420px; padding: 0 1.5rem; }
.whw-leg-item { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--gray-200); }
.whw-leg-item:last-child { border-bottom: none; }
.whw-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.whw-dot.why  { background: #1a3a5c; }
.whw-dot.how  { background: #b8965a; }
.whw-dot.what { background: #2d5f8a; }
.whw-leg-item strong { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-900); display: block; margin-bottom: 0.1rem; }
.whw-leg-item span { font-size: 0.8rem; font-weight: 300; color: var(--gray-700); line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav { padding: 1.2rem 2rem; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { height: auto; min-height: 520px; }
  .hero-left { padding: 4rem 2rem; }
  section { padding: 4rem 2rem; }
  .stats-strip { padding: 2rem; grid-template-columns: repeat(3,1fr); }
  .services-grid { grid-template-columns: 1fr; }
  #about { grid-template-columns: 1fr; padding: 4rem 2rem; }
  .approach-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #contact { padding: 3rem 2rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem 2rem; }
  .footer-hq { text-align: center; }
}
