/*
Theme Name: PORRADA
Theme URI: https://porrada.com.au/
Author: PORRADA
Description: Specialist combat-sports photography theme for PORRADA. Styling is a direct port of the approved preview build (porrada-preview.vistech.chatgpt.site) — selectors, values and breakpoints match it. Classic PHP theme, no page builder required.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 7.1
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: porrada
Tags: photography, portfolio, one-column, custom-menu, featured-images
*/

/* ===============================================================
   Ported verbatim from the preview build's stylesheet.
   Values are the preview's computed values — do not "tidy" them.
   WordPress-only additions are grouped at the end.
   =============================================================== */

:root {
  --ink: #0b0b0b;
  --paper: #f0eee8;
  --orange: #ff6a13;
  --line: #ffffff2e;
  --font-inter: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-bebas: "Bebas Neue", Impact, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-inter), sans-serif; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  color: #fff; z-index: 10; border-bottom: 1px solid var(--line); background: #0b0b0b;
  grid-template-columns: 170px 1fr auto auto; align-items: center; width: 100%; height: 86px;
  padding: 0 4.5vw; display: grid; position: absolute;
}
.header-socials { align-items: center; gap: 13px; margin-right: 22px; display: flex; }
.header-socials a { color: #fff; place-items: center; display: grid; }
.header-socials a:hover { color: var(--orange); }
.brand img { object-fit: contain; width: 118px; height: 66px; }
.site-header nav { text-transform: uppercase; letter-spacing: .13em; justify-content: center; gap: 38px; font-size: 12px; display: flex; }
.site-header nav a:hover { color: var(--orange); }
.header-cta {
  background: var(--orange); color: #080808; text-transform: uppercase; letter-spacing: .08em;
  align-items: center; gap: 12px; padding: 14px 18px; font-size: 12px; font-weight: 800; display: flex;
}
.menu { color: #fff; background: 0 0; border: 0; display: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  color: #fff; align-items: flex-end; height: min(900px, 100vh); min-height: 720px;
  padding: 0 6vw 8vh; display: flex; position: relative; overflow: hidden;
}
/* Anchored to the subject's face (~78% across, ~13% down of the source frame)
   so it stays in shot at any viewport aspect. With background-size:cover a
   percentage position pins that point of the image to the same point of the
   box, so the face cannot be cropped out as the window changes. */
.hero-image { background-position: 78% 13%; background-size: cover; background-repeat: no-repeat; position: absolute; inset: 0; }
.hero-shade {
  background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.38) 55%, rgba(0,0,0,.12)),
              linear-gradient(rgba(0,0,0,0) 45%, rgba(0,0,0,.8));
  position: absolute; inset: 0;
}
.hero-copy { z-index: 2; max-width: 870px; position: relative; }

.eyebrow, .section-tag { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 800; }
.eyebrow { color: var(--orange); align-items: center; gap: 12px; display: flex; }
.eyebrow::before { content: ""; background: var(--orange); width: 36px; height: 2px; }

/* The preview's Tailwind base layer resets heading sizes to inherit; the
   explicit rules below restore them. .news-home h2 is included in that list
   here - the preview omits it, which is why its news heading renders at 16px. */
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--font-bebas), Impact, sans-serif; text-transform: uppercase; letter-spacing: -.01em; font-weight: 400; line-height: .88; }
h1 { margin: 24px 0; font-size: clamp(72px, 10vw, 150px); }
.hero h1 em, .about h2 em, .contact h2 em { font-family: var(--font-serif), serif; text-transform: none; font-size: .76em; font-weight: 400; }

