/*
Theme Name: Chef Gassán
Theme URI: https://chefgassan.com
Description: Personal site theme for Chef Guillermo Gassán. Built for Elementor: on activation it creates the home page as an editable Elementor page. Translation-ready (text domain: gassan).
Author: Meat N' Bone
Version: 3.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: gassan
*/

:root {
  --bg: #000000;
  --ink: #F2EDE4;
  --soft: #CFC9BF;
  --gold: #D9C3A0;
  --gold-hover: #E8D8BC;
  --charcoal: #1C1B1A;
  --smoke: #8E8981;
  --rule: #2F2D2A;
  --display: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --pad: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.gassan {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.gassan a { color: inherit; }
.gassan :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gassan img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Header (theme) ---------- */
.g-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.admin-bar .g-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .g-header { top: 46px; } }
.g-wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
/* Header aligns with Elementor content (1152px + 24px side padding). */
.g-bar { display: flex; align-items: center; gap: 2rem; height: 68px; }
.g-mark { display: block; text-decoration: none; }
.g-mark img { display: block; height: 48px; width: auto; }
.g-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.g-nav a { text-decoration: none; font-size: .9rem; color: var(--smoke); }
.g-nav a:hover { color: var(--ink); }
.g-bar-end { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.g-lang {
  text-decoration: none; border: 1px solid var(--rule); color: var(--ink);
  font: 500 .8rem var(--body); padding: .4rem .65rem; border-radius: 2px;
}
.g-lang:hover { border-color: var(--smoke); }
.g-cta {
  display: inline-block; text-decoration: none; font: 500 .85rem var(--body);
  padding: .55rem 1rem; background: var(--gold); color: #000 !important; border: 1px solid var(--gold); border-radius: 2px;
}
.g-cta:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
@media (max-width: 980px) { .g-nav { display: none; } }
@media (max-width: 520px) { .g-cta { display: none; } }

/* ---------- Footer (theme) ---------- */
.g-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0; font-size: .9rem; color: var(--smoke); }
.g-footer .g-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Layout ----------
   Spacing and columns live in each Elementor container's settings (editable in Elementor).
   The classes below only add rules and the gallery stagger. */
.gassan .g-rule { border-top: 1px solid var(--rule); }
.gassan .g-hero .g-print { margin-left: auto; }

/* Type */
.gassan .g-h1 .elementor-heading-title {
  font-family: var(--display); font-weight: 300; color: var(--ink);
  font-size: clamp(2.8rem, 7.4vw, 7rem); line-height: 1; letter-spacing: -.015em;
}
.gassan .g-h2 .elementor-heading-title {
  font-family: var(--display); font-weight: 300; color: var(--ink);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.015em;
}
.gassan .g-h3 .elementor-heading-title {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  font-size: 1.7rem; line-height: 1.15;
}
.gassan .g-h3-sm .elementor-heading-title { font-size: 1.4rem; }
.gassan .g-text, .gassan .g-text p { font-family: var(--body); color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
.gassan .g-text p { margin: 0 0 1.1rem; max-width: 38rem; }
.gassan .g-text p:last-child { margin-bottom: 0; }
.gassan .g-muted, .gassan .g-muted p { color: var(--smoke); }
.gassan .g-lead p { color: var(--soft); font-size: 1.125rem; max-width: 34rem; margin: .5rem 0 1rem; }
.gassan .g-medium p { color: var(--gold); font-size: .9rem; margin: 0; }

/* Buttons */
.gassan .g-btn .elementor-button {
  background: var(--gold); color: #000; fill: #000; border: 1px solid var(--gold); border-radius: 2px;
  font: 500 .95rem var(--body); padding: .8rem 1.4rem; letter-spacing: 0;
}
.gassan .g-btn .elementor-button:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #000; }
.gassan .g-btn-ghost .elementor-button { background: transparent; color: var(--ink); border-color: var(--rule); }
.gassan .g-btn-ghost .elementor-button:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* Photos (Elementor image widgets; swap in real photos in the editor) */
.gassan .g-photo img {
  display: block; width: 100%; object-fit: cover;
  background: var(--charcoal); border: 1px solid var(--rule);
}
.gassan .g-portrait img { aspect-ratio: 4 / 5; }
.gassan .g-wide img { aspect-ratio: 16 / 9; }
.gassan .g-square img { aspect-ratio: 1 / 1; }

/* Hero mark */
.gassan .g-print { margin: 0; max-width: 420px; width: 100%; }
.gassan .g-print svg { display: block; width: 100%; height: auto; }
.gassan .g-print .g-disc { fill: var(--gold); }
.gassan .g-print figcaption { margin-top: 1rem; font-size: .8rem; color: var(--smoke); }
@media (max-width: 767px) { .gassan .g-print { margin: 2rem 0 0; max-width: 260px; } }

/* Facts */
.gassan .g-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0 0; }
.gassan .g-facts div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.gassan .g-facts dt { font-family: var(--display); font-weight: 300; font-size: 2.2rem; line-height: 1; color: var(--gold); }
.gassan .g-facts dd { margin: .5rem 0 0; font-size: .9rem; color: var(--smoke); }
@media (max-width: 560px) { .gassan .g-facts { grid-template-columns: 1fr; } }

/* Quote */
.gassan .g-quote {
  margin: clamp(1.5rem, 5vw, 3.5rem) 0; padding: 0; max-width: 56rem; border: 0;
  font-family: var(--display); font-style: italic; font-weight: 300; color: var(--ink);
  font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.18;
}
.gassan .g-quote cite { display: block; margin-top: 1.2rem; font: 400 .9rem var(--body); font-style: normal; color: var(--smoke); }
.gassan .g-quote cite img { display: block; height: 70px; width: auto; }

/* Career */
.gassan .g-career-wrap { overflow-x: auto; }
.gassan .g-career { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
.gassan .g-career caption { text-align: left; font-family: var(--display); font-size: 1.7rem; padding-bottom: 1rem; color: var(--ink); }
.gassan .g-career td { padding: .9rem 1.5rem .9rem 0; border: 0; border-top: 1px solid var(--rule); vertical-align: baseline; background: transparent; color: var(--smoke); }
.gassan .g-career td:first-child { font-family: var(--display); color: var(--gold); white-space: nowrap; width: 9rem; font-size: 1.1rem; }
.gassan .g-career tr.lead td:nth-child(2) { color: var(--ink); }
.gassan .g-career td:last-child { padding-right: 0; }

/* Creations: staggered like a gallery wall */
@media (min-width: 768px) {
  .gassan .g-works .g-col:nth-child(2) { margin-top: 6rem; }
}

/* Collaborations */
.gassan .g-names ul { columns: 2; column-gap: 3rem; margin: .5rem 0 2rem; padding: 0; list-style: none; }
.gassan .g-names li { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.5; break-inside: avoid; color: var(--ink); }
@media (max-width: 767px) { .gassan .g-names ul { columns: 1; } }

/* Press */
.gassan .g-accolade p { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; max-width: 48rem; margin-bottom: 2rem; }
.gassan .g-press { list-style: none; margin: 0; padding: 0; }
.gassan .g-press li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.gassan .g-press li span:last-child { color: var(--smoke); font-size: .9rem; white-space: nowrap; }

/* Services */
.gassan .g-services ul { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.gassan .g-services li { padding: .65rem 0; border-top: 1px solid var(--rule); }

/* Contact form (shortcode) */
.gassan .g-form { display: grid; gap: 1.1rem; }
.gassan .g-form label { display: grid; gap: .4rem; font-size: .9rem; color: var(--smoke); }
.gassan .g-form input, .gassan .g-form select, .gassan .g-form textarea {
  font: inherit; color: var(--ink); background: var(--charcoal);
  border: 1px solid var(--rule); border-radius: 2px; padding: .8rem .9rem; width: 100%;
}
.gassan .g-form input:focus, .gassan .g-form select:focus, .gassan .g-form textarea:focus { border-color: var(--gold); outline: none; }
.gassan .g-form textarea { min-height: 9rem; resize: vertical; }
.gassan .g-form button {
  justify-self: start; font: 500 .95rem var(--body); padding: .8rem 1.4rem; cursor: pointer;
  background: var(--gold); color: #000; border: 1px solid var(--gold); border-radius: 2px;
}
.gassan .g-form button:hover { background: var(--gold-hover); }
.gassan .g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gassan .g-notice { padding: 1rem 1.2rem; border: 1px solid var(--gold); color: var(--ink); margin-bottom: 1.2rem; }
.gassan .g-notice.err { border-color: #E2A27A; }

/* Plain pages and posts (non-Elementor) */
.g-page { padding: clamp(3rem, 8vw, 6rem) 0; }
.g-page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 2rem; }
.g-page .entry { max-width: 42rem; }
.g-page article + article { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--rule); }

/* ---------- Built-in home page (shown only when Elementor content is missing) ---------- */
.g-static .g-s.g-s-outer { display: block; padding-inline: var(--pad); }
.g-static .g-s-inner { max-width: 1152px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--g-rg) var(--g-cg); }
.g-static .g-s-row > .g-s-inner { flex-direction: row; }
.g-static .g-s-center > .g-s-inner { align-items: center; }
.g-static .g-s { display: flex; gap: var(--g-rg) var(--g-cg); }
.g-static .g-s-col { flex-direction: column; }
.g-static .g-s-row { flex-direction: row; }
.g-static .g-s-row > .g-s-inner > .g-s, .g-static .g-s-row > .g-s { flex: 0 1 var(--g-w, auto); min-width: 0; }
.g-static .g-actions { flex-wrap: wrap; }
.g-static .g-s-center { align-items: center; }
.g-static .g-hero { padding-block: clamp(3rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem); }
.g-static .g-start { padding-top: clamp(4.5rem, 10vw, 8rem); }
.g-static .g-sec:not(.g-start) { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.g-static .g-end { padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.g-static .elementor-heading-title { margin: 0; }
.g-static .g-btn .elementor-button { display: inline-block; text-decoration: none; }
.g-static .g-ph { background: var(--charcoal); border: 1px solid var(--rule); }
.g-static .g-portrait .g-ph { aspect-ratio: 4 / 5; }
.g-static .g-wide .g-ph { aspect-ratio: 16 / 9; }
.g-static .g-square .g-ph { aspect-ratio: 1 / 1; }
@media (max-width: 767px) {
  .g-static .g-s-row, .g-static .g-s-row > .g-s-inner { flex-direction: column; align-items: stretch; }
  .g-static .g-s-row > .g-s-inner > .g-s, .g-static .g-s-row > .g-s { flex-basis: auto; width: 100%; }
}
