/*
Theme Name: Ferricio George Photo & Film
Theme URI: https://ferriciogeorge.com
Author: Ferricio George
Author URI: https://ferriciogeorge.com
Description: A dark, cinematic portfolio theme built for Ferricio George Photo & Film. Full-bleed imagery, editorial typography, and a category-based portfolio menu (Weddings, Lifestyle, Portraits, Film & Videography, Branding & Media). Built to be customized entirely through the WordPress editor — no coding required to add photos or text.
Version: 1.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: ferricio-george
*/

/* =========================================================
   0. RESET + ROOT VARIABLES
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fg-black);
  color: var(--fg-white);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  margin: 0 0 0.5em;
  line-height: 1.2;
}
p { margin: 0 0 1.4em; }
button { font-family: inherit; cursor: pointer; }

:root {
  --fg-black: #0b0b0a;
  --fg-charcoal: #191917;
  --fg-charcoal-light: #232320;
  --fg-white: #f6f5f1;
  --fg-muted: #a3a29b;
  --fg-hairline: rgba(246, 245, 241, 0.16);
  --fg-gold: #f0da8f;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--fg-gold);
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.9em 2em;
  border: 1px solid var(--fg-hairline);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--fg-white); color: var(--fg-black); border-color: var(--fg-white); }
.btn-solid { background: var(--fg-white); color: var(--fg-black); }
.btn-solid:hover { background: transparent; color: var(--fg-white); border-color: var(--fg-hairline); }

/* =========================================================
   1. SITE HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow .4s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 10, 0.92);
  backdrop-filter: blur(6px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 var(--fg-hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding { display: flex; flex-direction: column; flex-shrink: 0; white-space: nowrap; }
.site-title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.site-title a { color: var(--fg-white); }
.site-tagline {
  margin: 0.1em 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: 'Jost', sans-serif;
}
.custom-logo-link img { max-height: 54px; width: auto; }

/* primary menu */
.primary-menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--fg-white);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25em;
}
.primary-navigation ul.menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.6rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-navigation a {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-white);
  position: relative;
  padding: 0.3em 0;
  white-space: nowrap;
}
.primary-navigation > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--fg-gold);
  transition: width 0.3s ease;
}
.primary-navigation > ul > li > a:hover::after,
.primary-navigation > ul > li.current-menu-item > a::after,
.primary-navigation > ul > li.current_page_ancestor > a::after,
.primary-navigation > ul > li.current-menu-ancestor > a::after {
  width: 100%;
}

.primary-navigation li.menu-item-has-children { position: relative; }
.primary-navigation li.menu-item-has-children > a::before {
  content: '';
}
.primary-navigation .sub-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--fg-charcoal);
  border: 1px solid var(--fg-hairline);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.primary-navigation li.menu-item-has-children:hover > .sub-menu,
.primary-navigation li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.primary-navigation .sub-menu li a {
  display: block;
  padding: 0.6em 1.4em;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.primary-navigation .sub-menu li a:hover { background: var(--fg-charcoal-light); }
.primary-navigation .sub-menu li a::after { display: none; }

/* =========================================================
   2. HERO (Home template)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%), var(--fg-charcoal);
  background-size: cover;
  background-position: center;
  color: var(--fg-white);
  overflow: hidden;
}
.hero.no-image {
  background: radial-gradient(ellipse at top, #2a2a26 0%, var(--fg-black) 70%);
}
.hero-placeholder-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 2rem;
  border: 1px dashed var(--fg-hairline);
  margin: 2rem;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 5.5rem;
  width: 100%;
}
.hero-content .eyebrow { display: block; margin-bottom: 1.1rem; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero-subtitle {
  max-width: 46ch;
  color: var(--fg-muted);
  font-size: 1.05rem;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: var(--fg-hairline);
}
.hero-scroll-cue::after {
  content: '';
  position: absolute;
  top: 0; left: -2.5px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-gold);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

/* statement / quote band */
.statement-band {
  background: var(--fg-charcoal);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  text-align: center;
}
.statement-band blockquote {
  margin: 0 auto;
  max-width: 850px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--fg-white);
  font-weight: 400;
}
.statement-band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

