/*
Theme Name: Golden Page Marketing
Theme URI: https://goldenpage.local/
Author: Golden Page
Author URI: https://goldenpage.local/
Description: A black and gold WordPress theme for Golden Page Marketing and Advertising, with sponsored advertising sections and a business directory submission form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: golden-page-marketing
*/

:root {
  --gp-black: #050403;
  --gp-ink: #19130a;
  --gp-gold: #d6a733;
  --gp-gold-bright: #f2ca63;
  --gp-gold-soft: #fff2c2;
  --gp-cream: #fffaf0;
  --gp-muted: #6e6149;
  --gp-line: rgba(214, 167, 51, 0.28);
  --gp-shadow: 0 20px 55px rgba(5, 4, 3, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--gp-ink);
  background: var(--gp-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 4, 3, 0.94);
  border-bottom: 1px solid var(--gp-line);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 78px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  display: grid;
  line-height: 1.05;
}

.brand-name span {
  color: var(--gp-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
}

.language-switcher {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(242, 202, 99, 0.34);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.language-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: var(--gp-gold-bright);
}

.language-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-option {
  display: inline-flex;
  min-width: 38px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.language-option:hover,
.language-option:focus {
  color: var(--gp-gold-bright);
}

.language-option.is-active {
  background: var(--gp-gold);
  color: var(--gp-black);
}

.main-nav {
  display: flex;
  gap: 18px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  order: 2;
}

.main-nav a {
  text-decoration: none;
  opacity: 0.84;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--gp-gold-bright);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 202, 99, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gp-gold-bright);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  transform: translateY(-7px);
}

.menu-toggle-lines::after {
  transform: translateY(7px);
}

.is-menu-open .menu-toggle-lines {
  background: transparent;
}

.is-menu-open .menu-toggle-lines::before {
  transform: rotate(45deg);
}

.is-menu-open .menu-toggle-lines::after {
  transform: rotate(-45deg);
}

.hero {
  color: #fff;
  background:
    linear-gradient(115deg, rgba(5, 4, 3, 0.98), rgba(25, 19, 10, 0.87) 48%, rgba(214, 167, 51, 0.46)),
    radial-gradient(circle at 80% 28%, rgba(242, 202, 99, 0.35), transparent 32%),
    var(--gp-black);
  overflow: hidden;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 64px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gp-gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
button.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  background: var(--gp-gold);
  color: var(--gp-black);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-logo-panel {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid rgba(242, 202, 99, 0.34);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--gp-shadow);
}

.hero-logo-panel img {
  width: min(300px, 78%);
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.55));
}

.section {
  padding: 84px 0;
}

.section.dark {
  background: var(--gp-black);
  color: #fff;
}

.section.gold {
  background: linear-gradient(135deg, var(--gp-gold), var(--gp-gold-bright));
}

.section-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p {
  margin: 16px 0 0;
  color: var(--gp-muted);
  font-size: 1.06rem;
}

.dark .section-header p {
  color: rgba(255, 255, 255, 0.74);
}

