/*
Theme Name: Soquili Farm Custom
Theme URI: https://soquiliquarterhorses.com/
Description: Custom Astra child theme for Soquili Farm Quarter Horses.
Author: Soquili Farm
Template: astra
Version: 1.1.0
Text Domain: soquili-farm
*/

:root {
  --sf-black: #171512;
  --sf-ivory: #f5f0e6;
  --sf-saddle: #7a4f2b;
  --sf-brass: #b08a4a;
  --sf-white: #ffffff;
  --sf-max: 1240px;
  --sf-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sf-sans: "Avenir Next", Avenir, Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sf-black); background: var(--sf-ivory); font-family: var(--sf-sans); }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.sf-shell { width: min(calc(100% - 40px), var(--sf-max)); margin-inline: auto; }

/* Header */
.sf-site-header {
  position: relative;
  z-index: 1000;
  background: rgba(23, 21, 18, .96);
  color: var(--sf-white);
  border-bottom: 1px solid rgba(176, 138, 74, .35);
}
.home .sf-site-header {
  position: absolute;
  inset: 0 0 auto 0;
  background: linear-gradient(to bottom, rgba(10,9,8,.78), rgba(10,9,8,.18), transparent);
  border-bottom: 0;
}
.sf-header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.sf-brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.sf-brand-logo img { display: block; width: clamp(255px, 24vw, 370px); max-width: 100%; max-height: 96px; object-fit: contain; object-position: left center; }
.sf-brand-text { display: grid; line-height: 1; }
.sf-brand-name { font-family: var(--sf-serif); font-size: clamp(26px, 3vw, 42px); letter-spacing: .06em; text-transform: uppercase; }
.sf-brand-sub { margin-top: 8px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--sf-brass); }

.sf-primary-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.sf-primary-nav a { position: relative; display: block; color: var(--sf-white); text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; padding: 12px 0; }
.sf-primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--sf-brass); transition: right .25s ease; }
.sf-primary-nav a:hover::after, .sf-primary-nav .current-menu-item > a::after { right: 0; }
.sf-menu-toggle { display: none; appearance: none; border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.18); color: white; width: 46px; height: 42px; border-radius: 2px; cursor: pointer; }
.sf-menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