/* highlight grid (home) */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.highlight-grid a {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.highlight-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.highlight-grid a:hover img { transform: scale(1.06); }
.highlight-grid .grid-label {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--fg-white);
  background: rgba(11,11,10,0.55);
  padding: 0.5em 0.9em;
}

/* home intro / about-teaser section */
.home-section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-heading h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-heading p { color: var(--fg-muted); }

.about-teaser {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-teaser img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-teaser .eyebrow { margin-bottom: 1rem; }
.about-teaser p { color: var(--fg-muted); }

/* =========================================================
   3. GENERIC PAGE HERO (Portfolio category / About / FAQ / Contact)
   ========================================================= */
.page-hero {
  padding: clamp(9rem, 18vw, 11rem) 0 clamp(3rem, 6vw, 4rem);
  text-align: center;
  background: var(--fg-charcoal);
  border-bottom: 1px solid var(--fg-hairline);
}
.page-hero .eyebrow { display: block; margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero p.page-hero-sub { max-width: 56ch; margin: 0.8rem auto 0; color: var(--fg-muted); }

/* Portfolio category filter pills (links across the 5 category pages) */
.portfolio-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem var(--gutter) 0;
}
.portfolio-subnav a {
  padding: 0.55em 1.3em;
  border: 1px solid var(--fg-hairline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}
.portfolio-subnav a:hover,
.portfolio-subnav a.is-active {
  background: var(--fg-white);
  color: var(--fg-black);
  border-color: var(--fg-white);
}

/* content area that wraps the_content() on inner pages */
.page-content-wrap {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 9vw, 7rem);
}
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content.wide { max-width: 100%; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content a { border-bottom: 1px solid var(--fg-gold); }
.entry-content blockquote {
  border-left: 2px solid var(--fg-gold);
  padding-left: 1.4rem;
  font-style: italic;
  color: var(--fg-muted);
}

/* Gutenberg gallery / image blocks -> full-bleed grid look */
.entry-content .wp-block-gallery,
.entry-content .wp-block-image + .wp-block-image,
.entry-content ul.wp-block-gallery {
  margin-top: 1.4em;
}
.wp-block-gallery.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wp-block-gallery.columns-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wp-block-gallery figure { margin: 0; }
.wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-figure {
  aspect-ratio: 4/5;
  border: 1px dashed var(--fg-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 1rem;
}

/* =========================================================
   4. ABOUT PAGE
   ========================================================= */
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-layout .about-portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-layout .about-portrait { position: sticky; top: 7rem; }
.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fg-hairline);
}
.stat-row .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--fg-gold);
  display: block;
}
.stat-row .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

/* =========================================================
   5. FAQ PAGE
   ========================================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--fg-hairline);
  padding: 1.6rem 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--fg-white);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: 'Jost', sans-serif;
  font-size: 1.4rem;
  color: var(--fg-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-answer {
  color: var(--fg-muted);
  margin-top: 1rem;
  padding-right: 2rem;
}

/* =========================================================
   5b. PRICING PAGE
   ========================================================= */
