/* Elm Street Coffee: a calm, warm example site */
:root {
  --cream: #f6f0e5;
  --oat: #ece3d3;
  --oat-deep: #ddd0ba;
  --bean: #3a2a21;
  --bean-soft: #6e5a4c;
  --sage: #7f8f6b;
  --sage-deep: #4e5c44;
  --sage-pale: #e1e5d6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 56px);
  --max: 1180px;
  --soft: cubic-bezier(.25,.6,.3,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--bean); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--sage-pale); }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; letter-spacing: -.01em; line-height: 1.1; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h2 em, h1 em { font-style: italic; color: var(--sage-deep); }

/* demo banner (it's an example site) */
.demo { background: var(--bean); color: var(--oat); font-size: 13px; }
.demo .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.demo a { text-decoration: none; border-bottom: 1px solid rgba(236,227,211,.4); }
.demo a:hover { border-color: var(--oat); }

.strip { border-bottom: 1px solid var(--oat-deep); font-size: 14px; color: var(--bean-soft); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.strip a { text-decoration: none; font-weight: 500; color: var(--bean); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,240,229,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: box-shadow .4s; }
.nav.lifted { box-shadow: 0 1px 0 var(--oat-deep); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-style: italic; }
.brand svg { width: 28px; height: 28px; color: var(--sage-deep); }
.links { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); list-style: none; font-size: 15px; }
.links a { text-decoration: none; padding: 6px 2px; background: linear-gradient(var(--sage), var(--sage)) no-repeat 50% 100% / 0 1.5px; transition: background-size .5s var(--soft); }
.links a:hover, .links a[aria-current] { background-size: 100% 1.5px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid var(--bean); cursor: pointer; font-family: inherit;
  transition: background .4s var(--soft), color .4s var(--soft), border-color .4s, transform .4s var(--soft);
}
.pill:hover { transform: translateY(-2px); }
.pill.dark { background: var(--bean); color: var(--cream); }
.pill.dark:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.pill.line { background: transparent; color: var(--bean); }
.pill.line:hover { background: var(--oat); }
.pill.sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); margin: 18px 0 22px; }
.hero h1 em { display: block; }
.hero .lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--bean-soft); max-width: 25em; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.place { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--bean-soft); }
.place svg { width: 16px; height: 16px; color: var(--sage-deep); }
.arch { position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--oat); }
.arch img { width: 100%; height: 100%; object-fit: cover; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.badge {
  position: absolute; left: -18px; bottom: 34px; background: var(--cream); border-radius: 999px; padding: 12px 20px 12px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(58,42,33,.12);
}
.hero-media { position: relative; }
.cup { width: 34px; height: 34px; color: var(--bean); }
.cup .steam { stroke-dasharray: 18; animation: steam 3.6s ease-in-out infinite; opacity: 0; }
.cup .steam.s2 { animation-delay: 1.2s; }
.cup .steam.s3 { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(3px); stroke-dashoffset: 18; } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-5px); stroke-dashoffset: 0; } }

/* about */
.about { background: var(--oat); border-radius: 36px; width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter))); margin: 0 auto; }
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.about figure { border-radius: 24px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 20px 50px rgba(58,42,33,.14); transition: transform 1.2s var(--soft); }
.about figure:hover { transform: rotate(0); }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about h2 { margin: 12px 0 24px; }
.about p + p { margin-top: 16px; }
.about p { color: var(--bean-soft); max-width: 34em; }
.sign { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--sage-deep); }

/* menu */
.menu { padding-top: clamp(72px, 10vw, 130px); }
.menu-head { text-align: center; max-width: 34em; margin: 0 auto; }
.menu-head h2 { margin-top: 12px; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); margin-top: clamp(40px, 6vw, 72px); }
.menu-cols h3 { font-size: 26px; font-style: italic; color: var(--sage-deep); padding-bottom: 14px; border-bottom: 1px solid var(--oat-deep); }
.items { list-style: none; }
.items li { padding: 18px 0; border-bottom: 1px dashed var(--oat-deep); }
.items .top { display: flex; align-items: baseline; gap: 10px; }
.items .name { font-family: var(--serif); font-size: 20px; }
.items .dots { flex: 1; border-bottom: 1px dotted var(--bean-soft); opacity: .35; transform: translateY(-4px); }
.items .price { font-weight: 500; font-variant-numeric: tabular-nums; }
.items p { font-size: 15px; color: var(--bean-soft); margin-top: 4px; }
.fav { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); background: var(--sage-pale); border-radius: 999px; padding: 2px 10px; vertical-align: 3px; font-family: var(--sans); }

