/* =========================================================
   PARAMOUNT COFFEE PROJECT
   Coffee atlas / city counter editorial identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --forest: #243c36;
  --forest-deep: #183029;
  --oat: #f3eee4;
  --charcoal: #191d1b;
  --terracotta: #bf6845;
  --terracotta-dark: #9f5236;
  --sand: #c7b28f;
  --sage: #d5ded8;
  --warm-white: #fffdf8;
  --gold: #d2a84f;
  --muted: #6e706a;
  --line: rgba(25,29,27,0.14);
  --light-line: rgba(255,255,255,0.18);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --shell: min(1220px, calc(100% - 64px));
  --section-space: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--oat);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--terracotta);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--charcoal);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,238,228,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.brand {
  display: inline-grid;
  line-height: 0.92;
  text-decoration: none;
}

.brand-main {
  color: var(--forest);
  font: 700 1rem/1.05 var(--serif);
  letter-spacing: -0.025em;
}

.brand-sub {
  margin-top: 6px;
  color: var(--terracotta);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

.desktop-nav a {
  position: relative;
  color: #5f655f;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--terracotta);
  transition: right 160ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.mobile-nav {
  display: none;
}

/* Type + controls */

.eyebrow {
  margin: 0 0 16px;
  color: var(--terracotta);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #efb49b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  font-size: clamp(4.1rem, 7.3vw, 7.4rem);
}

h2 {
  font-size: clamp(2.45rem, 4.5vw, 4.55rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--terracotta);
  color: white;
}

.button-primary:hover {
  background: var(--terracotta-dark);
}

.button-secondary {
  background: var(--forest);
  color: white;
}

.button-outline {
  border-color: var(--charcoal);
  background: transparent;
}

.button-outline:hover {
  background: var(--charcoal);
  color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: white;
}

/* Hero */

.hero {
  padding: 54px 0 72px;
  background:
    linear-gradient(rgba(36,60,54,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,60,54,0.035) 1px, transparent 1px),
    var(--oat);
  background-size: 44px 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(56px, 7vw, 96px);
  align-items: center;
}

.hero-copy {
  padding: 44px 0;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.hero-location {
  margin: 30px 0 0;
  color: #686960;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-atlas {
  position: relative;
  min-height: 625px;
  padding-left: 86px;
}

.hero-main-photo {
  position: absolute;
  inset: 0 0 78px 86px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 7%, 92% 100%, 0 94%);
}

.hero-secondary-photo {
  position: absolute;
  left: 0;
  top: 82px;
  width: 245px;
  height: 298px;
  margin: 0;
  border: 10px solid var(--oat);
}

.atlas-note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(410px, 74%);
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  background: var(--forest);
  color: white;
}

.atlas-kicker {
  color: #efb49b;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.atlas-note small {
  color: rgba(255,255,255,0.64);
  line-height: 1.45;
}

/* Intro */

.intro {
  background: var(--warm-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.2fr 1fr;
  gap: 58px;
}

.section-marker span {
  display: block;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 900;
}

.section-marker small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-copy h2 {
  max-width: 900px;
}

.intro-columns {
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 52px;
  margin-left: auto;
}

.intro-columns p {
  color: var(--muted);
}

.intro-columns .lead {
  color: var(--charcoal);
  font: 400 1.18rem/1.6 var(--serif);
}

/* Coffee atlas */

.coffee {
  background: var(--oat);
}

.coffee-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  align-items: start;
}

.coffee-intro {
  position: sticky;
  top: 116px;
}

.coffee-intro > p:not(.eyebrow) {
  color: var(--muted);
}

.coffee-atlas-board {
  border-top: 1px solid var(--line);
}

.coffee-atlas-board article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.coffee-atlas-board article > span {
  color: var(--terracotta);
  font-size: 0.65rem;
  font-weight: 900;
}

.coffee-label {
  margin-bottom: 5px;
  color: var(--forest);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.coffee-atlas-board h3 {
  margin-bottom: 8px;
  font: 700 clamp(1.8rem, 3vw, 2.7rem)/1.03 var(--serif);
}

.coffee-atlas-board p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Food */

.food {
  background: white;
}

.food-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.food-photo {
  height: 590px;
  margin: 0;
  overflow: hidden;
  border-radius: 140px 0 0 0;
}

.food-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.food-list {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.food-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.food-list article > span {
  color: var(--terracotta);
  font-size: 0.64rem;
  font-weight: 900;
}

.food-list h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
}

.food-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Feature */

.feature {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

.feature-photo,
.feature-shade {
  position: absolute;
  inset: 0;
}

.feature-shade {
  background: linear-gradient(90deg, rgba(25,29,27,0.88) 0%, rgba(25,29,27,0.68) 42%, rgba(25,29,27,0.14) 80%);
}

.feature-copy {
  position: relative;
  z-index: 2;
  padding-block: 92px;
}

.feature-copy h2 {
  max-width: 780px;
}

.feature-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,0.72);
}

/* Approach */