.pricing-hero-image {
  aspect-ratio: 16/8;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1100px;
}
.pricing-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.pricing-intro {
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--fg-muted);
}
.pricing-form-wrap { max-width: 760px; margin: 3.5rem auto 0; }
.pricing-form-wrap .form-note {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* Generic form styling — also matches Contact Form 7 / WPForms output
   once you install a form plugin and paste its shortcode in. */
.fgpf-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.fgpf-form-fields .field-full { grid-column: 1 / -1; }
.fgpf-form-fields label,
.wpcf7-form label,
.wpforms-field-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--fg-muted);
  margin-bottom: 0.5em;
}
.fgpf-form-fields input,
.fgpf-form-fields select,
.fgpf-form-fields textarea,
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea,
.wpcf7-form select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
  width: 100%;
  background: var(--fg-charcoal);
  border: 1px solid var(--fg-hairline);
  color: var(--fg-white);
  padding: 0.8em 1em;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
}
.fgpf-form-fields input:focus,
.fgpf-form-fields textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--fg-gold);
}
.fgpf-placeholder-form-note {
  border: 1px dashed var(--fg-hairline);
  padding: 2.2rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-align: center;
}
.fgpf-placeholder-form-note code {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--fg-charcoal-light);
  padding: 0.2em 0.5em;
  color: var(--fg-gold);
}

.keep-in-mind {
  background: var(--fg-charcoal);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.keep-in-mind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.keep-in-mind-grid h3 {
  font-size: 1.1rem;
  color: var(--fg-gold);
  margin-bottom: 0.6em;
}
.keep-in-mind-grid p { color: var(--fg-muted); font-size: 0.92rem; }

@media (max-width: 780px) {
  .fgpf-form-fields { grid-template-columns: 1fr; }
  .keep-in-mind-grid { grid-template-columns: 1fr; text-align: center; }
}

/* =========================================================
   6. CONTACT PAGE
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.contact-method {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--fg-hairline);
}
.contact-method .eyebrow { display: block; margin-bottom: 0.5rem; }
.contact-method a { font-size: 1.1rem; }
.contact-form-slot {
  border: 1px dashed var(--fg-hairline);
  padding: 2.2rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.contact-form-slot code {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--fg-charcoal-light);
  padding: 0.2em 0.5em;
  color: var(--fg-gold);
}

/* =========================================================
   7. INSTAGRAM / FOLLOW STRIP (home)
   ========================================================= */
.follow-strip { background: var(--fg-charcoal); padding: clamp(3rem, 7vw, 5rem) 0; }
.follow-strip .section-heading { margin-bottom: 2rem; }
.follow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.follow-grid a { display: block; aspect-ratio: 1/1; overflow: hidden; }
.follow-grid img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer {
  background: var(--fg-black);
  border-top: 1px solid var(--fg-hairline);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2.5rem;
  text-align: center;
  align-items: center;
}
.footer-brand img.footer-badge { max-width: 96px; margin: 0 auto 0.8rem; opacity: 0.9; }
.footer-brand .site-title { font-size: 1.3rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.footer-nav a:hover { color: var(--fg-white); }
.footer-social { display: flex; gap: 1.1rem; justify-content: center; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--fg-hairline);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.footer-social a:hover { background: var(--fg-white); color: var(--fg-black); }
.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fg-hairline);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* =========================================================
   9. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-layout .about-portrait { position: static; max-width: 320px; margin: 0 auto; }
  .follow-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* With 10 flat nav items (Home + 5 categories + Pricing/About/FAQ/Contact),
   the hamburger menu takes over earlier than a typical site — below
   ~1100px, a one-line nav gets visually cramped even letter-spaced this
   tight, so it collapses to the mobile menu at a wider breakpoint than
   usual. Above 1100px there's room for the full row. */
@media (max-width: 1100px) {
  .primary-menu-toggle { display: block; }
  .primary-navigation {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--fg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 99;
  }
  .primary-navigation.is-open { transform: translateY(0); }
  .primary-navigation ul.menu {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }
  .primary-navigation .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: none;
    text-align: center;
    padding-top: 0.5rem;
  }
  .primary-navigation li.menu-item-has-children:hover > .sub-menu { transform: none; }
  .hero-content { padding-bottom: 3.5rem; }
}

@media (max-width: 560px) {
  .highlight-grid { grid-template-columns: 1fr; }
  .wp-block-gallery.columns-3, .wp-block-gallery.columns-2 { grid-template-columns: 1fr; }
  .follow-grid { grid-template-columns: repeat(2, 1fr); }
}
