/*
Theme Name: Wirakarya Teknik — Company Profile
Theme URI: https://example.com
Author: Your Agency Name
Author URI: https://example.com
Description: A 5-page company profile WordPress theme for small & medium industrial/engineering businesses. Blueprint-inspired design system: swap the brand tokens in this file to reskin for any client.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: wirakarya
*/

/* ==========================================================================
   1. DESIGN TOKENS — swap these to reskin the whole template for a client
   ========================================================================== */
:root {
  /* Brand colors */
  --ink: #14181f;          /* primary text / dark surfaces */
  --steel: #38506b;        /* secondary brand color */
  --amber: #e8871e;        /* accent — CTAs, highlights */
  --paper: #f5f3ed;        /* light background */
  --paper-dim: #ece8de;    /* card background on paper */
  --blueprint: #7a8b99;    /* muted / captions */
  --line: rgba(20, 24, 31, 0.12);
  --line-soft: rgba(20, 24, 31, 0.07);
  --white: #ffffff;

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --step-1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step0: clamp(1rem, 0.97rem + 0.15vw, 1.05rem);
  --step1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step2: clamp(1.6rem, 1.4rem + 0.8vw, 2rem);
  --step3: clamp(2.2rem, 1.8rem + 1.6vw, 3.2rem);
  --step4: clamp(2.8rem, 2.1rem + 3vw, 4.6rem);

  --radius: 2px;
  --container: 1180px;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ==========================================================================
   3. UTILITY / SIGNATURE ELEMENTS — blueprint corner-bracket motif
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--amber);
}

/* corner-bracket frame — used on hero art, cards, images, like a drawing viewport */
.bracket-frame {
  position: relative;
  padding: 22px;
}
.bracket-frame::before,
.bracket-frame::after,
.bracket-frame > .bf-tr,
.bracket-frame > .bf-bl {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--amber);
}
.bracket-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.bracket-frame::after { bottom: 0; right: 0; border-left: none; border-top: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffa03e; transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(245,243,237,0.4); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-steel { background: var(--steel); color: var(--paper); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   4. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(20,24,31,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.site-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.site-logo .mark { width: 34px; height: 34px; border: 2px solid var(--ink); position: relative; display: grid; place-items: center; flex-shrink: 0; }
.site-logo .mark::before { content: ''; width: 10px; height: 10px; background: var(--amber); }
.site-logo .name-sub { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--blueprint); text-transform: uppercase; }

.main-nav ul { display: flex; gap: 36px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.current::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }

.header-cta { display: flex; align-items: center; gap: 24px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; background: var(--paper); transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 24px; }
  .main-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .header-cta .btn-label { display: none; }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 90px 0 100px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: var(--step4); }
.hero h1 .accent { color: var(--amber); }
.hero-sub { max-width: 46ch; font-size: var(--step1); color: var(--steel); margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-art { aspect-ratio: 4/5; background: var(--ink); position: relative; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

.hero-specs { display: flex; gap: 0; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; flex-wrap: wrap; }
.hero-specs .spec { flex: 1; min-width: 140px; padding-right: 24px; }
.hero-specs .spec .num { font-family: var(--font-mono); font-size: var(--step2); font-weight: 700; color: var(--ink); }
.hero-specs .spec .label { font-family: var(--font-mono); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--blueprint); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-height: 320px; }
}

/* ==========================================================================
   6. VALUE PROPS / FEATURE CARDS
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.feature-card { background: var(--white); border: 1px solid var(--line); padding: 32px; transition: border-color 0.2s ease, transform 0.2s ease; }
.feature-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.feature-card .fc-index { font-family: var(--font-mono); color: var(--blueprint); font-size: var(--step-1); }
.feature-card h3 { font-size: var(--step1); margin: 14px 0 10px; }
.feature-card p { color: var(--steel); }

/* ==========================================================================
   7. SECTION HEAD
   ========================================================================== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.section-head h2 { font-size: var(--step3); max-width: 14ch; }
.section-head .lede { max-width: 42ch; color: var(--steel); }
@media (max-width: 700px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   8. SERVICES
   ========================================================================== */
.service-card { border: 1px solid var(--line); background: var(--white); padding: 30px; height: 100%; display: flex; flex-direction: column; }
.service-card .icon { width: 46px; height: 46px; border: 2px solid var(--ink); display: grid; place-items: center; margin-bottom: 20px; font-family: var(--font-mono); font-weight: 700; }
.service-card h3 { font-size: var(--step1); margin-bottom: 10px; }
.service-card p { color: var(--steel); flex-grow: 1; }
.service-card .more { margin-top: 18px; font-family: var(--font-mono); font-size: var(--step-1); text-transform: uppercase; color: var(--amber); display: inline-flex; align-items: center; gap: 8px; }

.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: 20px; }
.process-step { padding: 28px 24px; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: none; }
.process-step .p-num { font-family: var(--font-mono); color: var(--amber); font-size: var(--step1); }
.process-step h4 { font-size: 1.05rem; margin: 10px 0 8px; }
.process-step p { color: var(--steel); font-size: var(--step-1); }

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2, .process-strip { grid-template-columns: 1fr; }
  .process-strip { grid-template-columns: 1fr 1fr; }
  .process-step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .process-strip { grid-template-columns: 1fr; } }

