/*
Theme Name: FRTN Coffee
Theme URI: https://frtncoffee.com
Author: FRTN Coffee
Description: Custom one-page company profile theme for FRTN Coffee.
Version: 1.0.0
Text Domain: frtn-coffee
*/

:root {
  --sage-900: #24372d;
  --sage-700: #4f6758;
  --sage-500: #7e9885;
  --sage-200: #cbd7ca;
  --sage-100: #e8eee7;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --terracotta: #bd684e;
  --ink: #172019;
  --line: rgba(36, 55, 45, .18);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(255, 253, 248, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.06em; font-size: 27px; }
.brand-mark { width: 12px; height: 12px; background: var(--terracotta); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.nav-links { display: flex; gap: 30px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .2s; }
.nav-links a:hover::after { right: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 23px; height: 1px; margin: 6px 0; background: var(--ink); }

.hero { min-height: 760px; height: 100svh; background: var(--sage-200); position: relative; overflow: hidden; display: grid; align-items: end; padding: 140px 0 70px; }
.hero::before { content: ''; position: absolute; width: 48vw; height: 48vw; min-width: 520px; min-height: 520px; border-radius: 50%; background: var(--sage-500); right: -7vw; top: -12vw; opacity: .78; }
.hero::after { content: ''; position: absolute; width: 28vw; height: 28vw; min-width: 330px; min-height: 330px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; right: 8vw; top: 18vh; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 80px; }
.hero-title { max-width: 850px; margin: 0; font-family: var(--serif); font-size: clamp(62px, 9.2vw, 142px); font-weight: 400; line-height: .82; letter-spacing: -.065em; }
.hero-title em { color: var(--paper); font-weight: 400; }
.hero-side { border-left: 1px solid rgba(36,55,45,.35); padding-left: 30px; padding-bottom: 10px; }
.hero-side p { margin: 0; max-width: 290px; line-height: 1.65; font-size: 14px; }
.hero-note { position: absolute; right: 6vw; top: 45%; z-index: 3; width: 155px; height: 155px; display: grid; place-items: center; background: var(--terracotta); color: white; border-radius: 50%; text-align: center; font-size: 10px; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; transform: rotate(8deg); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.ticker-track { width: max-content; display: flex; animation: ticker 24s linear infinite; }
.ticker span { padding: 19px 32px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ticker i { color: var(--terracotta); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.story { padding: 150px 0; }
.story-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10vw; }
.story h2 { margin: 0; max-width: 760px; font-family: var(--serif); font-size: clamp(42px, 5.2vw, 76px); font-weight: 400; letter-spacing: -.045em; line-height: 1.03; }
.story h2 span { color: var(--terracotta); }
.story-copy { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 65px; border-top: 1px solid var(--line); padding-top: 32px; }
.story-copy p { margin: 0; font-size: 15px; line-height: 1.8; color: #4c554f; }

.values { background: var(--sage-900); color: var(--paper); padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 65px; }
.section-head h2 { margin: 0; max-width: 690px; font-family: var(--serif); font-size: clamp(43px, 6vw, 82px); font-weight: 400; line-height: .96; letter-spacing: -.04em; }
.section-index { font-size: 11px; letter-spacing: .2em; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); }
.value { min-height: 330px; padding: 30px 32px 20px 0; border-right: 1px solid rgba(255,255,255,.22); position: relative; }
.value + .value { padding-left: 32px; }
.value:last-child { border-right: 0; }
.value-number { font-family: var(--serif); color: var(--sage-500); font-size: 18px; }
.value h3 { position: absolute; bottom: 70px; margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); font-weight: 400; }
.value p { position: absolute; bottom: 16px; margin: 0; max-width: 270px; font-size: 12px; line-height: 1.65; color: var(--sage-200); }

.products { padding: 140px 0 150px; background: var(--cream); overflow: hidden; }
.products-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 65px; }
.products h2 { margin: 0; font-family: var(--serif); font-size: clamp(58px, 8vw, 116px); font-weight: 400; line-height: .82; letter-spacing: -.06em; }
.products-intro { max-width: 410px; justify-self: end; font-size: 14px; line-height: 1.75; }
.product-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { background: var(--paper); min-height: 500px; padding: 20px; display: flex; flex-direction: column; transition: transform .25s; }
.product-card:nth-child(2) { transform: translateY(38px); }
.product-card:hover { transform: translateY(-8px); }
.product-card:nth-child(2):hover { transform: translateY(30px); }
.cup-art { flex: 1; min-height: 340px; display: grid; place-items: center; position: relative; overflow: hidden; }
.cup-art::before { content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: var(--sage-100); }
.product-card:nth-child(2) .cup-art::before { background: #eed7cc; }
.product-card:nth-child(3) .cup-art::before { background: #d6dfd2; }
.cup { position: relative; z-index: 2; width: 118px; height: 190px; clip-path: polygon(6% 0, 94% 0, 83% 100%, 17% 100%); background: linear-gradient(to bottom, #efe1c6 0 34%, #c58b62 34% 67%, #f4ecdf 67%); box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.product-card:nth-child(2) .cup { background: linear-gradient(to bottom, #efe6d5 0 24%, #9d5e3e 24% 59%, #e1b987 59%); }
.product-card:nth-child(3) .cup { background: linear-gradient(to bottom, #f5e5d1 0 36%, #b76d4a 36% 70%, #ead4b8 70%); }
.cup::after { content: ''; position: absolute; top: -3px; left: 4px; right: 4px; height: 15px; background: rgba(255,255,255,.8); border: 2px solid rgba(36,55,45,.15); border-radius: 50%; }
.product-meta { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.product-meta h3 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.product-meta span { font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta); }

.location { padding: 145px 0 0; background: var(--paper); }
.location-title { text-align: center; margin-bottom: 90px; }
.location-title h2 { margin: 0; font-family: var(--serif); font-size: clamp(58px, 8.5vw, 125px); font-weight: 400; line-height: .9; letter-spacing: -.06em; }
.location-title p { margin: 25px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.store-sketch { position: relative; height: 300px; max-width: 900px; margin: 0 auto; border-bottom: 2px solid var(--sage-900); }
.building { position: absolute; bottom: 0; border: 2px solid var(--sage-900); border-bottom: 0; background: var(--cream); }
.building::before, .building::after { content: ''; position: absolute; border: 2px solid var(--sage-900); background: var(--paper); }
.building.one { width: 260px; height: 165px; left: 5%; }
.building.one::before { width: 190px; height: 34px; left: 32px; top: 60px; }
.building.one::after { width: 65px; height: 55px; left: 92px; bottom: 0; }
.building.two { width: 320px; height: 220px; left: 35%; }
.building.two::before { width: 250px; height: 78px; left: 32px; top: 52px; }
.building.two::after { width: 78px; height: 80px; left: 120px; bottom: 0; }
.building.three { width: 220px; height: 140px; right: 4%; }
.building.three::before { width: 160px; height: 43px; left: 27px; top: 39px; }
.building.three::after { width: 50px; height: 56px; right: 25px; bottom: 0; }
.roof { position: absolute; height: 34px; left: -10px; right: -10px; top: -35px; border: 2px solid var(--sage-900); background: var(--sage-200); transform: skewX(-12deg); }
.location-card { position: relative; z-index: 3; margin-top: -1px; background: var(--terracotta); color: white; padding: 46px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 40px; }
.location-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 68px); font-weight: 400; }
.location-card p { margin: 0; font-size: 13px; line-height: 1.7; }
.ghost-link { display: inline-flex; justify-content: center; align-items: center; width: 145px; height: 145px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; transition: background .2s, color .2s; }
.ghost-link:hover { background: white; color: var(--terracotta); }

.site-footer { background: var(--sage-900); color: var(--paper); padding: 100px 0 35px; }
.footer-top { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; padding-bottom: 90px; }
.footer-top h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 100px); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.footer-contact { align-self: end; }
.footer-contact a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding-top: 25px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-200); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav { height: 70px; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 70px 0 auto; display: none; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px; }
  .hero { min-height: 720px; padding-bottom: 45px; }
  .hero::before { right: -70%; top: -5%; }
  .hero::after { right: -30%; top: 15%; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-title { font-size: clamp(58px, 18vw, 90px); }
  .hero-side { width: 78%; margin-left: auto; }
  .hero-note { width: 105px; height: 105px; top: 20%; right: 8%; font-size: 8px; }
  .story, .products { padding: 95px 0; }
  .story-grid, .products-top { grid-template-columns: 1fr; gap: 30px; }
  .story-copy { grid-column: 1; grid-template-columns: 1fr; gap: 22px; margin-top: 20px; }
  .values { padding: 90px 0; }
  .value-grid { grid-template-columns: 1fr; }
  .value { min-height: 220px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); padding-left: 0 !important; }
  .value:last-child { border-bottom: 0; }
  .product-stage { overflow-x: auto; grid-template-columns: repeat(3, 82vw); padding-bottom: 40px; }
  .product-card, .product-card:nth-child(2) { transform: none; min-height: 460px; }
  .location { padding-top: 95px; }
  .store-sketch { height: 230px; overflow: hidden; }
  .building.one { left: -18%; }
  .building.two { left: 18%; }
  .building.three { right: -35%; }
  .location-card { grid-template-columns: 1fr; padding: 34px 25px; gap: 20px; }
  .ghost-link { width: 120px; height: 120px; }
  .footer-top { grid-template-columns: 1fr; gap: 55px; padding-bottom: 65px; }
  .footer-bottom { gap: 20px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