.lead { color: #ddd; max-width: 650px; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.5; }
.actions { gap: 12px; margin-top: 34px; display: flex; }
.button {
  text-transform: uppercase; letter-spacing: .09em; justify-content: center; align-items: center;
  gap: 14px; padding: 18px 24px; font-size: 12px; font-weight: 850; display: inline-flex;
}
.button.primary { background: var(--orange); color: #080808; }
.button.secondary { border: 1px solid rgba(255,255,255,.45); }
.button.light { color: #fff; background: #0b0b0b; }
.location {
  z-index: 2; text-transform: uppercase; letter-spacing: .12em; align-items: center; gap: 8px;
  font-size: 11px; display: flex; position: absolute; bottom: 4vh; right: 5vw;
}

/* ---------- Intro / services ---------- */
.intro { grid-template-columns: 1.4fr .6fr; gap: 8vw; padding: 120px 6vw 80px; display: grid; }
.section-tag { color: #6c6b65; margin-bottom: 24px; }
.intro h2, .selected-work h2, .about h2, .contact h2, .news-home h2 { margin: 0; font-size: clamp(52px, 6.8vw, 100px); }
.intro > p { color: #474641; align-self: end; font-size: 18px; line-height: 1.65; }
.intro .section-tag { color: var(--orange); }

.service-grid { grid-template-columns: repeat(3, 1fr); padding: 0 6vw 120px; display: grid; }
.service-grid article { border-top: 1px solid #aaa; border-right: 1px solid #aaa; flex-direction: column; padding: 40px; display: flex; position: relative; }
.service-grid article::before { content: ""; background: var(--orange); width: 64px; height: 3px; position: absolute; top: -2px; left: 40px; }
.service-grid article:last-child { border-right: 0; }
.service-grid article > span { color: var(--orange); font-size: 11px; font-weight: 800; position: absolute; top: 28px; right: 28px; }
.service-grid .service-icon { width: 52px; height: 52px; color: var(--orange); margin: 8px 0 56px; }
.service-grid h3 { font-family: var(--font-bebas); text-transform: uppercase; min-height: 68px; font-size: 34px; font-weight: 400; line-height: 1; }
.service-grid p { color: #555; margin-bottom: 34px; line-height: 1.6; }
.service-grid a, .section-heading > a, .section-heading__aside > a { text-transform: uppercase; letter-spacing: .09em; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; display: flex; }
.service-grid article > a { min-height: 28px; margin-top: auto; }
.service-grid article > a svg { color: var(--orange); }

/* ---------- Selected work ---------- */
.selected-work { color: #fff; background: #0b0b0b; padding: 110px 6vw; }
.selected-work .section-tag { color: #fff; }
.section-heading { justify-content: space-between; align-items: end; margin-bottom: 55px; display: flex; }

/* Preview ships three cells (1.35fr/.65fr, rows 1fr 1fr, .large spans 2).
   The brief requires a fourth, so the stacked column carries three and
   .large spans all of them. Same proportions, same 760px block. */
/* Supporting copy beside the Selected Work heading. */
.section-heading__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 430px; }
.section-heading__aside p { color: #c7c7c7; font-size: 18px; line-height: 1.65; margin: 0; }

.photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 980px; display: grid; }
.photo-grid figure { margin: 0; position: relative; overflow: hidden; }
.photo-grid img { object-fit: cover; width: 100%; height: 100%; transition: transform .5s; }
.photo-grid figure:hover img { transform: scale(1.025); }
.photo-grid figcaption {
  color: #fff;
  background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.88) 100%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  padding: 30px; position: absolute; inset: auto 0 0;
}
.photo-grid__num { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.photo-grid figcaption h3 {
  font-family: var(--font-bebas); text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(24px, 2.3vw, 34px); font-weight: 400; line-height: 1; margin: 0;
}
.photo-grid figcaption p { color: #d6d6d6; font-size: 14px; line-height: 1.55; margin: 0; max-width: 44ch; }

/* ---------- About ---------- */
.about { padding: 0; }
/* Image runs full-bleed to the edge; the copy column carries its own padding. */
.about-split { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; display: grid; min-height: 100vh; }
.about-media { overflow: hidden; background: #0b0b0b; }
.about-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 5.5vw, 96px); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about .section-tag, .about h2 em { color: var(--orange); }
.about h2 .accent { display: block; color: var(--orange); }
/* Lead paragraph: darker and larger, tight to the heading. */
.about-lead { color: #1a1a17; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; margin: 30px 0 0; max-width: 52ch; }
/* Supporting paragraphs step back. */
.about-body > p:not(.section-tag):not(.about-lead):not(.about-note) { color: #6b6a63; font-size: 16px; line-height: 1.65; margin: 22px 0 0; max-width: 56ch; }
/* Sign-off beneath a hairline. */
.about-note { color: #6b6a63; font-size: 15px; line-height: 1.6; margin: 34px 0 0; padding-top: 24px; border-top: 1px solid rgba(11,11,11,.16); max-width: 56ch; }
.about-note strong { color: #0b0b0b; font-weight: 700; }

.experience { border-top: 1px solid #aaa; margin: 0 6vw; padding: 34px 0 90px; }
.experience > p { color: var(--orange); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 28px; font-size: 11px; font-weight: 800; }
.brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 28px; display: grid; }
.brand-grid a {
  text-align: center; color: #77756f; background: 0 0; flex-direction: column; justify-content: space-between;
  align-items: center; gap: 14px; min-height: 154px; padding: 22px 14px 16px;
  transition: color .18s, transform .18s; display: flex;
}
.brand-grid a:hover { color: var(--orange); transform: translateY(-3px); }
.brand-mark { justify-content: center; align-items: center; width: 100%; height: 78px; display: flex; }
.brand-mark img { object-fit: contain; filter: grayscale(1); opacity: .48; max-width: 100%; max-height: 72px; transition: filter .18s, opacity .18s, transform .18s; }
.brand-grid a:hover .brand-mark img { opacity: 1; filter: grayscale(0); transform: scale(1.06); }
.brand-grid a > span:last-child { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; line-height: 1.25; }
/* Fallback while a brand has no logo file: the wordmark carries the cell. */
.brand-mark--text { font-family: var(--font-bebas); font-size: 21px; letter-spacing: .04em; line-height: 1.05; color: inherit; opacity: .62; transition: opacity .18s; }
.brand-grid a:hover .brand-mark--text { opacity: 1; }

/* ---------- News ---------- */
.news-home { background: #e5e2da; padding: 110px 6vw 120px; }
.news-feature { color: #fff; background: #0b0b0b; grid-template-columns: 1.15fr .85fr; min-height: 520px; display: grid; }
.news-feature-image { background-position: 50% center; background-size: cover; background-repeat: no-repeat; }
.news-feature-copy { flex-direction: column; justify-content: center; padding: clamp(42px, 6vw, 86px); display: flex; }
.news-feature-copy h3 { font-family: var(--font-bebas); text-transform: uppercase; margin: 12px 0 28px; font-size: clamp(48px, 5vw, 76px); font-weight: 400; line-height: .96; }
.news-feature-copy > p:not(.section-tag) { color: #c7c7c7; line-height: 1.65; }
.news-feature-copy > span { color: var(--orange); text-transform: uppercase; letter-spacing: .1em; align-items: center; gap: 12px; margin-top: 24px; font-size: 11px; font-weight: 800; display: flex; }

/* ---------- Contact ---------- */
.contact { background: var(--orange); grid-template-columns: .8fr 1.2fr; align-items: start; gap: 9vw; padding: 120px 6vw; display: grid; }
.contact .section-tag { color: #fff; }
.contact-intro > p:not(.section-tag) { max-width: 560px; margin: 32px 0; font-size: 18px; line-height: 1.6; }
.contact-intro > a { text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #0b0b0b; padding-bottom: 4px; font-size: 13px; font-weight: 850; }
.contact-form { background: #f0eee8; gap: 22px; padding: 42px; display: grid; }
.contact-form label { text-transform: uppercase; letter-spacing: .1em; gap: 9px; font-size: 10px; font-weight: 850; display: grid; }
.contact-form input, .contact-form select, .contact-form textarea {
  color: #0b0b0b; width: 100%; font: 500 15px/1.4 var(--font-inter), sans-serif; background: 0 0;
  border-width: 0 0 1px; border-style: none none solid; border-color: currentcolor currentcolor #85827a;
  border-image: none; border-radius: 0; outline: none; padding: 12px 2px;
}
.contact-form textarea { resize: vertical; border: 1px solid #85827a; padding: 14px; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--orange); box-shadow: 0 1px 0 var(--orange); }
.contact-form .button { cursor: pointer; border: 0; justify-self: start; }
.contact-form small { color: #68665f; line-height: 1.5; }
.form-row { grid-template-columns: 1fr 1fr; gap: 22px; display: grid; }
.form-trap { display: none !important; }
.form-status { font-size: 13px; line-height: 1.5; padding: 12px 14px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: rgba(255,106,19,.14); border-left: 3px solid var(--orange); }
.form-status.is-error { background: rgba(11,11,11,.07); border-left: 3px solid #0b0b0b; }

/* ---------- Footer ---------- */
footer {
  color: #aaa; text-transform: uppercase; letter-spacing: .1em; background: #0b0b0b;
  justify-content: space-between; padding: 32px 6vw; font-size: 11px; display: flex;
}
footer div { gap: 24px; display: flex; }
.footer-links { align-items: center; }
.footer-links a { place-items: center; display: grid; }
.footer-links a:hover { color: var(--orange); }

/* ---------- Interior pages ---------- */
.inner-header { color: #fff; background: #0b0b0b; grid-template-columns: 1fr auto 1fr; align-items: center; height: 86px; padding: 0 4.5vw; display: grid; }
.inner-header > a:nth-child(2) { text-transform: uppercase; letter-spacing: .1em; align-items: center; gap: 10px; font-size: 11px; display: flex; }
.inner-header .header-cta { justify-self: end; }
.story-hero { color: #fff; align-items: end; min-height: 650px; padding: 100px 6vw 80px; display: flex; background-position: 50% 42%; background-size: cover; background-repeat: no-repeat; position: relative; overflow: hidden; }
/* Video hero, as the preview's story page uses. */
.story-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.story-hero .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.22)); }
.story-hero > div { position: relative; z-index: 2; }
.story-hero > div { max-width: 1050px; }
.story-hero h1 { margin: 28px 0; font-size: clamp(70px, 9vw, 132px); }
.story-body { color: #3f3e39; max-width: 840px; margin: 0 auto; padding: 90px 28px 110px; font-size: 18px; line-height: 1.8; }
.story-body .story-intro { color: #111; font-size: 25px; line-height: 1.55; }
.story-body h2 { color: #0b0b0b; margin: 70px 0 22px; font-size: clamp(48px, 6vw, 76px); }
.story-body h3 { font-family: var(--font-bebas); text-transform: uppercase; color: #0b0b0b; margin: 46px 0 16px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; line-height: 1; }
.story-body blockquote { border-left: 4px solid var(--orange); font-family: var(--font-serif); color: #0b0b0b; margin: 70px 0; padding: 12px 0 12px 30px; font-size: 34px; font-style: italic; line-height: 1.35; }
.story-body .button { margin-top: 34px; }
.story-body img { height: auto; margin: 44px 0; }
.story-body a:not(.button) { color: var(--orange); border-bottom: 1px solid currentColor; }

/* Story/news listing built in the same language as the preview's sections. */
.story-list { padding: 90px 6vw 110px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 46px 32px; }
.story-card { display: flex; flex-direction: column; gap: 16px; }
.story-card-media { aspect-ratio: 3 / 2; overflow: hidden; background: #e5e2da; }
.story-card-media img { object-fit: cover; width: 100%; height: 100%; transition: transform .5s; }
.story-card:hover .story-card-media img { transform: scale(1.025); }
.story-card h3 { font-family: var(--font-bebas); text-transform: uppercase; font-size: 30px; font-weight: 400; line-height: 1; margin: 0; }
.story-card:hover h3 { color: var(--orange); }
.story-card p { color: #555; line-height: 1.6; margin: 0; }
.pagination { padding: 0 6vw 100px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { border: 1px solid #aaa; padding: 10px 16px; font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }

.notice-404 { padding: 160px 6vw 140px; text-align: center; }
.notice-404 h1 { font-size: clamp(90px, 18vw, 200px); color: var(--orange); margin: 0 0 8px; }
.notice-404 h2 { font-size: clamp(32px, 4vw, 56px); }

/* ---------- Dev environment ribbon ---------- */
.dev-ribbon {
  position: relative; z-index: 11; background: var(--orange); color: #080808; text-align: center;
  font-size: 10px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; padding: 7px 16px;
}

/* ---------- WordPress menu markup ---------- */
/* wp_nav_menu emits <li> wrappers; the preview uses bare anchors, so the
   list items are collapsed out of the box model entirely. */
.site-header nav > li,
.site-header nav ul,
.footer-links > li,
.footer-links ul { display: contents; list-style: none; margin: 0; padding: 0; }

/* Dev ribbon sits above the absolutely-positioned header. */
body.porrada-dev .site-header { top: 31px; }
body.porrada-dev.admin-bar .site-header { top: 63px; }

/* ---------- Accessibility ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--orange); color: #080808; padding: 12px 20px; font-weight: 800; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 6px 28px 24px 0; }
.alignright { float: right; margin: 6px 0 24px 28px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption.wp-element-caption { font-size: 13px; color: #77756f; margin-top: 10px; letter-spacing: 0; text-transform: none; }
.admin-bar .site-header { top: 32px; }
.admin-bar .dev-ribbon { margin-top: 32px; }

/* ===============================================================
   Preview breakpoint — values as written in the preview build.
   =============================================================== */
@media (max-width: 800px) {
  .hero-image { background-position: 78% 13%; }
  .site-header { grid-template-columns: 1fr auto; height: 72px; padding: 0 20px; }
  .site-header nav, .header-cta, .header-socials { display: none; }
  .menu { display: block; }
  .brand img { width: 94px; height: 54px; }
  .hero { min-height: 690px; padding: 0 24px 60px; }
  .hero h1 { font-size: clamp(62px, 19vw, 92px); }
  .lead { font-size: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .location { display: none; }
  .intro { grid-template-columns: 1fr; padding: 80px 24px 55px; }
  .intro > p { margin-top: 25px; }
  .service-grid { grid-template-columns: 1fr; padding: 0 24px 80px; }
  .service-grid article { border-right: 0; padding: 32px 10px; }
  .service-grid .service-icon { margin-bottom: 35px; }
  .service-grid article::before { left: 10px; }
  .service-grid h3, .service-grid p { min-height: auto; }
  .selected-work, .news-home { padding: 80px 24px; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-image { min-height: 360px; }
  .news-feature-copy { padding: 42px 28px; }
  .inner-header { grid-template-columns: 1fr auto; height: 72px; padding: 0 20px; }
  .inner-header > a:nth-child(2) { display: none; }
  .inner-header .header-cta { display: flex; }
  .story-hero { min-height: 620px; padding: 90px 24px 55px; }
  .story-body { padding: 70px 24px 85px; }
  .section-heading { display: block; }
  .section-heading > a { margin-top: 25px; }
  .section-heading__aside { margin-top: 25px; max-width: none; }
  .photo-grid { height: auto; display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .photo-grid figure { aspect-ratio: 4 / 3; }
  .photo-grid figcaption { padding: 22px; }
  .about { padding: 0; }
  .about-split { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .about-media { aspect-ratio: 4 / 3; }
  .about-body { padding: 42px 24px 10px; }
  .experience { margin: 0 24px; padding: 30px 0 70px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; gap: 50px; padding: 80px 24px; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 18px; padding: 32px 24px; }
  .story-list { padding: 70px 24px 85px; }
  .mobile-open .site-header nav {
    display: flex; position: absolute; inset: 72px 0 auto 0; flex-direction: column;
    background: #0b0b0b; border-bottom: 1px solid var(--line); padding: 8px 20px 22px; gap: 0;
  }
  .mobile-open .site-header nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
