/*
Theme Name: Alma Origins
Theme URI: https://example.com/alma-origins
Author: Lavinia Antonescu
Description: Landing-page theme for Alma Origins, Brazilian Specialty Coffee. "Taste where it begins."
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alma-origins
*/

:root {
  --forest: #20362A;
  --cream: #F5EBD7;
  --paper: #FBF8F2;
  --terracotta: #B65030;
  --terracotta-dark: #9A4127;
  --espresso: #3A2A20;
  --olive: #B59E5F;
  --muted: #5C4A3D;
  --line: #E6DCC8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--espresso); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:hover { color: var(--terracotta); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.container { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Shared type */
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.28em; color: var(--terracotta); font-weight: 700; text-transform: uppercase; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 56px); line-height: 1.1; color: var(--forest); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: 2px; font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--olive); }
.btn-ghost:hover { background: var(--cream); color: var(--forest); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); min-height: 44px; padding: 0 18px; font-size: 13px; }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand:hover { color: var(--forest); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.14em; }
.brand-sub { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav-links a:not(.btn) { color: var(--espresso); text-decoration: none; font-size: 15px; letter-spacing: 0.04em; }
.nav-links a:not(.btn):hover { color: var(--terracotta); }
.nav-links .btn { min-height: 44px; padding: 0 22px; letter-spacing: 0.08em; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; background: var(--forest); }
.hero-copy { flex: 1 1 520px; min-width: 0; padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero-copy .eyebrow { color: var(--olive); }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 6.4vw, 92px); line-height: 1.02; color: var(--cream); }
.hero-title em { font-style: italic; color: #fff; }
.hero-lead { margin: 0; max-width: 460px; font-size: 19px; line-height: 1.6; color: #E4DCCB; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-media { flex: 1 1 480px; min-width: 0; min-height: 520px; position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art { opacity: .9; max-width: 100%; height: auto; }

/* Coffees */
.coffees { background: var(--paper); }
.coffees .container { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 48px; }
.coffees-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.coffees-head > div { display: flex; flex-direction: column; gap: 14px; }
.text-link { color: var(--forest); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; min-height: 44px; display: inline-flex; align-items: center; }
.coffee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.coffee-card { background: var(--paper); display: flex; flex-direction: column; border: 1px solid var(--line); }
.coffee-pack { height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.coffee-pack.is-forest { background: var(--forest); }
.coffee-pack.is-terracotta { background: var(--terracotta); }
.coffee-pack.is-espresso { background: var(--espresso); }
.pack-brand { margin: 0; font-size: 12px; letter-spacing: 0.26em; color: var(--cream); font-weight: 700; }
.pack-name { margin: 0; font-family: var(--serif); font-size: 28px; color: #fff; font-style: italic; }
.coffee-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.coffee-process { margin: 0; font-size: 12px; letter-spacing: 0.2em; color: var(--terracotta-dark); font-weight: 700; }
.coffee-name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--forest); }
.coffee-notes { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.coffee-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.coffee-price { margin: 0; font-size: 17px; font-weight: 700; color: var(--espresso); }

/* Philosophy / process */
.philosophy { background: var(--cream); }
.philosophy .container { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 56px; }
.philosophy-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.steps li { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--forest); padding-top: 24px; }
.step-num { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--terracotta); }
.steps h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--forest); }
.steps p:not(.step-num) { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.philosophy-image img { width: 100%; height: 380px; object-fit: cover; }

/* Quote */
.quote-band { background: var(--espresso); }
.quote-band .container { max-width: 980px; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.quote-band blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; color: var(--cream); }
.quote-band figcaption { font-size: 13px; letter-spacing: 0.24em; color: var(--olive); font-weight: 700; }
.quote-band figure { margin: 0; display: flex; flex-direction: column; gap: 28px; }

/* Newsletter */
.newsletter { background: var(--terracotta); }
.newsletter .container { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.newsletter-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.newsletter-copy h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 42px); color: #fff; }
.newsletter-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: #fff; }
.newsletter-form { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.newsletter-field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.newsletter-field label { font-size: 13px; letter-spacing: 0.14em; color: #fff; font-weight: 700; }
.newsletter-field input { font-family: inherit; font-size: 16px; padding: 0 16px; min-height: 50px; border: none; border-radius: 2px; background: var(--paper); color: var(--espresso); width: 100%; }
.newsletter-field input::placeholder { color: #7A6A5E; }
.newsletter-form button { background: var(--forest); color: var(--cream); border: none; font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.1em; padding: 0 28px; min-height: 50px; border-radius: 2px; cursor: pointer; }
.newsletter-form button:hover { background: #142219; }

/* Footer */
.site-footer { background: var(--forest); color: var(--cream); }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .name { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: 0.14em; }
.footer-brand .tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--olive); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; color: var(--olive); font-weight: 700; }
.footer-col a, .footer-col p { color: var(--cream); text-decoration: none; font-size: 15px; margin: 0; }
.footer-col a:hover { color: var(--olive); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #3C5446; font-size: 13px; color: #C9C0AE; }
.footer-bottom p { margin: 0; }

/* Ordinary pages and posts */
.page-content { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; font-size: 18px; line-height: 1.7; }
.page-content h1, .page-content h2, .page-content h3 { font-family: var(--serif); font-weight: 500; color: var(--forest); line-height: 1.15; }
.page-content h1 { font-size: clamp(36px, 4vw, 52px); margin: 0 0 24px; }
.page-content article + article { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.page-content img { height: auto; }
.alignwide, .alignfull { max-width: none; }
