/* Fíbín Media — temporary static site
   Palette sampled from the live fibinmedia.ie (Wix) site */

:root {
  --charcoal: #3e3e3e;
  --paper: #e8e6e6;
  --white: #ffffff;
  --ink: #1a1a1a;
  --red: #e8140a;
  --accent: #00b9fb;
  --muted: #6b6b6b;
  --serif: Georgia, Palatino, "Book Antiqua", "Palatino Linotype", serif;
  --sans: "Nunito Sans", Arial, Helvetica, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}
.site-header .logo img { width: 64px; height: 64px; border-radius: 50%; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 28px;
  cursor: pointer;
}
.main-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none;
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); text-decoration: underline; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding-top: 16px;
  }
  .main-nav.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
}
.hero-inner { position: relative; z-index: 1; padding: 48px 24px; color: var(--white); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0 0 6px;
}
.hero p { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); margin: 0; }

.page-hero {
  background: var(--white);
  color: var(--accent);
  padding: 48px 24px 16px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 { font-family: var(--serif); font-weight: 400; color: var(--accent); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 4px; }
.page-hero .ga { color: var(--accent); font-family: var(--serif); font-size: 1.2rem; }

/* ---------- Sections ---------- */
section { padding: 56px 24px; }
.section-alt { background: var(--paper); }
h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-top: 0; color: var(--accent); }
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.bilingual-block + .bilingual-block { margin-top: 28px; }
.ga-label { font-style: italic; color: var(--muted); font-size: .95rem; margin-bottom: 4px; }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid #ddd;
}
.card-body { padding: 18px; }
.card h3 { margin: 0 0 6px; }
.card .role { color: var(--muted); font-size: .9rem; margin: 0 0 2px; }
.card .role-ga { font-style: italic; color: var(--muted); font-size: .85rem; margin: 0; }
.card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; background: #d8d6d6; }
.card a.card-link { text-decoration: none; color: inherit; display: block; }
.card a.card-link:hover h3 { text-decoration: underline; }
.card.no-photo { display: flex; flex-direction: column; }
.photo-placeholder {
  aspect-ratio: 3/4;
  background: #d8d6d6;
}

.grid-3 {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.project-card { background: var(--white); border: 1px solid #ddd; padding: 0; overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 0; }
.project-card-body { padding: 16px 20px 20px; }
.project-card .meta { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.project-card h3 { margin: 0 0 8px; }
.project-card p:last-child { color: var(--ink); }

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  padding: 12px 28px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}
.btn:hover { background: #0098d1; }

form.contact-form { max-width: 560px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 220px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.ok { color: #1a7a2c; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding: 40px 24px 24px; }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { font-family: var(--serif); font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.footer-links { margin-top: 10px; }
.footer-links a { text-decoration: none; margin-right: 16px; font-size: .85rem; font-weight: 700; }
.footer-social { display: flex; gap: 10px; }
.footer-social img { width: 29px; height: 29px; }
.footer-badges { display: flex; gap: 12px; margin-top: 14px; align-items: center; }
.footer-badges img { height: 48px; width: auto; }
.footer-bottom { text-align: right; font-size: .8rem; color: var(--muted); margin-top: 14px; }

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; }
  .footer-bottom { text-align: left; }
}

/* ---------- Misc ---------- */
ul.plain { padding-left: 20px; }
.policy-body h3 { margin-top: 2em; }
.policy-body p { max-width: 75ch; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; color: var(--accent); }

/* ---------- Local Suppliers commitment block (About page) ---------- */
.commit-section { padding-top: 40px; }
.commit-heading { text-align: center; margin-bottom: 32px; }
.commit-heading h2 { margin-bottom: 6px; }
.commit-heading .sub {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  color: var(--muted);
}
.commit-dark {
  background: #1a1a1a;
  color: #fff;
  border-left: 4px solid var(--red);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.commit-dark .label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  color: #b7b7b7;
  margin-bottom: 12px;
}
.commit-dark .statement { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; margin: 0 0 18px; }
.commit-dark .statement strong { color: #e8b930; }
.commit-dark hr { border: none; border-top: 1px solid #3a3a3a; margin: 18px 0; }
.commit-dark .translation { font-style: italic; color: #bdbdbd; margin: 0; }

.commit-bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.commit-bilingual .col-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.commit-bilingual .ga .col-label { color: var(--red); }
.commit-bilingual .en .col-label { color: var(--muted); }
.commit-bilingual .en p { font-style: italic; color: var(--muted); }

.priority-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 32px;
}
.priority-card {
  background: var(--paper);
  border-top: 3px solid #e8b930;
  padding: 20px;
}
.priority-card .label {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.priority-card h4 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 0 0 2px; }
.priority-card .en-title { font-style: italic; color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.priority-card p { font-size: .92rem; }
.priority-card .en-text { font-style: italic; color: var(--muted); }

.commit-callout {
  background: var(--paper);
  border-left: 4px solid #2b5bb5;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.commit-callout .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #2b5bb5;
  color: #fff;
  font-size: .8rem;
  margin-right: 8px;
}
.commit-callout .translation { font-style: italic; color: var(--muted); margin-top: 10px; }

.commit-footer {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
  padding-top: 24px;
}
.commit-footer .tag {
  background: #1a1a1a;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 8px 14px;
  white-space: nowrap;
}
.commit-footer a { color: var(--red); font-weight: 700; text-decoration: none; }
.commit-footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .commit-bilingual { grid-template-columns: 1fr; }
}
