@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,700;1,400&family=Allura&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --ergin-green: #2e8b4a;
  --ergin-orange: #c44b2a;
  --navy-950: #060d18;
  --navy-900: #0b1426;
  --navy-800: #132238;
  --navy-700: #1c3050;
  --gold: #c9a962;
  --gold-light: #dfc88a;
  --gold-dim: rgba(201, 169, 98, 0.15);
  --white: #ffffff;
  --gray-50: #f4f6fa;
  --gray-100: #e8ecf2;
  --gray-400: #8b97a8;
  --gray-600: #5a6678;
  --gray-800: #2a3444;
  --header-h: 80px;
  --page-gutter: 24px;
  --container: 1180px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(6, 13, 24, 0.12);
  --shadow-lg: 0 20px 60px rgba(6, 13, 24, 0.2);
  --transition: 0.25s ease;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(var(--container), 100% - var(--page-gutter) * 2); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 16px; z-index: 9999;
  background: var(--gold); color: var(--navy-900); padding: 10px 18px;
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  background: rgba(11, 20, 38, 0.92);
  border-bottom: 1px solid rgba(201, 169, 98, 0.12);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(11, 20, 38, 0.98);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo-link img { display: none; }

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo__mark {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}
.brand-logo__mark img {
  display: block;
  width: 260px;
  height: 56px;
  max-width: none;
  object-fit: cover;
  object-position: 0 0;
  mix-blend-mode: lighten;
  filter: contrast(1.08) saturate(1.1);
}
.brand-logo__stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.brand-logo__word {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-logo__word .ergin { color: var(--ergin-green); }
.brand-logo__word .trade { color: var(--ergin-orange); }
.brand-logo__word .dot {
  font-size: 0.55em;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  vertical-align: baseline;
}
.brand-logo__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.brand-logo--footer .brand-logo__mark img { mix-blend-mode: lighten; }
.brand-logo--footer .brand-logo__tag { color: rgba(255,255,255,0.45); }

@media (max-width: 768px) {
  .brand-logo__tag { display: none; }
  .brand-logo__mark { width: 44px; height: 44px; }
  .brand-logo__mark img { height: 44px; width: 200px; }
}
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li > a {
  display: flex; align-items: center; padding: 10px 16px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.88);
  border-radius: 8px; transition: color var(--transition), background var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--gold-light); background: rgba(255,255,255,0.06); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: linear-gradient(135deg, var(--gold), #a8893f);
  color: var(--navy-900) !important; font-weight: 700; font-size: 14px;
  border-radius: var(--radius); white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,169,98,0.35); }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  margin-top: var(--header-h); overflow: hidden; background: var(--navy-950);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(6,13,24,0.85) 0%, rgba(11,20,38,0.55) 50%, rgba(6,13,24,0.75) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 80px 0; max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 2px; background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700; line-height: 1.12; color: var(--white); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,0.78);
  margin-bottom: 32px; max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-weight: 700; font-size: 14px; border-radius: var(--radius);
  border: none; cursor: pointer; font-family: inherit; transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a8893f);
  color: var(--navy-900);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,169,98,0.4); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* Stats band */
.stats-band {
  background: var(--navy-900); border-top: 1px solid rgba(201,169,98,0.15);
  border-bottom: 1px solid rgba(201,169,98,0.15); padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-item strong {
  display: block; font-family: var(--font-display); font-size: 2.25rem;
  color: var(--gold); line-height: 1.1; margin-bottom: 6px;
}
.stat-item span { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; }

/* Sections */
section { padding: 88px 0; }
.section-head { margin-bottom: 48px; max-width: 640px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy-900); line-height: 1.2; margin-bottom: 14px;
}
.section-text { color: var(--gray-600); font-size: 1.05rem; }

/* About split */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual img { width: 100%; height: 420px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(11,20,38,0.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,98,0.2); border-radius: var(--radius);
  padding: 20px 24px; color: var(--white);
}
.about-badge strong { display: block; color: var(--gold); font-size: 14px; margin-bottom: 4px; }
.feature-list { margin-top: 24px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 0;
  font-size: 15px; color: var(--gray-800);
}
.feature-list i { color: var(--gold); margin-top: 3px; }