/* Hero */
.sf-hero {
  min-height: clamp(690px, 96vh, 980px);
  position: relative;
  display: flex;
  align-items: center;
  background-image: var(--sf-hero-image);
  background-size: cover;
  background-position: center center;
  color: white;
  overflow: hidden;
}
.sf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,10,8,.82) 0%, rgba(12,10,8,.58) 32%, rgba(12,10,8,.18) 58%, rgba(12,10,8,.03) 100%),
    linear-gradient(to top, rgba(12,10,8,.56) 0%, rgba(12,10,8,.04) 58%, rgba(12,10,8,.20) 100%);
}
.sf-hero-content { position: relative; z-index: 2; width: min(calc(100% - 40px), var(--sf-max)); margin: 0 auto; padding: 150px 0 58px; }
.sf-kicker { margin: 0 0 16px; color: #ead9b6; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.sf-hero h1 { max-width: 700px; margin: 0; font-family: var(--sf-serif); font-weight: 500; font-size: clamp(48px, 5.8vw, 82px); line-height: .97; letter-spacing: -.018em; text-wrap: balance; }
.sf-hero h1 span { display: block; }
.sf-hero-copy { max-width: 620px; margin: 22px 0 0; font-family: var(--sf-serif); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; color: rgba(255,255,255,.93); }
.sf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.sf-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--sf-brass); text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 700; transition: .2s ease; }
.sf-button-primary { background: var(--sf-brass); color: var(--sf-black); }
.sf-button-primary:hover { background: #c59b54; color: var(--sf-black); transform: translateY(-1px); }
.sf-button-secondary { background: rgba(0,0,0,.18); color: white; border-color: rgba(255,255,255,.65); }
.sf-button-secondary:hover { background: white; color: var(--sf-black); }

/* Homepage sections */
.sf-section { padding: clamp(72px, 8vw, 120px) 0; }
.sf-section-dark { background: var(--sf-black); color: var(--sf-ivory); }
.sf-section-white { background: #fff; }
.sf-eyebrow { margin: 0 0 15px; color: var(--sf-saddle); font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.sf-section-dark .sf-eyebrow { color: var(--sf-brass); }
.sf-section h2 { margin: 0; font-family: var(--sf-serif); font-weight: 500; font-size: clamp(39px, 5vw, 66px); line-height: 1.05; }
.sf-lead { margin: 24px 0 0; max-width: 760px; font-family: var(--sf-serif); font-size: clamp(20px, 2.2vw, 29px); line-height: 1.55; }
.sf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.sf-card { padding: 34px; background: rgba(255,255,255,.04); border: 1px solid rgba(176,138,74,.32); }
.sf-card h3 { margin: 0 0 13px; font-family: var(--sf-serif); font-size: 29px; font-weight: 500; }
.sf-card p { margin: 0; color: rgba(245,240,230,.77); line-height: 1.75; }
.sf-feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 7vw, 96px); }
.sf-feature-panel { min-height: 420px; background: linear-gradient(145deg, #e9dfcf, #c8aa7a); border: 1px solid rgba(122,79,43,.25); display: grid; place-items: center; padding: 35px; text-align: center; }
.sf-feature-panel strong { font-family: var(--sf-serif); font-size: clamp(34px, 4vw, 56px); font-weight: 500; }
.sf-body-copy { line-height: 1.8; font-size: 17px; }

/* General page content */
.sf-main { min-height: 60vh; }
.sf-page-hero { padding: 88px 0 62px; background: var(--sf-black); color: var(--sf-ivory); }
.sf-page-hero h1 { margin: 0; font: 500 clamp(42px, 6vw, 72px)/1.05 var(--sf-serif); }
.sf-content { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 70px 0 100px; }
.sf-content :where(h2,h3,h4) { font-family: var(--sf-serif); font-weight: 500; }
.sf-content p, .sf-content li { line-height: 1.8; }

/* Footer */
.sf-site-footer { padding: 58px 0 28px; background: #0f0e0c; color: rgba(245,240,230,.78); border-top: 1px solid rgba(176,138,74,.3); }
.sf-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start; }
.sf-footer-title { font: 500 34px/1 var(--sf-serif); color: white; letter-spacing: .04em; text-transform: uppercase; }
.sf-footer-tagline { max-width: 560px; margin-top: 16px; line-height: 1.7; }
.sf-footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; justify-content: end; text-align: right; }
.sf-footer-nav a { color: rgba(245,240,230,.82); text-decoration: none; }
.sf-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

@media (max-width: 1040px) {
  .sf-header-inner { min-height: 96px; }
  .sf-menu-toggle { display: block; }
  .sf-primary-nav { display: none; position: absolute; top: 96px; left: 20px; right: 20px; padding: 18px 24px; background: rgba(17,15,13,.98); border: 1px solid rgba(176,138,74,.38); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
  .sf-primary-nav.is-open { display: block; }
  .sf-primary-nav ul { display: grid; gap: 0; }
  .sf-primary-nav a { padding: 14px 0; }
  .sf-grid-3, .sf-feature-grid, .sf-footer-grid { grid-template-columns: 1fr; }
  .sf-mares-grid > :first-child { order: 2; }
  .sf-mares-grid > :last-child { order: 1; }
  .sf-footer-nav ul { justify-content: start; text-align: left; }
}

@media (max-width: 600px) {
  .sf-shell, .sf-hero-content, .sf-content { width: min(calc(100% - 28px), var(--sf-max)); }
  .sf-brand-name { font-size: 24px; }
  .sf-brand-sub { font-size: 8px; letter-spacing: .2em; }
  .sf-brand-logo img { width: 230px; max-height: 78px; }
  .sf-hero { min-height: 780px; background-position: 67% center; align-items: flex-end; }
  .sf-hero-content { padding: 150px 0 48px; }
  .sf-hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .sf-hero-copy { font-size: 20px; }
  .sf-actions { display: grid; }
  .sf-button { width: 100%; }
  .sf-card { padding: 27px; }
  .sf-footer-bottom { display: grid; }
}
