/* ==========================================================================
   ARIP — Adriatic Renewable Investment Partners
   ========================================================================== */

:root {
  --green-950: #232a15;
  --green-900: #2f3a1c;
  --green-800: #3c4826;
  --green: #4E5B31;
  --green-600: #5f6e3d;
  --orange: #D57800;
  --orange-600: #c06c00;
  --orange-100: #f7e6cc;

  --cream: #FAF7F0;
  --cream-100: #F2EEE3;
  --white: #FFFFFF;

  --ink: #22261a;
  --ink-soft: #4b503f;
  --ink-on-dark: #f4f2ea;
  --ink-on-dark-soft: #cbd0bd;

  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(35, 42, 21, 0.06);
  --shadow-md: 0 12px 32px rgba(35, 42, 21, 0.10);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

ul { padding: 0; margin: 0; list-style: none; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--orange-600); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-800); }

.btn-ghost {
  background: transparent;
  border-color: rgba(244, 242, 234, 0.55);
  color: var(--ink-on-dark);
}
.btn-ghost:hover { background: rgba(244, 242, 234, 0.12); border-color: rgba(244, 242, 234, 0.9); }

.btn-small { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(35, 42, 21, 0.08);
}

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

.brand-logo { height: 66px; width: auto; }

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav a:not(.btn) { color: var(--ink); }

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn).active::after { transform: scaleX(1); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-950) 0%, var(--green) 65%, var(--green-600) 100%);
  color: var(--ink-on-dark);
  overflow: hidden;
  padding: 130px 0 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-icon-mark {
  position: absolute;
  right: -90px;
  top: -60px;
  width: 480px;
  opacity: 0.07;
}

.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--orange); }

.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 1.9rem + 2.6vw, 4rem);
  margin-bottom: 20px;
  max-width: 14ch;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-on-dark-soft);
  max-width: 46ch;
  margin-bottom: 36px;
}

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

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--cream); }
.section-dark {
  background: linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
  color: var(--ink-on-dark);
}

.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.centered { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.light-heading { color: #fff; }
.light-copy { color: var(--ink-on-dark-soft); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-5, .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Icon badge ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange);
  margin-bottom: 20px;
}
.icon-badge svg { width: 30px; height: 30px; }

.icon-badge-outline {
  background: transparent;
  border: 1.5px solid rgba(213, 120, 0, 0.5);
}

.section-dark .icon-badge-outline {
  border-color: rgba(244, 242, 234, 0.35);
  color: var(--orange);
}

/* ---------- Cards ---------- */
.tech-card, .feature-card, .sector-card {
  background: var(--white);
  border: 1px solid rgba(35, 42, 21, 0.08);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tech-card:hover, .feature-card:hover, .sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(213, 120, 0, 0.35);
}

.section-alt .tech-card,
.section-alt .sector-card { background: var(--white); }

.feature-card { background: var(--cream); border-color: rgba(35, 42, 21, 0.06); }

.tech-card h3, .feature-card h3, .sector-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.tech-card p, .feature-card p, .sector-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- About section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 242, 234, 0.14);
}
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  background: transparent;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 11px;
  width: 5px; height: 8px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
}
.check-list li strong { color: var(--green); }

.check-list-light li { color: var(--ink-on-dark-soft); }
.check-list-light li strong { color: #fff; }

.cyprus-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background: rgba(244, 242, 234, 0.06);
  border: 1px solid rgba(244, 242, 234, 0.14);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 780px) {
  .cyprus-panel { grid-template-columns: 1fr; }
}

/* ---------- Investment section ---------- */
.invest-card {
  background: var(--white);
  border: 1px solid rgba(35, 42, 21, 0.08);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.invest-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.invest-card h3 { margin-bottom: 16px; }

.dot-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.approach-panel {
  margin-top: 48px;
  background: var(--cream-100);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.approach-panel p { margin-bottom: 0; max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 40px;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  display: block;
  text-align: center;
  background: rgba(244, 242, 234, 0.06);
  border: 1px solid rgba(244, 242, 234, 0.14);
  border-radius: var(--radius);
  padding: 34px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.contact-card .icon-badge { margin-bottom: 16px; }
.contact-card:not(.contact-card-disabled):hover {
  transform: translateY(-3px);
  border-color: rgba(213, 120, 0, 0.5);
  background: rgba(244, 242, 234, 0.1);
}
.contact-card-disabled { opacity: 0.65; cursor: default; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { margin-bottom: 0; }

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: var(--ink-on-dark-soft);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(244, 242, 234, 0.12);
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 40px; height: 40px; }
.footer-name {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
}
.footer-tagline { font-size: 0.82rem; margin: 2px 0 0; color: var(--orange); letter-spacing: 0.03em; }

.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 0.82rem;
  margin: 24px 0 0;
  text-align: center;
  color: var(--ink-on-dark-soft);
  opacity: 0.8;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(35, 42, 21, 0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(35, 42, 21, 0.06); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 80px; }
  .cyprus-panel, .approach-panel { padding: 28px; }
}
