/* Frattas Event Planning + Design
   Colours, type and spacing measured from the original Squarespace site.
   Squarespace sizes headings and section padding in vmax, so this does too:
   at 1440x900 1vmax = 14.4px, on a 390x844 phone 1vmax = 8.44px. */

:root {
  --charcoal: #373d42;   /* dark sections */
  --grey: #cbd0d2;       /* light sections, footer */
  --pink: #eac7c1;       /* client logos section */
  --gold: #cc9933;       /* buttons */
  --white: #ffffff;
  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 3vw;                 /* 43px at 1440 */
  --pad-s: 3.3vmax;              /* 47.5px at 1440x900 */
  --pad-m: 6.6vmax;              /* 95px */
  --block: 17px;                 /* Squarespace text-block padding */
  --logo-h: 90px;
  --header-pad: 2vmax;           /* 29px */
  --header-h: calc(var(--logo-h) + 2 * var(--header-pad));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grey);
  color: var(--charcoal);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-size: calc(3.6vmax + 1rem); line-height: 1.232; }   /* 67.8px */
h2 { font-size: calc(2.16vmax + 1rem); line-height: 1.3; }    /* 47.1px */
h3 { font-size: calc(1.44vmax + 1rem); line-height: 1.333; }  /* 36.7px */
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--gold); }

.container { padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); color: var(--charcoal); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons (Squarespace pill buttons: 20.8px 34.7px padding, 0.02em tracking) */
.button {
  display: inline-block;
  font-weight: 500;
  font-size: calc(1rem + 0.12vmax);   /* 17.7px desktop, 17px phone */
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding: 20.8px 34.736px;
  text-decoration: none;
  border-radius: 300px;
  transition: opacity 0.15s ease;
}
.button:hover { opacity: 0.85; }
.button--header { background: var(--gold); color: var(--white); font-size: 14.272px; }
.button--header:hover { color: var(--white); }
.button--white { background: var(--white); color: var(--charcoal); }
.button--white:hover { color: var(--charcoal); }
.button--gold { background: var(--gold); color: var(--white); }
.button--gold:hover { color: var(--white); }

/* Header: transparent, laid over the top of the hero */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.site-header__logo img { height: var(--logo-h); width: auto; }

.menu-toggle {
  display: none;
  position: relative;
  width: 47px; height: 37px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.menu-toggle__bar {
  position: absolute; left: 10px; width: 27px; height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle__bar:first-child { top: 13px; }
.menu-toggle__bar:last-child { top: 23px; }
.menu-toggle.is-open .menu-toggle__bar { top: 18px; }
.menu-toggle.is-open .menu-toggle__bar:first-child { transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; top: 84px; z-index: 50;
  background: var(--charcoal);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 6vw;
}
.menu[hidden] { display: none; }

/* Hero */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding-top: calc(var(--header-h) + var(--pad-s));
  padding-bottom: var(--pad-s);
}
.hero__title { width: 75%; text-wrap: pretty; }

/* Services */
.services { position: relative; background: var(--grey); overflow: hidden; }
.services__background {
  position: absolute; inset: 0;
  background: url("../images/venue.jpg") center / cover no-repeat;
  opacity: 0.5;   /* how much of the venue photo shows through the grey */
}
.services__inner {
  position: relative;
  padding-top: var(--pad-m);
  padding-bottom: calc(var(--pad-m) + var(--block));
  text-align: center;
}
.services__title { padding-bottom: var(--block); }
.services__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-top: var(--block);
}
.services__column h3 { padding: 0 var(--block) var(--block); }
.services__column ul { text-align: left; padding: 15px 0 0 40px; }
.services__column li { position: relative; }
.services__column li + li { margin-top: 8px; }
.services__column li::before { content: "•"; position: absolute; left: -14px; }
.services__action { padding-top: 41px; }

/* Clients */
.clients { background: var(--pink); text-align: center; }
.clients__title { padding: 7.7vmax var(--gutter) 3vmax; }   /* 111px / 43px */
.clients__title h2 { width: 75%; margin: 0 auto; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7.3vw;
  padding: 0 7.3vw;
}
.clients__grid li { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; }
.clients__grid img { max-height: 100%; width: auto; object-fit: contain; }
.clients__spacer { height: 10.6vmax; }   /* 153px */

/* Call to action */
.cta {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  min-height: 41.25vmax;   /* 594px */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--pad-m);
  padding-bottom: var(--pad-m);
}
.cta .button { margin-top: 34px; }

/* Footer */
.site-footer { background: var(--grey); }
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 3vmax;             /* 43px */
  padding-bottom: var(--pad-m);   /* 95px */
  min-height: 20.6vmax;           /* 297px */
}

/* Phone */
@media (max-width: 767px) {
  :root {
    --gutter: 6vw;                /* 23px at 390 */
    --logo-h: 30px;
    --header-pad: 3.2vmax;        /* 27px */
  }
  .site-header .button--header { display: none; }
  .menu-toggle { display: block; }
  .hero {
    padding-top: calc(var(--header-h) + var(--pad-s) + var(--block));
    padding-bottom: calc(var(--pad-s) + var(--block));
  }
  .hero__title { width: 100%; }
  .services__inner { padding-top: calc(var(--pad-m) + var(--block)); }
  .services__columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .services__column + .services__column { padding-top: 42px; }
  .services__column h3 { padding: 0 0 var(--block); }
  .services__column ul { padding-top: 14px; }
  .button--white { display: block; text-align: center; }
  .clients__title { padding: 10vmax var(--gutter) 3.4vmax; }   /* 85px / 29px */
  .clients__title h2 { width: 100%; }
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__spacer { height: 17vmax; }   /* 143px */
  .cta { min-height: 66vmax; }           /* 557px */
  .site-footer__inner {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding-top: calc(1.4vmax + var(--block));   /* 28px */
    min-height: 33vmax;                          /* 279px */
    gap: 34px;
  }
  .site-footer__email { text-align: right; }
}
