/* ==========================================================================
   albertwhite.ie — single stylesheet
   Colours and type mirror the original Astra/Spectra design.
   ========================================================================== */

:root {
  --purple: #6528F7;        /* accent */
  --purple-dark: #5511F8;   /* accent hover */
  --ink: #0F172A;           /* headings */
  --body: #454F5E;          /* body text */
  --lavender: #F2F0FE;      /* light section background */
  --near-black: #0D0614;    /* hero + footer */
  --white: #FFFFFF;
  --header-h: 100px;
}

* { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
}

h1 { font-size: 3rem; line-height: 1.4; }
h2 { font-size: 2.625rem; line-height: 1.3; }
h3 { font-size: 1.75rem; line-height: 1.3; }
h4 { font-size: 1.25rem; line-height: 1.2; }

p { margin: 0 0 1rem; }

a { color: var(--purple); text-decoration: none; }
a:hover, a:focus { color: var(--purple-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.narrow { max-width: 1240px; }

/* --------------------------------------------------------------------------
   Header — transparent (home) variant floats over the hero; standard variant
   sits on a white bar (subpages). The original site shows the logo on the
   home page only.
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}

.site-header--standard {
  position: static;
  background: var(--white);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--header-h);
  padding: 0.5em 0;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5em;
}

.menu a {
  color: var(--body);
  padding: 0.5em 0;
}

.site-header--standard .menu a { color: var(--purple); }
.site-header--standard .menu a:hover { color: var(--purple-dark); }

.menu a:hover,
.menu a.is-current { color: var(--purple-dark); }

.site-header--transparent .menu a { color: #eff2ff; }
.site-header--transparent .menu a:hover,
.site-header--transparent .menu a.is-current { color: var(--white); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: url('../images/hero.jpg') center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 6, 20, 0.45);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 60px 20px 70px;
}

.hero-photo {
  flex: 0 0 50%;
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  display: block;
}

.hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.hero .btn { margin-top: 0.5rem; }
.hero p { color: var(--white); margin: 0; }

/* --------------------------------------------------------------------------
   Cards section (home)
   -------------------------------------------------------------------------- */
.cards-section {
  background: var(--lavender);
  padding: 100px 0;
}

.btn {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1em;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 17px 35px;
  border-radius: 6px;
  border: 0;
}

.btn:hover, .btn:focus {
  background: var(--purple-dark);
  color: var(--white);
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 -10px;
}

.card {
  background: var(--white);
  padding: 25px 40px;
  margin: 10px;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 260px;
}

.card-icon {
  margin-bottom: 18px;
}

.card-icon svg {
  display: block;
  width: 40px;
  height: auto;
  fill: var(--purple);
}

.card h4 { margin-bottom: 0.5rem; }
.card p { margin: 0; }

/* Card body links render dark and underlined in the original design */
.card p a {
  color: var(--body);
  text-decoration: underline;
}

.card p a:hover { color: var(--purple-dark); }

/* --------------------------------------------------------------------------
   Content pages — white card on lavender background
   -------------------------------------------------------------------------- */
.page-content {
  background: var(--lavender);
  padding: 65px 20px;
}

.page-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  padding: 80px 130px 100px;
}

.entry-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1.875rem;
  color: var(--ink);
  margin: 0 0 1.2em;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 2.5em;
  padding: 0;
  list-style: none;
}

.gallery figure {
  flex: 1 1 0;
  min-width: 220px;
  aspect-ratio: 10 / 7;
  margin: 0;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.talk {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5em;
  margin: 0 -70px 3.5em; /* wider than the card padding, like the original */
  padding: 0;
}

.talk-body { flex: 1 1 380px; min-width: 0; }
.talk-media { flex: 0 0 280px; margin: 0 0 0 auto; }
.talk-media img { display: block; width: 100%; height: auto; }

.talk .event {
  color: var(--body);
  margin-bottom: 1.25rem;
}

.talk h3 { margin-bottom: 1rem; word-break: break-word; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--near-black);
  color: var(--white);
  margin-top: 0;
}

.footer-social {
  border-top: 1px solid rgba(230, 230, 230, 0.57);
  padding: 45px 20px;
}

.footer-social .container { max-width: 1200px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 0 0.4em;
  margin: 6px 0;
}

.footer-social svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

.footer-social a { color: #eff2ff; }
.footer-social .label { color: #eff2ff; padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(81, 86, 129, 0.72);
  padding: 20px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--white);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html { font-size: 91.2%; }
}

@media (max-width: 544px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 160px; /* clears the floating header */
  }
  .card { padding: 22px 25px; }
  .cards-section { padding: 20px 0 40px; }
  .page-content { padding: 20px 10px; }
  .page-card { padding: 30px 25px 40px; }
  .talk { margin-left: 0; margin-right: 0; }
  .talk-media { flex-basis: 100%; margin: 0; }
}
