/* Optimise Guernsey — site styles
   Rebuilt as static HTML/CSS/JS from the Squarespace original. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

:root {
  --purple: #3f173d;
  --pink: #ea27c2;
  --white: #ffffff;
  --black: #000000;
  --gray: #666666;
  --max-width: 1400px;
  --nav-height: 94px;
  --radius: 6px;
  --font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p {
  margin: 0;
  font-weight: 300;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  font-weight: 500;
  font-size: 0.84rem;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn--lg {
  font-size: 1rem;
  padding: 16px 28px;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--white);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 0 44px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header .logo-mark {
  height: 43px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__links {
  display: flex;
  gap: 61px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: 1rem;
  font-weight: 300;
  padding-bottom: 4px;
}

.site-nav__links a[aria-current="page"] {
  text-decoration: underline;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* Push content below the fixed header */

main {
  padding-top: var(--nav-height);
}

/* Hero (purple banner) */

.hero {
  background: var(--purple);
  color: var(--white);
  padding-top: 167px;
  padding-bottom: 160px;
}

.hero-content {
  margin-left: 25%;
  width: 50%;
}

.hero .logo-word {
  max-width: 420px;
  margin-bottom: 54px;
}

.hero h1,
.hero h3 {
  font-size: 2.26rem;
  line-height: 1.33;
  margin-bottom: 24px;
}

.hero p {
  margin-bottom: 12px;
}

.hero--center {
  text-align: center;
  padding: 70px 0;
}

.hero--center h1 {
  max-width: none;
  margin: 0 auto;
  font-size: 4.15rem;
}

/* Section spacing */

.section {
  padding: 80px 0;
}

.section--purple {
  background: var(--purple);
  color: var(--white);
}

.section h2 {
  font-size: 2.9rem;
  color: var(--purple);
  text-align: center;
  margin-bottom: 56px;
}

.section--purple h2 {
  color: var(--white);
}

.section--quotes h2 {
  font-size: 2.26rem;
}

/* Client logo grid */

.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.client-grid img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
}

.section-text {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: justify;
  font-size: 1.525rem;
}

.section-text p + p {
  margin-top: 20px;
}

/* Testimonial */

.testimonial {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 56px;
}

.testimonial img {
  width: 100%;
}

.testimonial h3 {
  font-size: 1.63rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.63rem;
  line-height: 1.5;
}

/* Three-column "How we work" */

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.columns h3 {
  font-size: 1.63rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
}

.columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.columns li {
  font-size: 1rem;
  padding: 6px 0;
}

/* Map + CTA */

.map-block {
  text-align: center;
}

.map-block p {
  font-size: 1.63rem;
}

.map-block img {
  max-width: 420px;
  margin: 40px auto;
}

.map-block .btn {
  margin-top: 8px;
}

/* Testimonial quote grid (services / about) */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quote-grid blockquote {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.4;
}

.quote-grid cite {
  font-style: normal;
  font-size: 1.525rem;
}

/* Services offered */

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 48px;
}

.service-list h2 {
  text-align: left;
  font-size: 2.26rem;
  align-self: start;
}

.service-list h3 {
  font-size: 2.26rem;
  color: var(--purple);
  font-weight: 300;
  margin-bottom: 16px;
}

.service-list p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Video block */

.video-block {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-block video,
.video-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 128px;
  align-items: start;
}

.services-intro h1 {
  font-size: 2.26rem;
  color: var(--purple);
  margin-bottom: 20px;
}

.services-intro p {
  margin-bottom: 24px;
}

.services-intro .lead-line {
  font-size: 1.63rem;
}

.services-intro .arrow {
  color: var(--pink);
}

.services-intro--wide h1 {
  font-size: 2.9rem;
}

.section--lead {
  padding-top: 215px;
}

/* About page */

.about-photo {
  max-width: 500px;
  margin: 40px 0 0 auto;
}

.about-photo figcaption {
  font-size: 0.9rem;
  margin-top: 8px;
  color: var(--gray);
}

/* Footer */

.site-footer {
  background: var(--purple);
  color: var(--white);
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.footer-grid h2 {
  font-size: 2.26rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.footer-grid p {
  font-size: 0.836rem;
  padding: 4px 0;
  opacity: 0.9;
}

.footer-grid a {
  text-decoration: underline;
}

/* Contact form */

.contact-form {
  max-width: 580px;
  margin: 64px auto;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-form legend,
.field-label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.field-label .req {
  color: var(--gray);
  font-weight: 300;
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 2px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .hint {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-note {
  max-width: 580px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  background: #f6eef5;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-note.is-visible {
  display: block;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-content {
    margin-left: 0;
    width: 100%;
  }

  .client-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .columns,
  .quote-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .service-list {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .service-list h2 {
    grid-row: auto;
  }

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

  .services-intro {
    grid-template-columns: 1fr;
  }

  .about-photo {
    margin: 40px auto 0;
  }

  .name-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding: 0 20px;
  }

  .site-nav__links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav.is-open .site-nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-top: 1px solid #eee;
  }

  .hero, .section {
    padding: 56px 0;
  }

  .hero h1, .hero h3, .section h2 {
    font-size: 1.8rem;
  }

  .hero--center h1 {
    font-size: 2.2rem;
  }

  .service-list h2,
  .service-list h3,
  .section--quotes h2,
  .services-intro h1 {
    font-size: 1.8rem;
  }

  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
