/*
Theme Name: Reel McCoy v1.1
Theme URI: https://reelmccoy.org.au/
Author: Reel McCoy Film Group
Description: A Gutenberg-ready theme for the Reel McCoy Film Group.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.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: reelmc-v1
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, accessibility-ready
*/

:root {
  --rmc-yellow: #f6cf18;
  --rmc-yellow-deep: #ddb500;
  --rmc-black: #0b0c0d;
  --rmc-charcoal: #1a1c1f;
  --rmc-grey: #666a70;
  --rmc-light-grey: #e7e5dd;
  --rmc-cream: #f8f6ef;
  --rmc-white: #fff;
  --rmc-radius: 18px;
  --rmc-shadow: 0 18px 50px rgba(11, 12, 13, 0.12);
  --rmc-content: min(1600px, 94vw);
  --rmc-gutter: clamp(1.1rem, 3vw, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rmc-cream);
  color: var(--rmc-black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--rmc-yellow-deep);
}

img {
  height: auto;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--rmc-yellow);
  outline-offset: 4px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: var(--rmc-white);
  color: var(--rmc-black);
  display: block;
  font-size: 1rem;
  height: auto;
  left: 1rem;
  padding: 0.8rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.rmc-container,
.site-footer__inner {
  margin-inline: auto;
  max-width: var(--rmc-content);
  padding-inline: clamp(1.1rem, 4vw, 2.25rem);
}

.entry-content > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote) {
  margin-inline: auto;
  max-width: 1100px;
  padding-inline: var(--rmc-gutter);
}

.site-header {
  background: var(--rmc-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--rmc-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header::after {
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(11, 12, 13, 0.9) 22px 34px);
  bottom: -6px;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--rmc-content);
  min-height: 84px;
  padding: 0.65rem clamp(1.1rem, 4vw, 2.25rem);
}

.site-branding {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: 0.85rem;
  min-width: 0;
  text-decoration: none;
}

.site-branding img,
.custom-logo {
  background: var(--rmc-yellow);
  border-radius: 9px;
  display: block;
  height: 58px;
  object-fit: contain;
  padding: 4px;
  width: 78px;
}

.site-branding__text {
  display: grid;
  line-height: 1.1;
}

.site-title {
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.site-tagline {
  color: #b9bbc0;
  font-size: 0.72rem;
  margin-top: 0.28rem;
}

.primary-menu {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  border-radius: 999px;
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.62rem 0.85rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--rmc-yellow);
  color: var(--rmc-black);
  transform: translateY(-2px);
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--rmc-white);
  cursor: pointer;
  display: none;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  display: block;
  height: 2px;
  position: relative;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 20px;
}

.menu-toggle__bars::before {
  position: absolute;
  top: -6px;
}

