/* ==========================================================================
   Trophies page styles. Colours and fonts are set once in ":root" below.
   ========================================================================== */

/* ---------- 1. COLOURS AND FONTS ---------- */
:root {
  --milk: #F9F7F0;       /* page background */
  --stone: #DBD2C2;      /* gift section background, lines */
  --clay: #B17457;       /* accent colour */
  --clay-dark: #8E5238;  /* accent colour for small text (easier to read) */
  --graphite: #4A4947;   /* body text, dark section background */
  --deep: #2F2E2C;       /* headings */
  --photo-bg: #DDDAD0;   /* colour shown behind photos while they load */

  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- 2. BASIC RESET AND TYPOGRAPHY ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;   /* keeps headings clear of the fixed header */
}

body {
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--deep);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 22px;
}

p + p {
  margin-top: 0.9em;
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 99;
  padding: 8px 12px;
  background: #fff;
}

/* ---------- 4. HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(249, 247, 240, 0.9);
  backdrop-filter: blur(8px);
}

.site-header {
  box-shadow: 0 1px 0 var(--stone);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img {
  width: auto;
  height: 38px;
}

.menu {
  display: flex;
  gap: 34px;
  list-style: none;
}

.menu a {
  padding: 4px 0;
  font-size: 0.95rem;
  color: var(--deep);
  text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-underline-offset: 6px;
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  padding: 150px 0 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -14%;
  width: min(100vw, 760px);
  aspect-ratio: 1;
  background: url("../images/mandala-pattern.webp") center / contain no-repeat;
  opacity: 0.16;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
}

.hero h1 em {
  color: var(--clay);
  font-style: italic;
}

.hero-text {
  max-width: 34rem;
  margin-top: 22px;
}

/* ---------- 6. TROPHY CARDS ---------- */
.trophies {
  padding: 70px 0 clamp(70px, 9vw, 110px);
  background: var(--stone);
}

.section-title {
  margin-bottom: 32px;
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.trophy-card {
  position: relative;
  overflow: hidden;
  background: var(--milk);
  border-bottom: 4px solid var(--clay);
}

.trophy-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-bottom: 14px;
}

.trophy-card h3 a {
  text-decoration: none;
}

.trophy-card h3 a:hover {
  color: var(--clay);
}

.trophy-number {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--clay);
}

.trophy-date {
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--clay-dark);
}

/* Large card for the newest trophy: photo on the left, text on the right */
.trophy-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.trophy-image {
  display: block;
  background: var(--photo-bg);
}

.trophy-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.trophy-body {
  padding: 24px 26px 30px;
}

.trophy-card-featured .trophy-image img {
  aspect-ratio: auto;
}

.trophy-card-featured .trophy-body {
  align-self: center;
  padding: clamp(24px, 4vw, 56px);
}

.trophy-card-featured h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.trophy-link {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 26px;
  color: var(--deep);
  text-decoration: none;
  border: 1px solid var(--clay);
}

.trophy-link:hover,
.trophy-link:focus-visible {
  color: var(--milk);
  background: var(--clay);
}

/* Placeholder tile (delete it from the HTML when no longer needed) */
.trophy-card-soon {
  align-self: start;
  padding: 32px;
  background: transparent;
  border: 2px dashed var(--clay);
}

.trophy-card-soon .trophy-number {
  color: var(--clay-dark);
}

/* ---------- 7. CLOSING STATEMENT ---------- */
.closing {
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
}

.closing h2 {
  max-width: 22ch;
  margin: 0 auto 24px;
}

.closing-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.closing-links a {
  color: var(--deep);
  text-decoration-color: var(--clay);
  text-underline-offset: 5px;
}

.closing-links a:hover {
  color: var(--clay);
}

/* ---------- 8. FOOTER ---------- */
.site-footer {
  padding: 44px 0 0;
  font-size: 0.95rem;
  color: #c9d2ea;
  background: linear-gradient(120deg, #0a0f20 0%, #101733 55%, #18204d 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1.25fr;
  gap: 40px 36px;
}

.footer-logo {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border-radius: 10px;
}

.footer-logo img {
  width: auto;
  height: 34px;
}

.footer-about {
  max-width: 30ch;
  margin: 18px 0;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-social a {
  font-weight: 700;
  color: #dbe3fa;
}

.site-footer h3 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 12px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact p {
  max-width: 30ch;
  line-height: 1.65;
}

.footer-contact p + p,
.footer-contact address + p {
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding: 22px 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

/* ---------- 9. TABLET AND MOBILE ---------- */
@media (max-width: 900px) {
  .trophy-card-featured {
    grid-template-columns: 1fr;
  }

  .trophy-card-featured .trophy-image img {
    aspect-ratio: 1 / 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .menu {
    gap: 22px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