.approach {
  background: var(--sage);
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.approach-copy > p:not(.eyebrow) {
  color: #58625d;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(36,60,54,0.18);
  border-left: 1px solid rgba(36,60,54,0.18);
}

.principle-grid article {
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid rgba(36,60,54,0.18);
  border-bottom: 1px solid rgba(36,60,54,0.18);
}

.principle-grid span {
  color: var(--terracotta);
  font-size: 0.64rem;
  font-weight: 900;
}

.principle-grid h3 {
  margin: 42px 0 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.principle-grid p {
  margin: 0;
  color: #58625d;
  font-size: 0.84rem;
}

/* Experience + hours */

.experience-hours {
  background: var(--warm-white);
}

.experience-hours-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

.experience-panel,
.hours-panel {
  min-height: 460px;
  padding: 34px;
}

.experience-panel {
  border: 1px solid var(--line);
}

.experience-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.experience-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.experience-list article > span {
  color: var(--terracotta);
  font-size: 0.64rem;
  font-weight: 900;
}

.experience-list h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
}

.experience-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.experience-line {
  margin: 24px 0 0;
  color: var(--forest);
  font-family: var(--serif);
  font-style: italic;
}

.hours-panel {
  background: var(--forest);
  color: white;
}

.hours-panel .eyebrow {
  color: #efb49b;
}

.hours-list {
  margin-top: 26px;
  border-top: 1px solid var(--light-line);
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light-line);
}

.hours-list span {
  color: rgba(255,255,255,0.66);
}

.hours-list strong {
  text-align: right;
}

.hours-note {
  margin: 24px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.76rem;
}

/* Visit + newsletter */

.visit-newsletter {
  background: var(--oat);
}

.visit-newsletter-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.visit-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(rgba(36,60,54,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,60,54,0.05) 1px, transparent 1px),
    var(--sand);
  background-size: 40px 40px;
}

.visit-panel address {
  display: grid;
  gap: 5px;
  margin: 24px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--terracotta);
  font-style: normal;
}

.visit-panel address span {
  color: #5d503d;
}

.email-link {
  display: inline-block;
  width: fit-content;
  font-weight: 800;
  text-underline-offset: 4px;
}

.visit-panel > p:not(.eyebrow) {
  margin-top: 18px;
  color: #5d503d;
}

.newsletter-panel {
  padding: 34px;
  background: white;
  box-shadow: 0 18px 38px rgba(25,29,27,0.07);
}

.newsletter-panel > p:not(.eyebrow) {
  color: var(--muted);
}

.newsletter-form {
  margin-top: 30px;
}

.newsletter-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-row input {
  min-height: 48px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(25,29,27,0.22);
  border-radius: 0;
  background: white;
}

/* Final CTA */

.final-cta {
  padding: 64px 0;
  background: var(--charcoal);
  color: white;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.final-cta h2 {
  color: white;
}

.final-cta p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,0.64);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Footer */

.site-footer {
  padding: 48px 0 24px;
  background: #111512;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.84fr 1fr;
  gap: 52px;
}

.footer-brand {
  display: grid;
  align-content: start;
}

.footer-brand .brand-main {
  color: white;
}

.footer-brand .brand-sub {
  color: #efb49b;
}

.footer-brand p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
}

.footer-nav {
  display: grid;
  gap: 7px;
}

.footer-nav a,
.footer-bottom a,
.footer-address a {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-address strong {
  margin-bottom: 7px;
}

.footer-address span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--light-line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 0.7rem;
}

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

.hidden-targets {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 42px, 1020px);
  }

  .hero-grid {
    grid-template-columns: 0.84fr 1.16fr;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: calc(100% - 34px);
    --section-space: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .header-row {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-track {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero-grid,
  .intro-grid,
  .coffee-grid,
  .food-grid,
  .approach-grid,
  .experience-hours-grid,
  .visit-newsletter-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .coffee-intro {
    position: static;
  }

  .food-photo {
    height: 470px;
    border-radius: 0;
  }

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

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

  .footer-address {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--light-line);
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 26px);
    --section-space: 58px;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row {
    min-height: 72px;
  }

  .header-row .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .hero {
    padding-top: 30px;
  }

  .hero-atlas {
    min-height: 475px;
    padding-left: 0;
  }

  .hero-main-photo {
    inset: 0 0 96px 0;
    clip-path: none;
  }

  .hero-secondary-photo {
    left: auto;
    right: 10px;
    top: 20px;
    width: 165px;
    height: 205px;
  }

  .atlas-note {
    left: 0;
    right: auto;
    width: min(340px, 90%);
  }

  .intro-grid {
    gap: 20px;
  }

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

  .feature {
    min-height: 560px;
  }

  .feature-shade {
    background: rgba(25,29,27,0.7);
  }

  .hours-list div {
    flex-direction: column;
    gap: 4px;
  }

  .hours-list strong {
    text-align: left;
  }

  .newsletter-row {
    grid-template-columns: 1fr;
  }

  .newsletter-row .button {
    width: 100%;
  }

  .final-actions {
    align-items: stretch;
  }

  .final-actions .button {
    width: 100%;
  }

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

  .footer-address {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .brand-main {
    font-size: 0.88rem;
  }

  .brand-sub {
    font-size: 0.44rem;
  }

  .hero-atlas {
    min-height: 440px;
  }

  .hero-secondary-photo {
    width: 136px;
    height: 170px;
  }

  .atlas-note {
    width: 94%;
    padding: 16px;
  }

  .experience-panel,
  .hours-panel,
  .visit-panel,
  .newsletter-panel {
    padding: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
