/*
Theme Name: Moe Nawaz Child
Theme URI: https://moenawaz.com
Template: moe-nawaz
Author: Duke Brothers Ltd
Description: Child theme for the Moe Nawaz theme. Adds editable page sections (blocks) built with Secure Custom Fields / ACF Pro, a one-click setup screen, enquiry forms that save and email submissions, Insight categories, SEO fields and responsive refinements. Keep the parent "Moe Nawaz" theme installed — this child theme relies on it.
Version: 1.0.9
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: moe-nawaz-child
*/

/* ==========================================================================
   Global refinements on top of the parent theme.
   Section-specific styles live in assets/css/blocks.css.
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; }

/* One side-gutter value for every container (the parent's hero lost its
   side padding, which pushed the hero text 40px out of line). */
:root { --gutter: 40px; }
.wrap,
.wrap.hero-photo-content { padding-left: var(--gutter); padding-right: var(--gutter); }
body { overflow-x: hidden; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Header: keep the logo, menu and button on one line until there's room. */
.nav-row { gap: 28px; }
nav.main-nav ul { gap: clamp(18px, 2.2vw, 34px); }
nav.main-nav a { white-space: nowrap; }
.menu-toggle { min-width: 44px; min-height: 44px; }

/* Buttons: pair sits on one line, wraps cleanly on small screens. */
.hero-actions,
.mnc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero-actions .btn-secondary,
.mnc-actions .btn-secondary { margin-left: 0; }
.btn-primary { text-align: center; }
.btn-secondary { transition: color .15s ease, border-color .15s ease; }
.btn-secondary:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* Official logo image (replaces the parent's text wordmark). */
.site-header .nav-row > a:first-child,
.landing-header a { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }
.mnc-logo { display: block; width: auto; max-width: none; }
.mnc-logo--header { height: 50px; }
.mnc-logo--footer { height: 78px; margin-bottom: 22px; }
.landing-header .mnc-logo--header { margin: 0 auto; }
.landing-header a { justify-content: center; width: 100%; }
.mnc-cta-mark .mnc-logo { height: 40px; }
.mnc-insight-card__ph .mnc-logo { height: 64px; }

/* Insight rows are now whole-row links. */
a.insight-row { color: inherit; }
.insight-row .read {
  font-size: 0.88rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  justify-self: end;
}

/* Footer columns. */
footer li a { transition: color .15s ease; }

/* Standard text pages (legal pages etc.). */
.page-content-inner h3 { font-size: 1.25rem; margin: 32px 0 14px; }
.page-content-inner li { margin-bottom: 8px; }
.page-content-inner strong { color: var(--ink); font-weight: 600; }

/* Links styled as buttons inside article/page text. */
.page-content-inner a.btn-primary,
.insight-body-inner a.btn-primary { color: var(--paper); border-bottom: 0; }

/* ==========================================================================
   RESPONSIVE — extends the parent theme's single 860px breakpoint.
   ========================================================================== */

/* Small laptops / large tablets: switch to the menu button before the
   header gets crowded. */
@media (max-width: 1120px) {
  nav.main-nav,
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav .wrap { padding-bottom: 6px; }
  .mobile-nav ul { gap: 0; }
  .mobile-nav li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .mobile-nav li:last-child a { border-bottom: 0; }
  .mobile-nav::after {
    content: none;
  }
}

@media (max-width: 1024px) {
:root { --gutter: 32px; }
  .routes,
  .in-room,
  .editorial,
  .insights,
  .cta-band { padding: 72px 0; }
  .editorial-grid { gap: 48px; }
  .bio-grid { gap: 40px; }
  .stat { padding: 0 26px; }
}

@media (max-width: 860px) {
:root { --gutter: 22px; }
  .nav-row { padding-top: 14px; padding-bottom: 14px; }
  .mnc-logo--header { height: 42px; }
  .mnc-logo--footer { height: 64px; }
  .routes,
  .in-room,
  .editorial,
  .insights,
  .cta-band { padding: 60px 0; }
  .bio-strip,
  .pullquote { padding: 54px 0; }
  .stats { padding: 44px 0; }
  .hero-photo { min-height: 0; }
  .wrap.hero-photo-content { padding-top: 140px; padding-bottom: 48px; }
  .route { aspect-ratio: 4 / 3; }
  .routes-row { gap: 16px; }
  .room-grid { gap: 28px; }
  .room-shot .frame { aspect-ratio: 4 / 3; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { max-width: none; }
  .insight-row { padding: 20px 0; }
  .insight-row .read { justify-self: start; }
  .page-hero { padding: 50px 0 36px; }
  .page-content { padding: 50px 0; }
  .footer-grid { gap: 32px 24px; margin-bottom: 36px; }
  .pullquote .mark { font-size: 4rem; }
  .stat,
  .stat:first-child { padding: 20px 0 0; }
  .stat:first-child { padding-top: 0; }
  /* Keep the portrait visible on narrow screens: face at the top, words below. */
  .hero-photo { background-position: 90% 0; background-size: 250% auto; background-repeat: no-repeat; background-color: var(--paper); }
  .hero-photo::before { background: linear-gradient(180deg, rgba(24,28,30,0.05) 0%, rgba(24,28,30,0.3) 40%, rgba(24,28,30,0.97) 62%, rgba(24,28,30,1) 100%); }
  .wrap.hero-photo-content { padding-top: 92vw; }
}

@media (max-width: 560px) {
:root { --gutter: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mono-text { font-size: 1.3rem; }
  .word-nawaz { font-size: 0.66rem; letter-spacing: 0.14em; }
  h1.headline { font-size: 2.05rem; }
  .hero-actions .btn-primary,
  .mnc-actions .btn-primary { width: 100%; }
  .btn-primary { padding: 14px 18px; }
  .ticker-track { font-size: 0.78rem; }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea { font-size: 16px; } /* stops iPhone zooming into fields */
}

/* --------------------------------------------------------------------------
 * Cookie consent banner
 * ----------------------------------------------------------------------- */
.mnc-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	display: flex;
	justify-content: center;
	pointer-events: none;
}
.mnc-consent[hidden] { display: none; }
.mnc-consent__inner {
	pointer-events: auto;
	max-width: 880px;
	width: 100%;
	background: #202527;
	color: #F3EFE6;
	border: 1px solid #2E3234;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 22px;
}
.mnc-consent__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #D9D5CC;
	flex: 1;
}
.mnc-consent__text a { color: #F3EFE6; text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.mnc-consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.mnc-consent__btn {
	font: inherit;
	font-size: 0.88rem;
	padding: 10px 20px;
	cursor: pointer;
	border: 1px solid #F3EFE6;
	background: transparent;
	color: #F3EFE6;
	transition: background 0.2s, color 0.2s;
}
.mnc-consent__btn--accept { background: #F3EFE6; color: #181C1E; }
.mnc-consent__btn:hover { background: #F3EFE6; color: #181C1E; }
.mnc-consent__btn--accept:hover { background: transparent; color: #F3EFE6; }
.mnc-consent__btn:focus-visible { outline: 2px solid #C9A36A; outline-offset: 2px; }
@media (max-width: 640px) {
	.mnc-consent { left: 0; right: 0; bottom: 0; }
	.mnc-consent__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-left: 0; border-right: 0; }
	.mnc-consent__actions { gap: 10px; }
	.mnc-consent__btn { flex: 1; padding: 12px; }
}
