/*
Theme Name: Master Cones
Theme URI: https://mastercones.com
Author: Exp Brands Inc.
Description: One-page theme for Master Cones: natural leaf cones, custom cigars, corn husk filter tips, leaf cuttings, custom blends and flavor development.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mastercones
*/

  /* Concept: a leaf atelier. Cream paper, deep leaf green, cured tobacco brown,
     an elegant serif and arch-framed photography. */
  :root {
    --cream: #f4efe4;
    --cream-2: #fbf8f1;
    --sand: #e6dcc8;
    --forest: #1e3325;
    --forest-2: #284232;
    --leaf: #8a9a45;
    --tobacco: #7a4524;
    --ink: #1c1913;
    --ink-2: #5d564a;
    --line: #d8cdb8;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--tobacco); outline-offset: 3px; }
  .wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
  .eyebrow { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tobacco); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
  .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
  h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin: 0 0 18px; }
  h2 em, .hero-title em { font-style: italic; font-weight: 300; color: var(--tobacco); }

  /* Top strip */
  .strip { background: var(--forest); color: #d9dcc9; font-size: 13.5px; }
  .strip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
  .strip a { text-decoration: none; color: #f1ecdf; }
  .strip a:hover { text-decoration: underline; }
  .strip .contacts { display: flex; gap: 22px; flex-wrap: wrap; }

  /* Header */
  header.site { background: var(--cream-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 60px; width: auto; }
  nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
  nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
  nav a:hover { color: var(--ink); }
  .pill { display: inline-block; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--forest); transition: background .2s, color .2s; cursor: pointer; font-family: var(--sans); }
  .pill.dark { background: var(--forest); color: var(--cream-2); }
  .pill.dark:hover { background: var(--tobacco); border-color: var(--tobacco); }
  .pill.ghost { background: transparent; color: var(--forest); }
  .pill.ghost:hover { background: var(--forest); color: var(--cream-2); }
  nav a.pill.dark { color: var(--cream-2); padding: 10px 18px; }

  /* Hero */
  .hero { padding: clamp(44px, 7vw, 90px) 0 clamp(56px, 8vw, 110px); }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
  .hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(50px, 7.4vw, 104px); line-height: .98; letter-spacing: -.03em; margin: 0 0 26px; }
  .hero .lede { font-size: 19px; color: var(--ink-2); max-width: 44ch; margin: 0 0 32px; }
  .btns { display: flex; gap: 12px; flex-wrap: wrap; }
  .arch { position: relative; }
  .arch .frame { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); box-shadow: 0 30px 60px -30px rgba(30,51,37,.45); }
  .arch .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .seal {
    position: absolute; left: -34px; bottom: 48px; width: 132px; height: 132px; border-radius: 50%;
    background: var(--forest); color: var(--cream); display: grid; place-items: center; text-align: center;
    font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.15; padding: 14px;
    box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--line);
  }
  .seal small { display: block; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #c5cdb0; margin-top: 6px; }

  /* Clients line */
  .for { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-2); }
  .for .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 36px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
  .for p { margin: 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
  .for ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px 34px; flex-wrap: wrap; }
  .for li { font-family: var(--serif); font-size: 24px; font-style: italic; font-weight: 300; color: var(--forest); }
  .for li::after { content: "✦"; font-style: normal; font-size: 12px; color: var(--leaf); margin-left: 34px; vertical-align: middle; }
  .for li:last-child::after { content: none; }

  section { padding: clamp(64px, 9vw, 120px) 0; }
  .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
  .head p { margin: 0; color: var(--ink-2); max-width: 48ch; }

  /* What we make: editorial rows */
  .rows { border-top: 1px solid var(--ink); }
  .row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 40px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: center; }
  .row .n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--tobacco); align-self: start; padding-top: 6px; }
  .row h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; margin: 0 0 12px; }
  .row p { margin: 0; color: var(--ink-2); max-width: 46ch; }
  .row .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
  .row .tags span { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream-2); }
  .row .ph { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand); }
  .row .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  .row:hover .ph img { transform: scale(1.035); }

  /* Collection */
  .collection { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); margin-bottom: 34px; flex-wrap: wrap; }
  .tab { font: 600 14.5px var(--sans); color: var(--ink-2); background: transparent; border: 0; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
  .tab:hover { color: var(--ink); }
  .tab[aria-selected="true"] { background: var(--forest); color: var(--cream-2); }
  .tab .ct { font-weight: 500; opacity: .6; margin-left: 6px; }
  .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .grid[hidden] { display: none; }
  .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(30,51,37,.5); }
  .card .pic { aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 14px; background: #fff; }
  .card .pic.wide { aspect-ratio: 4 / 3; }
  .card .pic img { max-height: 100%; width: auto; object-fit: contain; }
  .card .txt { padding: 16px 18px 20px; border-top: 1px solid var(--line); background: var(--cream-2); flex: 1; }
  .card h3 { font-size: 21px; line-height: 1.15; margin: 0 0 6px; }
  .card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
  .flag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tobacco); margin-top: 10px; }
  .collection .note { margin: 28px 0 0; font-size: 15px; color: var(--ink-2); }
  .collection .note a { color: var(--forest); font-weight: 600; }

  /* Process */
  .process { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .process li { counter-increment: s; }
  .process .ph { border-radius: 999px 999px 12px 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); margin-bottom: 20px; }
  .process .ph img { width: 100%; height: 100%; object-fit: cover; }
  .process h3 { font-size: 25px; margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
  .process h3::before { content: "0" counter(s); font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; color: var(--tobacco); }
  .process p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

  /* Quote band */
  .band { background: var(--forest); color: var(--cream); position: relative; overflow: hidden; }
  .band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 50px; align-items: center; }
  .band blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.15; letter-spacing: -.01em; }
  .band blockquote em { color: #c9d48f; }
  .band .ph { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
  .band .ph img { width: 100%; height: 100%; object-fit: cover; }
  .band p { color: #c7cbb7; margin: 22px 0 0; max-width: 46ch; }

  /* Contact */
  .contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
  .contact-grid > div > p { color: var(--ink-2); max-width: 44ch; }
  .direct { margin-top: 30px; border-top: 1px solid var(--ink); }
  .direct div { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
  .direct dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
  .direct dd { margin: 0; font-family: var(--serif); font-size: 22px; }
  .direct a { text-decoration: none; }
  .direct a:hover { color: var(--tobacco); }
  form { background: var(--cream-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 38px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  form .full { grid-column: 1 / -1; }
  label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
  input, select, textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(30,51,37,.12); }
  textarea { min-height: 130px; resize: vertical; }
  .opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .opts label { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
  .opts input { width: 15px; height: 15px; margin: 0; accent-color: var(--forest); }
  .opts label:has(input:checked) { border-color: var(--forest); background: #eef0e3; }
  fieldset { border: 0; margin: 0; padding: 0; }
  legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
  .out { grid-column: 1 / -1; margin: 0; font-size: 14.5px; min-height: 1.2em; color: var(--forest); }
  .out.err { color: #a2381c; }

  footer { background: var(--ink); color: #b9b2a3; padding: 64px 0 36px; }
  footer .top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #39342a; }
  footer .logo img { height: 80px; width: auto; }
  footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8d8574; margin: 0 0 14px; font-weight: 600; }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  footer a { color: #ece6d8; text-decoration: none; }
  footer a:hover { text-decoration: underline; }
  footer p { margin: 14px 0 0; max-width: 38ch; font-size: 15px; }
  footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; }

  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.in { opacity: 1; transform: none; }
  }
  @media (max-width: 1000px) {
    nav ul li.opt { display: none; }
    .hero .wrap, .contact-grid, .band .wrap { grid-template-columns: 1fr; }
    .arch { max-width: 480px; margin: 0 auto; width: 100%; }
    .seal { left: -10px; }
    .head { grid-template-columns: 1fr; }
    .row { grid-template-columns: 50px 1fr; }
    .row .ph { grid-column: 1 / -1; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    footer .top { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    nav ul { gap: 14px; }
    nav ul li.opt2 { display: none; }
    .logo img { height: 46px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card h3 { font-size: 18px; }
    .card .txt { padding: 12px 12px 14px; }
    form { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .process .ph { aspect-ratio: 4 / 3; border-radius: 160px 160px 12px 12px; }
    .for li::after { margin-left: 18px; }
    footer .top { grid-template-columns: 1fr; }
    .strip .hide-sm { display: none; }
  }
