/*
 Theme Name:   Four Fathers Brewing Co.
 Theme URI:    https://fourfathersbrewery.com
 Description:  Astra child theme for Four Fathers Brewing Co. — New Gurugram's biggest brewery. Heritage craft brewery aesthetic with vintage engraving feel.
 Author:       Four Fathers Brewing Co.
 Author URI:   https://fourfathersbrewery.com
 Template:     astra
 Version:      1.0.0
 License:      All rights reserved
 Text Domain:  four-fathers
 Requires at least: 6.4
 Tested up to: 6.7
 Requires PHP: 8.0
*/

/* =========================================================
   Four Fathers Brewing Co. — Design Tokens
   Mirrors docs/design-system from v1.
   These CSS custom properties are used throughout the theme
   and can be referenced in Elementor's custom CSS fields.
   ========================================================= */

:root {
  /* Brand colors */
  --ff-coal: #141210;
  --ff-parchment: #F3EADB;
  --ff-ivory: #E8DCC4;
  --ff-amber: #C8873D;
  --ff-copper: #9A5A2B;
  --ff-oxblood: #6B2B24;
  --ff-oxblood-light: #7c3831;
  --ff-hop: #4A5A31;
  --ff-smoke: #5A524A;
  --ff-foam: #FBF7EE;

  /* Font families — loaded via Google Fonts in functions.php */
  --ff-font-display: "IM Fell DW Pica SC", Georgia, serif;
  --ff-font-editorial: "Abril Fatface", Georgia, serif;
  --ff-font-body: "Lora", Georgia, serif;
  --ff-font-ui: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --ff-shadow-card: 0 2px 8px rgba(20, 18, 16, 0.08);
  --ff-shadow-card-hover: 0 8px 24px rgba(20, 18, 16, 0.12);
  --ff-shadow-letterpress: inset 0 -2px 0 #4a1e19, 0 1px 0 #000;
}

/* =========================================================
   Global base styles
   ========================================================= */

body {
  background-color: var(--ff-parchment) !important;
  color: var(--ff-coal);
  font-family: var(--ff-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-heading-title {
  font-family: var(--ff-font-display);
  color: var(--ff-coal);
  line-height: 1.15;
}

p, .entry-content, .elementor-text-editor {
  font-family: var(--ff-font-body);
  line-height: 1.65;
}

a {
  color: var(--ff-amber);
  transition: color 200ms ease;
}

a:hover {
  color: var(--ff-copper);
}

::selection {
  background: var(--ff-amber);
  color: var(--ff-foam);
}

/* =========================================================
   Astra overrides — force our palette into Astra's system
   ========================================================= */

/* Primary button */
.ast-button,
.elementor-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  background-color: var(--ff-oxblood) !important;
  color: var(--ff-foam) !important;
  font-family: var(--ff-font-ui) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.875rem 1.75rem !important;
  box-shadow: var(--ff-shadow-letterpress);
  transition: background-color 200ms ease, transform 200ms ease !important;
}

.ast-button:hover,
.elementor-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--ff-oxblood-light) !important;
  transform: translateY(-1px);
}

/* Secondary / outlined button (use class .ff-btn-secondary in Elementor) */
.ff-btn-secondary,
.ff-btn-secondary .elementor-button {
  background: transparent !important;
  color: var(--ff-amber) !important;
  border: 1.5px solid var(--ff-amber) !important;
  box-shadow: none !important;
}

.ff-btn-secondary:hover,
.ff-btn-secondary .elementor-button:hover {
  background: var(--ff-amber) !important;
  color: var(--ff-coal) !important;
}

/* Eyebrow label (use class .ff-eyebrow on any text widget) */
.ff-eyebrow,
.ff-eyebrow .elementor-heading-title {
  font-family: var(--ff-font-ui) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--ff-amber) !important;
}

/* Editorial numerals (use class .ff-editorial on text) */
.ff-editorial {
  font-family: var(--ff-font-editorial) !important;
}

/* =========================================================
   Header overrides
   ========================================================= */