/* ==========================================================================
   9. STATS / DATASHEET
   ========================================================================== */
.datasheet { border-top: 1px solid rgba(245,243,237,0.2); border-bottom: 1px solid rgba(245,243,237,0.2); }
.datasheet .grid-4 { gap: 0; }
.datasheet .ds-item { padding: 40px 28px; border-right: 1px solid rgba(245,243,237,0.15); }
.datasheet .ds-item:last-child { border-right: none; }
.datasheet .ds-num { font-family: var(--font-mono); font-size: var(--step3); font-weight: 700; color: var(--amber); }
.datasheet .ds-label { font-family: var(--font-mono); text-transform: uppercase; font-size: var(--step-1); letter-spacing: 0.06em; color: rgba(245,243,237,0.7); margin-top: 8px; }
@media (max-width: 900px) { .datasheet .grid-4 { grid-template-columns: 1fr 1fr; } .datasheet .ds-item { border-bottom: 1px solid rgba(245,243,237,0.15); } }

/* ==========================================================================
   10. TESTIMONIALS
   ========================================================================== */
.testimonial-wrap { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; }
.testimonial-slide blockquote { font-family: var(--font-display); font-size: var(--step2); font-weight: 500; line-height: 1.4; margin: 0 0 24px; }
.testimonial-slide .t-name { font-family: var(--font-mono); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); }
.testimonial-slide .t-role { color: var(--blueprint); font-size: var(--step-1); }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; padding: 0; }
.testimonial-dots button.is-active { background: var(--amber); border-color: var(--amber); }

.logo-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip span { font-family: var(--font-mono); color: var(--blueprint); letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--step-1); }

/* ==========================================================================
   11. ABOUT PAGE
   ========================================================================== */
.about-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.timeline { position: relative; margin-top: 40px; padding-left: 28px; border-left: 1px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 9px; height: 9px; background: var(--amber); border-radius: 50%; }
.timeline-item .t-year { font-family: var(--font-mono); color: var(--amber); font-size: var(--step-1); }
.timeline-item h4 { margin: 6px 0 8px; font-size: var(--step1); }
.timeline-item p { color: var(--steel); max-width: 60ch; }

.value-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.value-item { padding: 24px 0; border-top: 2px solid var(--ink); }
.value-item .v-num { font-family: var(--font-mono); color: var(--blueprint); }
.value-item h4 { margin: 10px 0 8px; }
.value-item p { color: var(--steel); font-size: var(--step-1); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.team-card .team-photo { aspect-ratio: 3/4; background: var(--steel); position: relative; overflow: hidden; }
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-top: 16px; font-size: 1.05rem; }
.team-card .role { font-family: var(--font-mono); font-size: var(--step-1); color: var(--amber); text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 900px) { .value-list, .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-list, .team-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   12. PORTFOLIO
   ========================================================================== */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-tabs button { padding: 10px 18px; border: 1px solid var(--line); background: transparent; font-family: var(--font-mono); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.04em; transition: all 0.15s ease; }
.filter-tabs button.is-active, .filter-tabs button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--steel); cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item .p-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,31,0.88), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: opacity 0.25s ease; }
.portfolio-item:hover .p-overlay { opacity: 1; }
.portfolio-item .p-cat { font-family: var(--font-mono); font-size: var(--step-1); color: var(--amber); text-transform: uppercase; }
.portfolio-item .p-title { color: var(--paper); font-family: var(--font-display); font-size: var(--step1); margin-top: 4px; }
.portfolio-item[hidden] { display: none; }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   13. CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-form .form-row { margin-bottom: 20px; }
.contact-form label { display: block; font-family: var(--font-mono); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--steel); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius); transition: border-color 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--amber); outline: none; }
.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-info-block { border-left: 2px solid var(--ink); padding-left: 28px; }
.contact-info-item { margin-bottom: 28px; }
.contact-info-item .ci-label { font-family: var(--font-mono); font-size: var(--step-1); text-transform: uppercase; color: var(--amber); letter-spacing: 0.05em; margin-bottom: 6px; }
.contact-info-item .ci-value { color: var(--ink); }
.map-embed { margin-top: 24px; aspect-ratio: 16/9; background: var(--paper-dim); border: 1px solid var(--line); display: grid; place-items: center; color: var(--blueprint); font-family: var(--font-mono); font-size: var(--step-1); }
.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.75rem; transition: all 0.15s ease; }
.social-row a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .contact-info-block { border-left: none; border-top: 2px solid var(--ink); padding-left: 0; padding-top: 24px; } }

/* ==========================================================================
   14. CTA BANNER
   ========================================================================== */
.cta-banner { background: var(--ink); color: var(--paper); padding: 72px 0; text-align: center; }
.cta-banner h2 { font-size: var(--step3); max-width: 20ch; margin: 0 auto 28px; }
.cta-banner .btn-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(245,243,237,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(245,243,237,0.12); }
.footer-brand .site-logo { color: var(--paper); }
.footer-brand .site-logo .mark { border-color: var(--paper); }
.footer-brand p { margin-top: 16px; max-width: 32ch; font-size: var(--step-1); }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper); margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; font-size: var(--step-1); }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-family: var(--font-mono); font-size: 0.75rem; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; } }

/* ==========================================================================
   16. RESPONSIVE TYPE / MISC
   ========================================================================== */
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
