/* ===== Hibernian Group — static site styles ===== */
:root {
  --green-900: #00342d;
  --green-800: #00423a;
  --green-700: #0a5c50;
  --teal-600: #2a6b62;
  --green-50: #edf9f3;
  --yellow: #ffc107;
  --ink: #1c1f1e;
  --muted: #5b6360;
  --line: #e4ebe7;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 52, 45, 0.10);
  --shadow-sm: 0 8px 24px rgba(0, 52, 45, 0.08);
  --maxw: 1180px;
  --font-head: "Montserrat Alternates", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; letter-spacing: -0.4px; color: var(--green-900); }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--green-50); }
.center { text-align: center; }
.lead { font-size: 1.06rem; max-width: 760px; }
.center .lead { margin-inline: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-family: var(--font-head);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--green-800); }
.btn-yellow { background: var(--yellow); color: #3a2c00; }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--ink); padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--green-800); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--yellow); border-radius: 2px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 4px; font-family: var(--font-head); font-size: .85rem; font-weight: 600; }
.lang a { padding: 4px 8px; border-radius: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.lang a.active { background: var(--green-800); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: .25s; }

/* ---- hero (rounded card) ---- */
.hero { background: #fff; padding: clamp(20px, 3vw, 40px) 0; }
.hero-card { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, var(--teal-600), var(--green-800)); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 520px; padding: clamp(34px, 4.5vw, 64px); box-shadow: var(--shadow); }
.hero-card.single { grid-template-columns: 1fr; text-align: center; min-height: 360px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 2.3vw, 2.4rem); line-height: 1.2; }
.hero p { color: rgba(255,255,255,.9); font-size: 1rem; margin-top: 18px; }
.hero .hl { color: var(--yellow); font-weight: 700; }
.hero .btn-row { margin-top: 30px; }
.hero-card.single .btn-row { justify-content: center; }
.hero-media { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: contain; object-position: center right; }
.hero-text { position: relative; z-index: 2; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- socials in header ---- */
.socials { display: flex; align-items: center; gap: 12px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; color: var(--green-800); transition: color .2s, transform .2s; }
.socials a:hover { color: var(--yellow); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- mission (centered) ---- */
.mission { text-align: center; }
.mission h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.mission-text { max-width: 1100px; margin: 26px auto 0; color: var(--muted); font-size: 1.05rem; }
.mission-text strong { color: var(--ink); }

/* ---- split rows ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; color: var(--green-700); margin-bottom: 14px; }
.split-body p { margin-top: 16px; }

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 52px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 3px solid var(--green-50); }
.team-card h3 { text-align: center; font-size: 1.15rem; }
.team-card p { font-size: .86rem; margin-top: 10px; text-align: center; }

/* ---- checklist ---- */
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 38px; color: var(--ink); font-size: .98rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---- activities columns ---- */
.activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.activity { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.activity h3 { color: var(--green-800); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.activity ol { margin-left: 18px; color: var(--muted); display: grid; gap: 8px; }

/* ---- partners ---- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; margin-top: 48px; }
.partners img { max-height: 92px; width: auto; filter: grayscale(.2); opacity: .9; transition: .2s; }
.partners img:hover { filter: none; opacity: 1; transform: scale(1.04); }

/* ---- cards (news/cases) ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16/9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.badge { align-self: flex-start; background: var(--green-50); color: var(--green-800); font-family: var(--font-head); font-weight: 600; font-size: .78rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .3px; }
.card-body h3 { font-size: 1.18rem; }
.card-body h3 a { color: inherit; transition: color .2s; }
.card-body h3 a:hover { color: var(--green-700); text-decoration: underline; }
.card-body p { margin-top: 12px; font-size: .94rem; }
.card-body .more { margin-top: auto; padding-top: 18px; font-family: var(--font-head); font-weight: 600; color: var(--green-800); display: inline-flex; align-items: center; gap: 6px; }
.card-body .more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }

/* ---- single case (full) ---- */
.case-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 44px; }
.case-block img { width: 100%; max-height: 360px; object-fit: cover; }
.case-content { padding: clamp(28px, 4vw, 48px); }
.case-content h3 { margin-bottom: 18px; }
.case-content h4 { color: var(--green-700); margin: 22px 0 10px; font-size: 1.05rem; }
.case-content p { margin-bottom: 10px; }
.case-content ol { margin: 0 0 6px 20px; color: var(--muted); display: grid; gap: 8px; }
.case-content .result { background: var(--green-50); border-left: 4px solid var(--green-800); padding: 18px 22px; border-radius: 12px; margin-top: 22px; }
.case-content .result strong { color: var(--green-900); }

/* ---- testimonials ---- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review .quote { font-size: 2.6rem; line-height: .6; color: var(--yellow); font-family: var(--font-head); margin-bottom: 8px; }
.review p { color: var(--ink); font-size: .95rem; }
.review .who { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.review .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.review .who strong { display: block; font-family: var(--font-head); color: var(--green-900); }
.review .who span { font-size: .85rem; color: var(--muted); }

/* ---- CTA banner ---- */
.cta { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,52,45,.82), rgba(0,52,45,.88)); }
.cta .container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; }
.cta h2 { color: #fff; max-width: 760px; margin: 0 auto; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* ---- footer ---- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img.flogo { height: 26px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--yellow); }
.footer-links { display: grid; gap: 10px; }
.footer-contact a { display: block; color: #fff; font-weight: 600; margin-top: 4px; }
.footer-contact span { font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: .85rem; text-align: center; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  /* --- mobile header / burger menu --- */
  .site-header { background: #fff; }
  .nav { min-height: 64px; height: auto; flex-wrap: wrap; align-items: center; }
  .nav.open { padding-bottom: 10px; box-shadow: var(--shadow-sm); }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links, .nav-right { display: none; }
  .nav.open .nav-links,
  .nav.open .nav-right {
    display: flex; flex-direction: column; align-items: flex-start;
    flex-basis: 100%; width: 100%; margin: 0; gap: 16px; padding: 4px 2px;
  }
  .nav.open .nav-links { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav.open .nav-right { padding-bottom: 14px; }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .nav.open .nav-right { margin-left: 0; }
  .nav.open .nav-right .socials { display: flex; }
  .nav.open .nav-right .lang { font-size: 1rem; }
  .nav.open .nav-right .btn { display: inline-flex; width: 100%; justify-content: center; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --- hero stacks --- */
  .hero-card, .split { grid-template-columns: 1fr; }
  .hero-card { text-align: center; min-height: 0; gap: 18px; }
  .hero h1 { font-size: clamp(1.55rem, 6vw, 2.1rem); }
  .hero .btn-row { justify-content: center; }
  .hero-media { position: static; width: 100%; max-width: 440px; margin: 0 auto; order: -1; }
  .hero-media img { height: auto; }

  /* --- layout grids collapse --- */
  .split.reverse .split-media { order: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .activities { grid-template-columns: 1fr; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .hero-card { padding: 26px 22px; }
  .team-grid { grid-template-columns: 1fr; }
  .partners { gap: 28px; }
  .partners img { max-height: 70px; }
  .btn { width: 100%; }
  .hero .btn-row, .cta .btn-row { width: 100%; }
  .case-content { padding: 24px 20px; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
}