/* gallery */
.gallery { padding-top: clamp(72px, 10vw, 130px); }
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.gallery-head h2 { margin-top: 12px; max-width: 14em; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); margin-top: clamp(32px, 5vw, 56px); }
.photos figure { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--oat); }
.photos figure:nth-child(2) { border-radius: 999px 999px 22px 22px; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--soft); }
.photos figure:hover img { transform: scale(1.05); }

/* visit */
.visit { padding-top: clamp(72px, 10vw, 130px); }
.visit-card { background: var(--sage-deep); color: var(--cream); border-radius: 36px; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 6vw, 72px); position: relative; overflow: hidden; }
.visit-card .eyebrow { color: var(--sage-pale); }
.visit-card h2 { margin: 12px 0 20px; }
.visit-card h2 em { color: var(--sage-pale); }
.visit-card p { color: #dfe3d3; max-width: 26em; }
.hours { list-style: none; border-top: 1px solid rgba(246,240,229,.25); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(246,240,229,.25); }
.hours li.today { font-weight: 500; }
.hours li.today span:first-child::after { content: "Today"; margin-left: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--cream); color: var(--sage-deep); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }
.visit-card .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.visit-card .pill.dark { background: var(--cream); color: var(--bean); border-color: var(--cream); }
.visit-card .pill.dark:hover { background: var(--oat); }
.visit-card .pill.line { color: var(--cream); border-color: rgba(246,240,229,.6); }
.visit-card .pill.line:hover { background: rgba(246,240,229,.1); }
.leaf { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; color: rgba(246,240,229,.07); animation: sway 9s ease-in-out infinite alternate; transform-origin: 80% 90%; }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

/* signpost promo + footer */
.promo { margin-top: clamp(72px, 10vw, 130px); border-top: 1px solid var(--oat-deep); border-bottom: 1px solid var(--oat-deep); }
.promo .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.promo p { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); }
.promo p span { color: var(--bean-soft); font-family: var(--sans); font-size: 16px; display: block; margin-top: 2px; }
footer.ex { font-size: 14px; color: var(--bean-soft); }
footer.ex .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 110px; }

/* mobile call button */
.call-float { position: fixed; left: 50%; bottom: 18px; z-index: 30; transform: translate(-50%, 140%); transition: transform .6s var(--soft); box-shadow: 0 12px 30px rgba(58,42,33,.25); display: none; }
.call-float.show { transform: translate(-50%, 0); }

/* gentle reveal */
.js .fade { opacity: 0; transform: translateY(18px); transition: opacity 1.3s var(--soft), transform 1.3s var(--soft); }
.js .fade.in { opacity: 1; transform: none; }

/* contact page */
.c-hero { padding-top: clamp(40px, 7vw, 90px); text-align: center; max-width: 36em; margin: 0 auto; }
.c-hero h1 { font-size: clamp(52px, 8vw, 108px); margin: 14px 0 18px; }
.c-hero p { color: var(--bean-soft); font-size: 19px; }
.c-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 48px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.form-card { background: var(--oat); border-radius: 30px; padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: 30px; }
.sample { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--bean-soft); background: var(--cream); border-radius: 999px; padding: 4px 12px; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--bean); background: var(--cream); border: 1px solid var(--oat-deep); border-radius: 16px; padding: 13px 16px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-pale); }
.form-card .pill { margin-top: 22px; }
.sent { margin-top: 14px; font-size: 15px; color: var(--sage-deep); min-height: 1.6em; }
.info-card { background: var(--sage-deep); color: var(--cream); border-radius: 30px; padding: clamp(24px, 4vw, 44px); }
.info-card h2 { font-size: 30px; }
.info-card .eyebrow { color: var(--sage-pale); }
.info-card .lines { margin: 18px 0 26px; display: grid; gap: 6px; color: #dfe3d3; }
.info-card .lines a { color: var(--cream); font-weight: 500; text-decoration: none; }
.info-card h3 { font-size: 22px; font-style: italic; margin-bottom: 8px; }
.info-card .pill.dark { background: var(--cream); color: var(--bean); border-color: var(--cream); margin-top: 24px; }

@media (max-width: 860px) {
  .hero, .about .wrap, .menu-cols, .visit-card, .c-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .arch { aspect-ratio: 5 / 4; border-radius: 200px 200px 24px 24px; }
  .badge { left: 12px; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure:nth-child(2) { grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 10; border-radius: 160px 160px 22px 22px; }
  .links .hide-sm { display: none; }
  .call-float { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav .pill.call { display: none; }
  .demo .where { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arch img, .cup .steam, .leaf { animation: none; }
  .cup .steam { opacity: .6; }
  .js .fade { opacity: 1; transform: none; transition: none; }
}
