/* ========================================
   ethosola — Style
   ======================================== */

/* --- Variables --- */
:root {
  --color-dark: #1c2a2a;
  --color-charcoal: #2d3e3a;
  --color-accent: #4a8c6f;
  --color-accent-light: #5a9e7f;
  --color-accent-gold: #2e7d5b;
  --color-blue: #4a7fa5;
  --color-gray: #5f7068;
  --color-gray-light: #8fa39a;
  --color-border: #dde5e0;
  --color-bg: #fafbfa;
  --color-bg-alt: #f0f4f2;
  --color-white: #ffffff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1080px;
  --section-padding: 120px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

/* --- Section Label --- */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 48px;
  line-height: 1.4;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 20px;
}

.btn-lg {
  font-size: 16px;
  padding: 16px 40px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 120px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  transition: color var(--transition);
}

.nav-list a:hover {
  color: var(--color-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: 160px 0 var(--section-padding);
  background: linear-gradient(160deg, #1c2a2a 0%, #1e3a30 40%, #2a4a3a 70%, #1c2a2a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 140, 111, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 125, 91, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  object-fit: contain;
}

.hero-social {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.social-link:hover {
  color: var(--color-white);
}

.social-link-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.social-link-icon-note {
  width: 20px;
  height: 20px;
}

.social-link:hover .social-link-icon {
  opacity: 1;
}


/* ========================================
   About
   ======================================== */
.about {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.about-content-full {
  max-width: 720px;
}

.about-narrative {
  font-size: 15px;
  line-height: 2;
  color: var(--color-gray);
  margin-bottom: 40px;
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-number-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent-gold);
  line-height: 1.2;
}

.about-number-label {
  font-size: 13px;
  color: var(--color-gray);
}

.about-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.about-philosophy {
  font-size: 15px;
  line-height: 2;
  color: var(--color-charcoal);
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin-bottom: 32px;
}

.about-skills h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: 6px;
}

/* ========================================
   Services
   ======================================== */
.services {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

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

.service-card {
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.service-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-border);
  margin-bottom: 20px;
  line-height: 1;
}

.service-card:hover .service-number {
  color: var(--color-accent);
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.service-caption {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-light);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
}

/* ========================================
   Works
   ======================================== */
.works {
  padding: var(--section-padding) 0;
  background: var(--color-dark);
  color: var(--color-white);
}

.works .section-label {
  color: var(--color-accent-light);
}

.works .section-heading {
  color: var(--color-white);
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.work-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.work-diagram {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.work-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.work-node {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  min-width: 120px;
}

.work-node-ai {
  background: var(--color-accent);
  border-color: var(--color-accent-light);
  color: var(--color-white);
}

.work-node span {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  display: block;
}

.work-node-ai span {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}

.work-arrow {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.work-detail {
  padding: 32px;
}

.work-detail h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.work-detail p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.work-metrics {
  display: flex;
  gap: 32px;
}

.work-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent-light);
}

.work-metric-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Insights
   ======================================== */
.insights {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.insight-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.insight-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-light);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.insight-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.insight-excerpt {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 16px;
}

.insight-read {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
}

.insight-card:hover .insight-read {
  text-decoration: underline;
}

.insights-cta {
  text-align: center;
}

.btn-icon-dark {
  filter: brightness(0);
}

.works-closing {
  margin-top: 48px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  letter-spacing: 0.02em;
}

/* ========================================
   Vision
   ======================================== */
.vision {
  padding: var(--section-padding) 0;
  background: var(--color-dark);
  color: var(--color-white);
}

.vision .section-label {
  color: var(--color-accent);
}

.vision .section-heading {
  color: var(--color-white);
}

.vision-content {
  max-width: 640px;
}

.vision-content p {
  font-size: 17px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.vision-content p:first-child {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.7;
}

.vision-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent-gold);
  border: 1px solid rgba(46, 125, 91, 0.4);
  padding: 6px 16px;
  border-radius: 4px;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.contact-inner {
  text-align: center;
}

.contact-heading {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: 40px;
  line-height: 1.9;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-method:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-method-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-method-icon-svg {
  color: var(--color-dark);
}

.contact-method-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.05em;
}

.contact-method-value {
  font-size: 14px;
  color: var(--color-gray);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 40px 0;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.social-icon-note {
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-gray);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  /* Header Mobile */
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  }

  .nav-list.open {
    transform: translateX(0);
  }

  .nav-list a {
    font-size: 16px;
  }

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

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

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

  /* Hero Mobile */
  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* About Mobile */
  .about-content-full {
    max-width: 100%;
  }

  .about-numbers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  /* Works Mobile */
  .work-flow {
    flex-direction: column;
    gap: 8px;
  }

  .work-arrow {
    transform: rotate(90deg);
  }

  .work-node {
    min-width: unset;
    width: 100%;
  }

  .work-metrics {
    flex-direction: column;
    gap: 16px;
  }

  /* Insights Mobile */
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Contact Mobile */
  .contact-heading {
    font-size: 24px;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
  }

  .contact-method {
    width: 100%;
    max-width: 320px;
    padding: 24px 32px;
  }

  /* Footer Mobile */
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