/* Portfolio grid */
.portfolio-section { background: var(--gray-50); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.portfolio-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-card--featured { grid-column: span 2; flex-direction: row; }
.portfolio-card--featured .portfolio-card-media { flex: 0 0 48%; min-height: 280px; }
.portfolio-card--featured .portfolio-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.portfolio-card-media { position: relative; height: 200px; overflow: hidden; }
.portfolio-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover .portfolio-card-media img { transform: scale(1.05); }
.portfolio-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11,20,38,0.85); color: var(--gold);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
}
.portfolio-card-body { padding: 24px; flex: 1; }
.portfolio-card-body h3 {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900);
  margin-bottom: 8px;
}
.portfolio-card-body p { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.55; }
.portfolio-meta {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--gray-400);
  margin-bottom: 16px;
}
.portfolio-meta span { display: inline-flex; align-items: center; gap: 5px; }
.portfolio-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--navy-800);
  margin-top: auto;
}
.portfolio-link:hover { color: var(--gold); }
.portfolio-link i { font-size: 12px; transition: transform var(--transition); }
.portfolio-link:hover i { transform: translateX(4px); }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--gray-100);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pillar-card:hover { border-color: var(--gold-dim); box-shadow: var(--shadow); }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.pillar-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; color: var(--navy-900); }
.pillar-card p { font-size: 14px; color: var(--gray-600); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  padding: 72px 0; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white); margin-bottom: 14px;
}
.cta-band p { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* Page hero */
.page-hero {
  margin-top: var(--header-h); padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.72); max-width: 600px; }

/* Corporate timeline */
.timeline { max-width: 720px; }
.timeline-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 24px;
  padding-bottom: 32px; border-left: 2px solid var(--gray-100);
  margin-left: 48px; padding-left: 32px; position: relative;
}
.timeline-item::before {
  content: ''; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.timeline-year { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.timeline-item h3 { font-size: 1.05rem; color: var(--navy-900); margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--gray-600); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--gray-50); border: 1px solid var(--gray-100);
  transition: border-color var(--transition);
}
.contact-card:hover { border-color: var(--gold-dim); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-card h3 { font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.contact-card a, .contact-card p { font-size: 15px; color: var(--gray-600); }
.contact-card a:hover { color: var(--gold); }
.contact-form-wrap {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-form-wrap h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 20px; color: var(--navy-900); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-100);
  border-radius: 8px; font-family: inherit; font-size: 14px;
  transition: border-color var(--transition);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--gold);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-success {
  margin-top: 12px; padding: 12px; background: #e8f5e9; color: #2e7d32;
  border-radius: 8px; font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--navy-950); color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand-logo { align-items: flex-start; }
.footer-brand .brand-logo__mark { width: 48px; height: 48px; }
.footer-brand .brand-logo__mark img { height: 48px; width: 220px; }
.footer-brand .brand-logo__word { font-size: 1.15rem; }
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 300px; margin-top: 16px; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; padding: 5px 0;
  color: rgba(255,255,255,0.65); transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a:hover { color: var(--gold); }

body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card--featured { grid-column: span 2; flex-direction: column; }
  .portfolio-card--featured .portfolio-card-media { flex: none; height: 220px; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; --page-gutter: 20px; }
  body.nav-open::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(6, 13, 24, 0.55); z-index: 2400; pointer-events: auto;
  }
  .site-header { z-index: 2500; overflow: visible; backdrop-filter: none; }
  body.nav-open .site-header { background: var(--navy-900); }
  .header-inner { position: relative; z-index: 2502; }
  .menu-toggle { display: flex; position: relative; z-index: 2503; }
  .header-cta:not(.nav-cta-mobile) { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; width: min(340px, 90vw);
    height: 100dvh; background: var(--white);
    padding: calc(var(--header-h) + 16px) 20px 24px;
    transform: translateX(100%); transition: transform var(--transition);
    overflow-y: auto; z-index: 2501;
    box-shadow: -12px 0 40px rgba(6,13,24,0.2);
    flex-direction: column; align-items: stretch;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a { color: var(--gray-800); font-size: 15px; padding: 12px 14px; }
  .nav-list > li > a:hover, .nav-list > li > a.active {
    color: var(--navy-900); background: var(--gray-50);
  }
  .nav-cta-mobile { display: flex !important; width: 100%; justify-content: center; margin-top: 16px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card--featured { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { min-height: 78vh; }
  .hero-content { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
}