.service-grid,
.audience-grid,
.benefit-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.tile,
.feature,
.listing-preview {
  border: 1px solid rgba(5, 4, 3, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(5, 4, 3, 0.06);
}

.dark .tile {
  border-color: rgba(242, 202, 99, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.tile strong,
.feature h3,
.listing-preview h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.tile p,
.feature p,
.listing-preview p {
  margin: 0;
  color: var(--gp-muted);
}

.dark .tile p {
  color: rgba(255, 255, 255, 0.68);
}

.benefit-grid .tile {
  min-height: 118px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(145deg, #19130a, #050403);
  border-color: var(--gp-line);
  font-weight: 900;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.listing-preview {
  background: var(--gp-black);
  color: #fff;
  position: sticky;
  top: 112px;
}

.listing-preview h3 {
  color: var(--gp-gold-bright);
  font-size: 1.5rem;
}

.listing-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.listing-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.submission-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(5, 4, 3, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--gp-shadow);
}

.field,
.field.full {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
  color: var(--gp-ink);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(5, 4, 3, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--gp-ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gp-gold);
  outline: 3px solid rgba(214, 167, 51, 0.2);
}

.form-note {
  margin: 0;
  color: var(--gp-muted);
  font-size: 0.92rem;
}

.site-footer {
  background: var(--gp-black);
  color: rgba(255, 255, 255, 0.72);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-inner strong {
  color: var(--gp-gold-bright);
}

.directory-hero,
.profile-hero {
  background:
    linear-gradient(120deg, rgba(5, 4, 3, 0.98), rgba(25, 19, 10, 0.9)),
    var(--gp-black);
  color: #fff;
  padding: 86px 0 72px;
}

.directory-hero h1,
.profile-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.directory-hero p:not(.eyebrow),
.profile-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.directory-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 34px;
  padding: 18px;
  border: 1px solid rgba(5, 4, 3, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(5, 4, 3, 0.06);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.business-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(5, 4, 3, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(5, 4, 3, 0.06);
}

.business-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--gp-black);
}

.business-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.business-kicker {
  margin: 0;
  color: var(--gp-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.business-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.business-card h2 a,
.text-link {
  text-decoration: none;
}

.business-card h2 a:hover,
.text-link:hover {
  color: var(--gp-gold);
}

.business-card p {
  margin: 0;
  color: var(--gp-muted);
}

.compact-details,
.profile-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.compact-details div,
.profile-detail-list div {
  display: grid;
  gap: 2px;
}

.compact-details dt,
.profile-detail-list dt {
  color: var(--gp-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-details dd,
.profile-detail-list dd {
  margin: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.text-link {
  color: var(--gp-ink);
  font-weight: 900;
}

.pagination-wrap {
  margin-top: 34px;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(5, 4, 3, 0.14);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.pagination-wrap .current {
  background: var(--gp-black);
  color: #fff;
}

.empty-state {
  max-width: 560px;
  padding: 30px;
  border: 1px solid rgba(5, 4, 3, 0.1);
  border-radius: 8px;
  background: #fff;
}

.profile-hero-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.profile-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(242, 202, 99, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 34px;
  align-items: start;
}

.profile-main,
.detail-panel {
  border: 1px solid rgba(5, 4, 3, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.profile-content {
  color: var(--gp-muted);
  font-size: 1.05rem;
}

.profile-details {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 112px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 72px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    order: 5;
    padding: 8px 0 14px;
    border-top: 1px solid rgba(242, 202, 99, 0.22);
  }

  .is-menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    opacity: 1;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

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

  .hero-inner,
  .directory-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    gap: 28px;
    padding: 48px 0 58px;
  }

  .hero-logo-panel {
    min-height: 260px;
  }

  .service-grid,
  .audience-grid,
  .benefit-grid,
  .feature-grid,
  .business-grid,
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-preview {
    position: static;
  }

  .directory-filters,
  .profile-layout,
  .profile-hero-inner {
    grid-template-columns: 1fr;
  }

  .directory-filters {
    align-items: stretch;
  }

  .profile-details {
    position: static;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-inner {
    width: min(100% - 22px, 1120px);
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand img {
    width: 58px;
    height: 42px;
  }

  .brand-name {
    max-width: 180px;
    font-size: 0.95rem;
  }

  .brand-name span {
    font-size: 0.62rem;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switcher {
    min-height: 38px;
    padding: 3px;
  }

  .language-icon {
    display: none;
  }

  .language-option {
    min-width: 34px;
    min-height: 30px;
    font-size: 0.72rem;
  }

  .section {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 2.65rem;
    line-height: 0.98;
  }

  .hero-copy,
  .directory-hero p:not(.eyebrow),
  .profile-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button.button {
    width: 100%;
  }

  .hero-logo-panel {
    min-height: 210px;
  }

  .directory-hero,
  .profile-hero {
    padding: 52px 0 46px;
  }

  .directory-hero h1,
  .profile-hero h1 {
    font-size: 2.45rem;
  }

  .submission-form,
  .directory-filters,
  .profile-main,
  .detail-panel,
  .tile,
  .feature,
  .listing-preview {
    padding: 18px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .service-grid,
  .audience-grid,
  .benefit-grid,
  .feature-grid,
  .submission-form,
  .business-grid,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .business-card-body {
    padding: 18px;
  }

  .profile-logo {
    width: 148px;
  }
}

@media (max-width: 380px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-inner {
    width: min(100% - 18px, 1120px);
  }

  .brand-name {
    max-width: 138px;
    font-size: 0.84rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .language-option {
    min-width: 31px;
  }

  .hero h1,
  .directory-hero h1,
  .profile-hero h1 {
    font-size: 2.18rem;
  }
}
