/* ----------------------------------------
   Tom Croxon website
----------------------------------------- */

:root {
  --red: #d92727;
  --text: #4a4a4a;
  --text-dark: #333333;
  --light-grey: #eeeeee;
  --gallery-grey: #e9e9e9;
  --footer-grey: #b6b6b6;
  --white: #ffffff;

  --page-width: 1100px;
  --content-width: 760px;
  --side-pad: clamp(30px, 6vw, 70px);
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover,
a:focus {
  color: var(--red);
}

/* ----------------------------------------
   Layout
----------------------------------------- */

.page-wrap {
  width: 100%;
  max-width: var(--page-width);
  margin-left: 0;
  margin-right: auto;
  padding-inline: var(--side-pad);
}

/* Keeps text/logo/footer aligned to a deliberate left-set edge on desktop/tablet */
.page-wrap.narrow {
  width: 100%;
  max-width: var(--page-width);
  margin-left: 0;
  margin-right: auto;
  padding-inline: var(--side-pad);
}

/* ----------------------------------------
   Header
----------------------------------------- */

.site-header {
  background: var(--white);
  padding-block: clamp(46px, 6.5vw, 82px) clamp(34px, 4.5vw, 58px);
}

.logo-link {
  display: inline-block;
}

.site-logo {
  width: clamp(420px, 42vw, 520px);
  height: auto;
}



/* ----------------------------------------
   Hero
----------------------------------------- */

.hero {
  width: 100%;
  background: #080808;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: clamp(520px, 68vw, 860px);
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 1200px) {
  .hero img {
    height: 960px;
  }
}




/* ----------------------------------------
   Intro / main quote
----------------------------------------- */

.intro {
  background: var(--light-grey);
  padding-block: clamp(70px, 9vw, 110px) clamp(76px, 10vw, 126px);
}

.intro h1 {
  margin: 0;
  max-width: var(--content-width);
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #5f5f5f;
}

.main-quote {
  margin: clamp(66px, 8vw, 92px) 0 0;
  padding: 0;
  max-width: var(--content-width);
}

.main-quote p {
  margin: 0;
  font-size: clamp(31px, 4.3vw, 48px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--red);
}

.main-quote cite {
  display: block;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 15px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555555;
}

/* ----------------------------------------
   About / copy sections
----------------------------------------- */

.about {
  background: var(--white);
  padding-block: clamp(82px, 10vw, 126px) clamp(96px, 12vw, 150px);
}

.text-block,
.testimonial {
  max-width: var(--content-width);
}

.text-block + .text-block,
.testimonial + .text-block {
  margin-top: clamp(56px, 7vw, 84px);
}

.text-block h2,
.footer-col h2 {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--red);
}

.text-block h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-dark);
}

.text-block p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--text);
}

.text-block p:last-child {
  margin-bottom: 0;
}

.testimonial {
  margin: clamp(44px, 6vw, 62px) 0;
  padding: clamp(24px, 3.5vw, 34px) clamp(28px, 4vw, 44px);
  background: var(--light-grey);
}

.testimonial p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #686868;
}

.testimonial cite {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  color: #555555;
}

.work-text {
  max-width: var(--content-width);
}

/* ----------------------------------------
   Gallery
----------------------------------------- */

.gallery {
  background: var(--gallery-grey);
  padding-block: clamp(70px, 8vw, 96px);
}

/* Gallery deliberately does NOT align to the text column.
   It spans the full browser width with even left/right padding, as per the mock-up. */
.gallery .page-wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(36px, 5.5vw, 72px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 26px);
}

.gallery-item {
  margin: 0;
  background: #c9c9c9;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.gallery-item img[src*="placeholder"] {
  background:
    linear-gradient(135deg, #111 0%, #444 48%, #0b0b0b 100%);
}

.gallery-item.placeholder {
  background: #c9c9c9;
}

/* ----------------------------------------
   Footer
----------------------------------------- */

.site-footer {
  background: var(--footer-grey);
  color: var(--white);
  padding-block: clamp(70px, 8vw, 98px) clamp(88px, 10vw, 125px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.footer-col h2 {
  margin-bottom: 16px;
  color: var(--white);
  text-transform: none;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.footer-col p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--white);
}

.footer-col strong {
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--white);
  border-radius: 6px;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  color: var(--white);
}

.social-links a:hover,
.social-links a:focus {
  color: var(--red);
  border-color: var(--red);
}


/* ----------------------------------------
   Desktop editorial alignment
----------------------------------------- */

@media (min-width: 1200px) {

  .site-header .page-wrap,
  .intro .page-wrap,
  .about .page-wrap,
  .site-footer .page-wrap {
    padding-left: 72px;
  }

}


/* ----------------------------------------
   Responsive
----------------------------------------- */
.dreamtown {
  padding-top: 10px;
}



/* ----------------------------------------
   Responsive
----------------------------------------- */

@media (max-width: 900px) {

  /* Tablet gallery = 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

}

@media (max-width: 640px) {

  :root {
    --side-pad: 28px;
  }

  body {
    font-size: 14px;
  }

  .site-header {
    padding-block: 40px 32px;
  }

  .site-logo {
    width: min(420px, 88vw);
  }

  .hero img {
    height: 420px;
    object-position: center center;
  }

  .intro {
    padding-block: 56px 70px;
  }

  .intro h1 {
    font-size: 16px;
    line-height: 1.48;
  }

  .main-quote {
    margin-top: 52px;
  }

  .main-quote p {
    font-size: clamp(28px, 9vw, 38px);
  }

  .about {
    padding-block: 66px 82px;
  }

  .text-block p,
  .testimonial p {
    font-size: 15px;
	  line-height: 1.8;
  }

  .gallery {
    padding-block: 52px;
  }

  /* Mobile gallery = stacked vertically */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-item {
    width: 100%;
    aspect-ratio: 1.55 / 1;
  }

  .site-footer {
    padding-block: 58px 76px;
  }

}
