/* =========================================================
   NTH DEGREE CAFE
   Sydney daylight café / lunch-counter editorial identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --cafe-green: #24403a;
  --cafe-green-deep: #19302b;
  --oat: #f4efe5;
  --charcoal: #1d211f;
  --terracotta: #c66a42;
  --terracotta-dark: #a85433;
  --latte: #d2b78e;
  --sage: #d9e0d8;
  --white: #fffdf8;
  --mocha-red: #8a4739;
  --muted: #6f706a;
  --line: rgba(29,33,31,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,
select,
textarea {
  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(244,239,229,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(--cafe-green);
  font: 700 1.18rem/1 var(--serif);
  letter-spacing: -0.03em;
}

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

.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 / links */

.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: #efb59b;
}

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: 840px;
  font-size: clamp(4rem, 7vw, 7.1rem);
}

h1 span {
  color: var(--terracotta);
  font-style: italic;
}

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(--cafe-green);
  color: white;
}

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

.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 70px;
  background:
    linear-gradient(rgba(36,64,58,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,64,58,0.035) 1px, transparent 1px),
    var(--oat);
  background-size: 44px 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(54px, 7vw, 94px);
  align-items: center;
}

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

.hero-lead {
  max-width: 640px;
  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-visual {
  position: relative;
  min-height: 620px;
  padding-left: 90px;
}

.hero-main-photo {
  position: absolute;
  inset: 0 0 78px 90px;
  margin: 0;
  overflow: hidden;
  border-radius: 26px 170px 26px 26px;
}

.hero-side-photo {
  position: absolute;
  left: 0;
  top: 78px;
  width: 250px;
  height: 300px;
  margin: 0;
  border: 10px solid var(--oat);
  border-radius: 22px;
}

.city-note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(390px, 72%);
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  background: var(--cafe-green);
  color: white;
  border-radius: 18px 0 18px 18px;
}

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

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

/* About */

.about {
  background: var(--white);
}

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

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

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

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

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

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

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

/* Menu */

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

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

.menu-intro {
  position: sticky;
  top: 118px;
}

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

.menu-bands {
  border-top: 1px solid var(--line);
}

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

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

.menu-label {
  margin-bottom: 5px;
  color: var(--cafe-green);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.menu-bands p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Coffee */

.coffee {
  background: white;
}

.coffee-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 60px;
  align-items: center;
}

.coffee-photo {
  height: 570px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 94% 0, 100% 90%, 8% 100%);
}

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

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

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

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

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

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

/* Featured food */

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

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

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

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

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

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

/* Everyday */

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

.everyday-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

.everyday-intro > p:not(.eyebrow) {
  color: #5d655e;
}

.everyday-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(36,64,58,0.18);
  border-left: 1px solid rgba(36,64,58,0.18);
}

.everyday-points article {
  min-height: 200px;
  padding: 22px;
  border-right: 1px solid rgba(36,64,58,0.18);
  border-bottom: 1px solid rgba(36,64,58,0.18);
}

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

.everyday-points h3 {
  margin: 26px 0 7px;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.everyday-points p {
  margin: 0;
  color: #5d655e;
  font-size: 0.83rem;
}

/* Catering + booking */

.catering-booking {
  background: var(--white);
}

.catering-booking-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 18px;
}

.catering-panel,
.booking-panel {
  min-height: 480px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.catering-panel {
  border: 1px solid var(--line);
  background: var(--latte);
}

.catering-panel > p:not(.eyebrow) {
  color: #5a4c3b;
}

.catering-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.catering-list span {
  padding: 8px 10px;
  border: 1px solid rgba(29,33,31,0.2);
  background: rgba(255,255,255,0.26);
  font-size: 0.68rem;
  font-weight: 800;
}

.booking-panel {
  background: var(--cafe-green);
  color: white;
}

.booking-panel .eyebrow {
  color: #efb59b;
}

.booking-panel p:not(.eyebrow) {
  color: rgba(255,255,255,0.67);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

/* Visit + contact */

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

.visit-contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: stretch;
}

.visit-panel {
  padding: 34px;
  background:
    linear-gradient(rgba(36,64,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,64,58,0.05) 1px, transparent 1px),
    var(--sage);
  background-size: 40px 40px;
}

.hours-list {
  margin: 26px 0 36px;
  border-top: 1px solid rgba(36,64,58,0.18);
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(36,64,58,0.18);
}

.hours-list span {
  color: #566059;
}

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

.location-block {
  padding-top: 8px;
}

.location-block address {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 3px solid var(--terracotta);
  font-style: normal;
}

.location-block address span {
  color: #566059;
}

.location-block > a:not(.button) {
  display: block;
  width: fit-content;
  margin-bottom: 5px;
  font-size: 0.86rem;
  font-weight: 800;
}

.location-block > p:not(.eyebrow) {
  margin-top: 18px;
  color: #566059;
}

.contact-card {
  padding: 34px;
  background: white;
  box-shadow: 0 18px 38px rgba(29,33,31,0.07);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(29,33,31,0.22);
  border-radius: 0;
  background: white;
  color: var(--charcoal);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 11px;
}

.field textarea {
  min-height: 126px;
  padding: 10px 11px;
  resize: vertical;
}

/* Final */

.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: #111614;
  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: #efb59b;
}

.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.86fr 1.14fr;
  }
}

@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,
  .about-grid,
  .menu-layout,
  .coffee-grid,
  .everyday-grid,
  .catering-booking-grid,
  .visit-contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    min-height: 560px;
  }

  .menu-intro {
    position: static;
  }

  .coffee-photo {
    height: 480px;
    clip-path: none;
  }

  .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-visual {
    min-height: 475px;
    padding-left: 0;
  }

  .hero-main-photo {
    inset: 0 0 96px 0;
    border-radius: 22px;
  }

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

  .city-note {
    left: 0;
    right: auto;
    width: min(330px, 88%);
  }

  .about-grid {
    gap: 20px;
  }

  .about-columns,
  .everyday-points,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .feature-food {
    min-height: 580px;
  }

  .feature-shade {
    background: rgba(29,33,31,0.68);
  }

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

  .booking-actions .button,
  .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: 1rem;
  }

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

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

  .hero-side-photo {
    width: 138px;
    height: 170px;
  }

  .city-note {
    width: 92%;
    padding: 16px;
  }

  .catering-panel,
  .booking-panel,
  .visit-panel,
  .contact-card {
    padding: 26px;
  }
}

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

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