.ast-primary-header,
.ast-header-stacked {
  background-color: transparent !important;
  transition: background-color 300ms ease;
}

.ast-header-stacked.ast-sticky-active,
.ast-primary-header.ast-sticky-active {
  background-color: rgba(243, 234, 219, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(154, 90, 43, 0.2);
}

/* =========================================================
   Footer overrides
   ========================================================= */

.ast-footer,
.site-footer,
.ast-footer-overlay {
  background-color: var(--ff-coal) !important;
  color: var(--ff-foam) !important;
}

.site-footer a {
  color: rgba(251, 247, 238, 0.85) !important;
}

.site-footer a:hover {
  color: var(--ff-amber) !important;
}

/* =========================================================
   Ornamental divider (use class .ff-divider on an Elementor
   Divider widget or <hr>)
   ========================================================= */

.ff-divider,
.ff-divider .elementor-divider-separator {
  border-top-color: var(--ff-smoke) !important;
  opacity: 0.5;
}

/* =========================================================
   Card styling (add .ff-card class to Elementor column/section)
   ========================================================= */

.ff-card {
  background: var(--ff-parchment);
  border: 1px solid rgba(20, 18, 16, 0.12);
  box-shadow: var(--ff-shadow-card);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.ff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ff-shadow-card-hover);
}

/* Double-rule inner border */
.ff-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 0.5px solid rgba(20, 18, 16, 0.25);
  pointer-events: none;
}

/* =========================================================
   Dietary icons (used in menu page via ACF / shortcodes)
   ========================================================= */

.ff-dietary-veg {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid #2f7a2f;
  position: relative;
}
.ff-dietary-veg::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2f7a2f;
}

.ff-dietary-nonveg {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid #b0262c;
  position: relative;
}
.ff-dietary-nonveg::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #b0262c;
}

.ff-dietary-egg {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid #b08a1c;
  position: relative;
}
.ff-dietary-egg::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #b08a1c;
}

/* =========================================================
   Sections with alt backgrounds
   ========================================================= */

.ff-bg-coal { background-color: var(--ff-coal) !important; color: var(--ff-foam) !important; }
.ff-bg-coal h1, .ff-bg-coal h2, .ff-bg-coal h3 { color: var(--ff-foam) !important; }
.ff-bg-ivory { background-color: var(--ff-ivory) !important; }
.ff-bg-oxblood { background-color: var(--ff-oxblood) !important; color: var(--ff-foam) !important; }
.ff-bg-oxblood h1, .ff-bg-oxblood h2, .ff-bg-oxblood h3 { color: var(--ff-foam) !important; }
.ff-bg-parchment { background-color: var(--ff-parchment) !important; }

/* =========================================================
   Utility classes for Elementor
   ========================================================= */

.ff-text-amber { color: var(--ff-amber) !important; }
.ff-text-oxblood { color: var(--ff-oxblood) !important; }
.ff-text-smoke { color: var(--ff-smoke) !important; }
.ff-text-foam { color: var(--ff-foam) !important; }
.ff-text-coal { color: var(--ff-coal) !important; }

.ff-font-display { font-family: var(--ff-font-display) !important; }
.ff-font-body { font-family: var(--ff-font-body) !important; }
.ff-font-ui { font-family: var(--ff-font-ui) !important; }

/* Drop cap for story pages */
.ff-drop-cap p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-font-display);
  font-size: 5rem;
  line-height: 0.85;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  color: var(--ff-oxblood);
}

/* =========================================================
   WhatsApp floating button (via Joinchat plugin — theme reinforcement)
   ========================================================= */

.joinchat__button {
  background-color: var(--ff-hop) !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  h1, .elementor-heading-title.elementor-size-xxl { font-size: 2.5rem !important; }
  h2, .elementor-heading-title.elementor-size-xl { font-size: 2rem !important; }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Scrollbar
   ========================================================= */

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ff-ivory); }
::-webkit-scrollbar-thumb { background: var(--ff-copper); border-radius: 6px; border: 3px solid var(--ff-ivory); }
::-webkit-scrollbar-thumb:hover { background: var(--ff-oxblood); }