.menu-toggle__bars::after {
  position: absolute;
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-main {
  min-height: 60vh;
}

.page-header {
  background: var(--rmc-charcoal);
  color: var(--rmc-white);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.page-header::before {
  background: radial-gradient(circle, var(--rmc-yellow) 0 4px, transparent 5px);
  background-size: 28px 28px;
  content: "";
  inset: 0 0 0 65%;
  opacity: 0.13;
  position: absolute;
  transform: rotate(-8deg) scale(1.4);
}

.page-title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0;
  position: relative;
}

.entry-content {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.entry-content > * {
  margin-block-start: 1.5rem;
}

.entry-content > :first-child {
  margin-block-start: 0;
}

.entry-content .alignwide {
  max-width: var(--rmc-content);
}

.entry-content .alignfull {
  margin-inline: 0;
  max-width: none;
  width: 100%;
}

.rmc-section {
  padding-inline: var(--rmc-gutter);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.rmc-section--dark {
  background: var(--rmc-black);
  color: var(--rmc-white);
}

.rmc-section--grey {
  background: #eceae3;
}

.rmc-hero {
  background-color: var(--rmc-yellow);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 48%), repeating-linear-gradient(90deg, transparent 0 62px, rgba(11, 12, 13, 0.035) 62px 64px);
  overflow: hidden;
  padding-inline: var(--rmc-gutter);
  padding-block: clamp(5rem, 12vw, 10rem);
  position: relative;
}

.rmc-hero::after {
  border: clamp(18px, 3vw, 36px) solid var(--rmc-black);
  border-left: 0;
  border-right: 0;
  content: "";
  height: 72%;
  opacity: 0.06;
  pointer-events: none;
  position: absolute;
  right: -15%;
  top: 14%;
  transform: rotate(-10deg);
  width: 55%;
}

.rmc-kicker {
  align-items: center;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rmc-kicker::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 9px;
  width: 9px;
}

.rmc-display-title {
  font-size: clamp(3.1rem, 9.2vw, 7.8rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
  margin: 1.2rem 0 1.5rem;
  max-width: 10ch;
}

.rmc-lede {
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  max-width: 690px;
}

.rmc-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.wp-block-button__link,
.rmc-button {
  background: var(--rmc-black);
  border: 2px solid var(--rmc-black);
  border-radius: 999px;
  color: var(--rmc-white);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.wp-block-button__link:hover,
.rmc-button:hover {
  box-shadow: 0 9px 0 rgba(11, 12, 13, 0.16);
  transform: translateY(-4px);
}

.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--rmc-black);
}

.rmc-section--dark .is-style-outline > .wp-block-button__link {
  border-color: var(--rmc-yellow);
  color: var(--rmc-yellow);
}

.rmc-section-title {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.rmc-section-intro {
  color: var(--rmc-grey);
  font-size: 1.1rem;
  max-width: 900px;
}

.rmc-section--dark .rmc-section-intro {
  color: #c4c5c7;
}

.rmc-card-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.rmc-card,
.rmc-price-card,
.rmc-info-card {
  background: var(--rmc-white);
  border: 1px solid rgba(11, 12, 13, 0.1);
  border-radius: var(--rmc-radius);
  box-shadow: 0 6px 24px rgba(11, 12, 13, 0.06);
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rmc-card:hover,
.rmc-price-card:hover,
.rmc-info-card:hover {
  border-color: var(--rmc-yellow-deep);
  box-shadow: var(--rmc-shadow);
  transform: translateY(-7px);
}

.rmc-card h3,
.rmc-price-card h3,
.rmc-info-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.rmc-card p:last-child,
.rmc-info-card p:last-child {
  margin-bottom: 0;
}

.rmc-price-card {
  border-top: 7px solid var(--rmc-yellow);
}

.rmc-price {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0.6rem 0;
}

.rmc-highlight {
  background: var(--rmc-yellow);
  border-radius: var(--rmc-radius);
  color: var(--rmc-black);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.rmc-highlight p:last-child {
  margin-bottom: 0;
}

.rmc-two-column {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.rmc-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rmc-facts li {
  border-top: 1px solid rgba(11, 12, 13, 0.16);
  padding: 1rem 0 1rem 2rem;
  position: relative;
}

.rmc-facts li::before {
  background: var(--rmc-yellow);
  border-radius: 50%;
  content: "";
  height: 11px;
  left: 0;
  position: absolute;
  top: 1.55rem;
  width: 11px;
}

.rmc-contact-form {
  background: var(--rmc-white);
  border-radius: var(--rmc-radius);
  box-shadow: var(--rmc-shadow);
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2.5rem);
}

.rmc-field {
  display: grid;
  gap: 0.35rem;
}

.rmc-field label {
  font-size: 0.82rem;
  font-weight: 800;
}

.rmc-field input,
.rmc-field textarea,
.forminator-ui input,
.forminator-ui textarea,
.forminator-ui select {
  background: var(--rmc-cream) !important;
  border: 1px solid #b9b7b0 !important;
  border-radius: 10px !important;
  color: var(--rmc-black) !important;
  min-height: 48px;
  padding: 0.7rem 0.85rem !important;
  width: 100%;
}

.rmc-field textarea {
  min-height: 150px;
  resize: vertical;
}

.rmc-contact-form button,
.forminator-ui .forminator-button-submit {
  background: var(--rmc-black) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--rmc-white) !important;
  cursor: pointer;
  font-weight: 800 !important;
  justify-self: start;
  padding: 0.8rem 1.35rem !important;
}

.rmc-form-note {
  color: var(--rmc-grey);
  font-size: 0.8rem;
  margin: 0;
}

.rmc-plugin-prompt {
  background: #fff8d4;
  border: 1px solid var(--rmc-yellow-deep);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.site-footer {
  background: var(--rmc-black);
  color: #c8c9ca;
  padding: 4rem 0 2rem;
}

.site-footer__top {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 0.7fr;
}

.site-footer h2 {
  color: var(--rmc-white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.8rem;
}

.footer-menu {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: var(--rmc-white);
  font-weight: 700;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.2rem;
}

@media (max-width: 900px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .primary-navigation {
    background: var(--rmc-black);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: none;
    inset: 84px 0 auto;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 1rem 1.1rem 1.5rem;
    position: fixed;
  }

  .admin-bar .primary-navigation {
    top: 130px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-menu a {
    font-size: 1.05rem;
    padding: 0.9rem 1rem;
  }

  .rmc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmc-two-column,
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-tagline {
    display: none;
  }

  .site-branding img,
  .custom-logo {
    height: 50px;
    width: 68px;
  }

  .site-header__inner {
    min-height: 74px;
  }

  .primary-navigation {
    inset-block-start: 74px;
  }

  .admin-bar .primary-navigation {
    top: 120px;
  }

  .rmc-card-grid {
    grid-template-columns: 1fr;
  }

  .rmc-display-title {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .rmc-button-row .wp-block-button,
  .rmc-button-row .wp-block-button__link {
    width: 100%;
  }
}

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