/* ============================================================
   HOLMAN TEAGUE ROCHE ANGLIN, LLP — style.css
   Mobile-first, fluid type & spacing via clamp()
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {

  /* Color tokens */
  --color-primary:          #ffffff;
  --color-primary-dark:     #e8e2d9;
  --color-secondary:        rgba(255, 255, 255, 0.80);
  --color-secondary-dark:   rgba(255, 255, 255, 0.60);
  --color-overlay-top:      rgba(0, 0, 0, 0.20);
  --color-overlay-mid:      rgba(0, 0, 0, 0.05);
  --color-overlay-bottom:   rgba(0, 0, 0, 0.42);
  --color-shadow:           rgba(0, 0, 0, 0.65);
  --color-shadow-light:     rgba(0, 0, 0, 0.35);

  /* Typography tokens — all clamp(), min 18px (1.125rem) */
  /* clamp(min, preferred, max) */
  --font-size-xs:     clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);   /* 18–20px */
  --font-size-sm:     clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); /* 18–21px */
  --font-size-base:   clamp(1.125rem, 1rem + 0.5vw,  1.5rem);       /* 18–24px */
  --font-size-md:     clamp(1.125rem, 0.95rem + 0.7vw, 1.75rem);    /* 18–28px */
  --font-size-lg:     clamp(1.125rem, 0.85rem + 1vw,  2rem);        /* 18–32px */
  --font-size-xl:     clamp(1.125rem, 0.7rem + 1.4vw, 2.5rem);      /* 18–40px */

  --font-family-serif:   'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-family-display: Georgia, 'Times New Roman', serif;

  --font-weight-normal:   400;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* Logo image — fluid height */
  --logo-height: clamp(4.375rem, 4vw + 1rem, 4.375rem); /* 70px */

  /* Partners list — targeting ~21px min */
  --font-size-partners: clamp(1.3125rem, 1.2rem + 0.4vw, 1.5rem); /* 21–24px */

  --line-height-tight:  1.3;
  --line-height-base:   1.65;
  --line-height-loose:  1.8;

  --letter-spacing-wide:  0.04em;
  --letter-spacing-tight: 0.01em;

  /* Spacing tokens — fluid via clamp() */
  --space-2xs:  clamp(0.25rem, 0.2rem  + 0.25vw, 0.5rem);    /*  4–8px  */
  --space-xs:   clamp(0.5rem,  0.4rem  + 0.4vw,  0.875rem);  /*  8–14px */
  --space-sm:   clamp(0.75rem, 0.6rem  + 0.6vw,  1.25rem);   /* 12–20px */
  --space-md:   clamp(1rem,    0.8rem  + 0.8vw,  1.75rem);   /* 16–28px */
  --space-lg:   clamp(1.5rem,  1.1rem  + 1.2vw,  2.5rem);    /* 24–40px */
  --space-xl:   clamp(2rem,    1.4rem  + 1.8vw,  3.5rem);    /* 32–56px */
  --space-2xl:  clamp(2.5rem,  1.6rem  + 2.5vw,  5rem);      /* 40–80px */

  /* Layout tokens */
  --padding-page-x: clamp(2.5rem, 6vw, 5rem);
  --padding-page-y: clamp(3rem,   6vw, 4.5rem);

  /* Effects */
  --text-shadow-strong: 0 1px 8px var(--color-shadow);
  --text-shadow-light:  0 1px 4px var(--color-shadow-light);
  --drop-shadow-logo:   drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────────── */
html {
  font-size: 100%; /* respect user browser settings */
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  background-image: none; /* set dynamically by inline script */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* ── Overlay ────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-overlay-top)    0%,
    var(--color-overlay-mid)    40%,
    var(--color-overlay-bottom) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 1;
  padding: var(--padding-page-y) var(--padding-page-x);
}

.site-logo {
  display: block;
  height: var(--logo-height);
  width: auto;
  filter: brightness(0) invert(1) var(--drop-shadow-logo);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;           /* mobile-first: stack */
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--padding-page-y) var(--padding-page-x);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

/* ── Footer blocks ──────────────────────────────────────────── */
.footer-block {
  text-shadow: var(--text-shadow-strong);
}

/* Partners — first on mobile */
.partners {
  order: -1;
}

.partners__list {
  list-style: none;
  font-family: var(--font-family-logo);
  font-size: var(--font-size-partners);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-loose);
  color: var(--color-secondary);
  letter-spacing: var(--letter-spacing-tight);
}

/* Company info — second on mobile */
.company-info {
  order: 1;
}

.company-info__name {
  font-family: var(--font-family-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.company-info__address {
  font-style: normal;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-loose);
  color: var(--color-secondary);
  letter-spacing: var(--letter-spacing-tight);
}

/* ── Breakpoint: tablet and up (≥ 640px) ───────────────────── */
@media (min-width: 40rem) {
  body {
    overflow: hidden;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .partners {
    order: 1;          /* right side on larger screens */
    text-align: right;
  }

  .company-info {
    order: -1;         /* left side on larger screens */
    text-align: left;
  }
}

/* ── Breakpoint: wide (≥ 1200px) ───────────────────────────── */
@media (min-width: 75rem) {
  /* Reserved for future wide-screen overrides */
}