/* =============================================
   Codicache — Company Profile Stylesheet
   ============================================= */

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

:root {
  --navy: #0a1628;
  --navy-light: #0f2235;
  --teal: #1a3a4a;
  --gold: #d4a843;
  --gold-light: #e8c86a;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --text-primary: #e8e0d0;
  --text-secondary: #a0998a;
  --text-muted: #6a6458;
  --section-dark: #080e1a;
  --section-alt: #0c1a2e;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 1200px;
  --section-padding: 6rem 2rem;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.section-label::before {
  content: '// ';
  opacity: 0.5;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-padding);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 5rem;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.4) 0%,
    rgba(10, 22, 40, 0.7) 60%,
    var(--navy) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ---------- About ---------- */
.about {
  background: var(--section-dark);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-text p:first-of-type {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 67, 0.1);
}

/* ---------- Services ---------- */
.services {
  background: var(--navy);
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.services-header p {
  color: var(--text-secondary);
  margin-top: 1rem;
}

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

.service-card {
  background: var(--section-alt);
  border: 1px solid rgba(212, 168, 67, 0.06);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: rgba(212, 168, 67, 0.2);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card .service-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Approach ---------- */
.approach {
  background: var(--section-dark);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.approach-text h2 {
  margin-bottom: 1.5rem;
}

.approach-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.approach-principles {
  list-style: none;
  margin-top: 2rem;
}

.approach-principles li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 168, 67, 0.06);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.approach-principles li:last-child {
  border-bottom: none;
}

.principle-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  white-space: nowrap;
  min-width: 120px;
}

.principle-value {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.approach-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.approach-visual img {
  width: 100%;
  max-width: 500px;
  opacity: 0.85;
}

/* ---------- Philosophy Quote ---------- */
.philosophy {
  background: var(--navy);
  text-align: center;
  padding: 5rem 2rem;
}

.philosophy blockquote {
  max-width: 750px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
}

.philosophy blockquote .highlight {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

.philosophy cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 2px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--section-dark);
  text-align: center;
}

.contact-content {
  max-width: 500px;
  margin: 0 auto;
}

.contact-content h2 {
  margin-bottom: 1rem;
}

.contact-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-email-img {
  display: inline-block;
  max-width: 300px;
  height: auto;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(212, 168, 67, 0.06);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-visual {
    order: -1;
  }

  .approach-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 4rem 1.25rem;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero {
    min-height: 85vh;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }
}
