/*
Theme Name: OHM 2026
Theme URI: https://openhousemacau.com/
Description: Open House Macau 2026 child theme for Hello Elementor — “Architecture Dialogues” design tokens (orange / peach / black, speech-bubble motif), Proxima Nova (self-hosted or Adobe Fonts), and helper classes for Elementor. Pair with the OHM Programme plugin.
Author: CURB – Center for Architecture and Urbanism
Template: hello-elementor
Version: 1.6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ohm-2026
*/

/* ===== Type: Proxima Nova (licensed — files go in /fonts, see fonts/README.txt; or Adobe Fonts) ===== */
@font-face { font-family: "Proxima Nova"; font-style: normal; font-weight: 400; font-display: swap; src: local("Proxima Nova Regular"), local("ProximaNova-Regular"), url("fonts/proxima-nova-400.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-style: italic; font-weight: 400; font-display: swap; src: local("Proxima Nova Italic"), local("ProximaNova-RegularIt"), url("fonts/proxima-nova-400i.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-style: normal; font-weight: 600; font-display: swap; src: local("Proxima Nova Semibold"), local("ProximaNova-Semibold"), url("fonts/proxima-nova-600.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-style: normal; font-weight: 700; font-display: swap; src: local("Proxima Nova Bold"), local("ProximaNova-Bold"), url("fonts/proxima-nova-700.woff2") format("woff2"); }

/* ===== Design tokens — the single source for colours and type ===== */
:root {
	--ohm-orange: #F36F21;      /* action, pins, highlights (large text / shapes only on white) */
	--ohm-orange-dark: #C9520F; /* orange text that needs to pass contrast */
	--ohm-peach: #FCE9DE;       /* panels, quotes, chips */
	--ohm-black: #141414;       /* text, navigation, OHM Plus */
	--ohm-white: #FFFFFF;
	--ohm-grey: #6B6B6B;
	--ohm-line: #E7E2DE;
	--ohm-radius: 0;          /* OHM 2026: square corners on images, buttons, cards */
	--ohm-font: "Proxima Nova", "proxima-nova", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	--ohm-font-zh: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

/* ===== Base ===== */
body { font-family: var(--ohm-font); color: var(--ohm-black); background: var(--ohm-white); -webkit-font-smoothing: antialiased; }
body.ohm-lang-zh { font-family: var(--ohm-font-zh); }
a { color: var(--ohm-black); }
a:hover, a:focus { color: var(--ohm-orange-dark); }
h1, h2, h3, h4 { font-family: var(--ohm-font); font-weight: 700; line-height: 1.12; color: var(--ohm-black); }
::selection { background: var(--ohm-orange); color: #fff; }
:focus-visible { outline: 3px solid var(--ohm-orange); outline-offset: 2px; }
.site-main, .page-content { font-size: 1.02rem; line-height: 1.65; }

/* Hello's default container on programme pages — slightly wider */
body.single-ohm_building .site-main,
body.single-ohm_event .site-main,
body.single-ohm_itinerary .site-main { max-width: 1240px; padding: 1.5rem 16px 4rem; }

/* ===== Helper classes for Elementor (Advanced → CSS Classes) ===== */

/* Bilingual heading: put EN in the heading and add a <span class="zh"> for Chinese, or use two headings. */
.ohm-bilingual .zh, .ohm-zh { display: block; font-family: var(--ohm-font-zh); font-weight: 600; font-size: .62em; margin-top: .25em; }

/* Speech bubble — on a Heading or Text widget */
.ohm-speech .elementor-heading-title, .ohm-speech .elementor-widget-container > p, .ohm-speech.ohm-speech--inline {
	position: relative; display: inline-block; padding: .55em 1.1em; border-radius: 0; background: var(--ohm-orange); color: #fff;
}
.ohm-speech .elementor-heading-title::after, .ohm-speech .elementor-widget-container > p::after {
	content: ""; position: absolute; left: 1.1em; bottom: -.55em; border-left: .7em solid transparent; border-right: .3em solid transparent; border-top: .7em solid var(--ohm-orange);
}
.ohm-speech--black .elementor-heading-title { background: var(--ohm-black); }
.ohm-speech--black .elementor-heading-title::after { border-top-color: var(--ohm-black); }
.ohm-speech--peach .elementor-heading-title { background: var(--ohm-peach); color: var(--ohm-black); }
.ohm-speech--peach .elementor-heading-title::after { border-top-color: var(--ohm-peach); }

/* Outlined callout label with a tail — the “Architecture Dialogues 與建築的對話” box on the kit cover */
.ohm-callout .elementor-heading-title, .ohm-callout .elementor-widget-container > p {
	position: relative; display: inline-block; padding: .6em 1em; border: 2px solid currentColor; background: transparent;
}
.ohm-callout .elementor-heading-title::after {
	content: ""; position: absolute; left: 1.2em; bottom: -12px; width: 14px; height: 14px; background: inherit;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: skewX(30deg) rotate(45deg); background: var(--ohm-callout-bg, #fff);
}

/* Orange / peach / black sections */
.ohm-section-orange { background: var(--ohm-orange); color: #fff; }
.ohm-section-orange h1, .ohm-section-orange h2, .ohm-section-orange h3, .ohm-section-orange a { color: #fff; }
.ohm-section-peach { background: var(--ohm-peach); --ohm-callout-bg: var(--ohm-peach); }
.ohm-section-black { background: var(--ohm-black); color: #fff; }
.ohm-section-black h1, .ohm-section-black h2, .ohm-section-black h3, .ohm-section-black a { color: #fff; }

/* Pill buttons everywhere */
.elementor-button { border-radius: 0; font-family: var(--ohm-font); font-weight: 600; }
.ohm-button-outline .elementor-button { background: transparent; color: var(--ohm-black); border: 1.5px solid var(--ohm-black); }
.ohm-button-outline .elementor-button:hover { background: var(--ohm-black); color: #fff; }

/* Images with the OHM rounded corner */
.ohm-rounded img { border-radius: var(--ohm-radius); }

/* Logo wall (Partners & Sponsors) */
.ohm-logos .elementor-image img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.ohm-logos .elementor-image img:hover { filter: none; opacity: 1; }

/* Sticky header shadow when Elementor's sticky is on */
.elementor-sticky--effects { box-shadow: 0 2px 16px rgba(0, 0, 0, .08); }

/* Mobile: 16px gutters */
@media (max-width: 767px) {
	.site-main { padding-left: 16px; padding-right: 16px; }
}

/* ===== v1.2 — closer to the OHM 2026 identity ===== */

/* Everything square: images, buttons, inputs, Elementor widgets */
.elementor-button, .elementor-field-group .elementor-field, .elementor-widget-image img,
.elementor-image-box-img img, .elementor-widget-image-carousel img, input, select, textarea, button { border-radius: 0 !important; }

/* Orange header (Theme Builder header section: add class ohm-header-orange) */
.ohm-header-orange { background: var(--ohm-orange); color: var(--ohm-black); }
.ohm-header-orange .elementor-nav-menu--main .elementor-item { color: var(--ohm-black); font-weight: 700; }
.ohm-header-orange .elementor-nav-menu--main .elementor-item:hover,
.ohm-header-orange .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--ohm-white); }
.ohm-header-orange .elementor-nav-menu--dropdown { background: var(--ohm-black); }
.ohm-header-orange .elementor-nav-menu--dropdown a { color: var(--ohm-white) !important; }
.ohm-header-orange .ohm-planlink, .ohm-header-orange .ohm-lang a { color: var(--ohm-black); }

/* Page title band: orange, title in a white dialogue box (add class ohm-title-band to the section) */
.ohm-title-band { background: var(--ohm-orange); }
.ohm-title-band .elementor-heading-title { position: relative; display: inline-block; background: var(--ohm-white); color: var(--ohm-black); padding: .3em .55em; }
.ohm-title-band .elementor-heading-title::after { content: ""; position: absolute; left: .55em; bottom: -.45em; border-left: .5em solid transparent; border-top: .5em solid var(--ohm-white); }

/* Dialogue box variants (Heading / Text widget → CSS class) */
.ohm-box .elementor-heading-title, .ohm-box .elementor-widget-container > p {
	position: relative; display: inline-block; padding: .55em .9em; background: var(--ohm-black); color: var(--ohm-white);
}
.ohm-box .elementor-heading-title::after, .ohm-box .elementor-widget-container > p::after {
	content: ""; position: absolute; left: .9em; bottom: -.6em; border-left: .6em solid transparent; border-top: .6em solid var(--ohm-black);
}
.ohm-box--white .elementor-heading-title, .ohm-box--white .elementor-widget-container > p { background: var(--ohm-white); color: var(--ohm-black); }
.ohm-box--white .elementor-heading-title::after, .ohm-box--white .elementor-widget-container > p::after { border-top-color: var(--ohm-white); }
.ohm-box--outline .elementor-heading-title, .ohm-box--outline .elementor-widget-container > p { background: transparent; color: currentColor; border: 2px solid currentColor; }

/* ==========================================================================
   v1.3 — Header menu: visible on desktop, laptop and tablet; on phones the
   menu button is the circular "O" of the Open House logo.
   Elementor Nav Menu widget: Layout → Breakpoint = Mobile (< 768px),
   Toggle Button = Hamburger, CSS class on the widget = ohm-nav.
   To use the real logo, replace assets/ohm-menu-o.svg (one-colour SVG).
   ========================================================================== */
.ohm-nav .elementor-menu-toggle {
	width: 46px; height: 46px; padding: 0; border: 0; border-radius: 0;
	background: transparent !important; position: relative; cursor: pointer;
}
.ohm-nav .elementor-menu-toggle > * { opacity: 0; } /* hide Elementor's hamburger icons, keep them for screen readers */
.ohm-nav .elementor-menu-toggle::before {
	content: ""; position: absolute; inset: 3px;
	background-color: var(--ohm-white);
	-webkit-mask: url("assets/ohm-menu-o.svg") center / contain no-repeat;
	        mask: url("assets/ohm-menu-o.svg") center / contain no-repeat;
	transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .2s;
}
.ohm-nav .elementor-menu-toggle:hover::before { transform: scale(1.08); }
.ohm-nav .elementor-menu-toggle.elementor-active::before { background-color: var(--ohm-black); transform: rotate(90deg) scale(.86); }
.ohm-nav .elementor-menu-toggle:focus-visible { outline: 2px solid var(--ohm-black); outline-offset: 2px; }
/* phone dropdown: full width black panel, square, large tap targets */
.ohm-nav .elementor-nav-menu--dropdown { background: var(--ohm-black); border-radius: 0; }
.ohm-nav .elementor-nav-menu--dropdown a { color: var(--ohm-white) !important; font-weight: 700; padding: 14px 20px !important; border-bottom: 1px solid rgba(255,255,255,.15); }
.ohm-nav .elementor-nav-menu--dropdown a:hover, .ohm-nav .elementor-nav-menu--dropdown a.elementor-item-active { background: var(--ohm-orange) !important; color: var(--ohm-black) !important; }
/* tablet (768–1024): menu still visible, slightly tighter */
@media (min-width: 768px) and (max-width: 1024px) {
	.ohm-nav .elementor-nav-menu--main .elementor-item { padding-left: 10px !important; padding-right: 10px !important; font-size: 15px; }
}

/* ==========================================================================
   v1.4 — after the S2 home layout (header, home intro, footer)
   ========================================================================== */
/* Header row 1: black strip with the CURB logo (white, 22 px high). Class on the container: ohm-topbar-black */
.ohm-topbar-black { background: var(--ohm-black); min-height: 44px; }
.ohm-topbar-black img { height: 22px; width: auto; }
/* Header row 2 (class ohm-header-orange): OHM mark left · menu centred · ♥ + language right */
.ohm-header-orange .elementor-nav-menu--main .elementor-item { color: var(--ohm-white); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; font-size: 15px; }
.ohm-header-orange .elementor-nav-menu--main .elementor-item:hover,
.ohm-header-orange .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--ohm-black); }
.ohm-header-orange .elementor-nav-menu--main .elementor-item::after { background-color: var(--ohm-black) !important; height: 2px !important; }
.ohm-header-orange .ohm-planlink { background: none; border: 0; color: var(--ohm-white); padding: 0; font-size: 1.2rem; }
.ohm-header-orange .ohm-planlink:hover { color: var(--ohm-black); }
/* Home intro paragraph: large orange text. Class on the Text Editor widget: ohm-intro */
.ohm-intro, .ohm-intro p { color: var(--ohm-orange); font-size: clamp(1.3rem, 2.2vw, 1.72rem); line-height: 1.32; font-weight: 600; }
/* Section headings in the home layout: regular weight, large. Class: ohm-h-light */
.ohm-h-light .elementor-heading-title { font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
/* Footer: class ohm-footer on the footer's outer container */
.ohm-footer { background: #110906; color: var(--ohm-white); }
.ohm-footer a { color: var(--ohm-white); }
.ohm-footer a:hover { color: var(--ohm-orange); }
.ohm-footer-label .elementor-heading-title { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ohm-white); }
.ohm-footer .elementor-field-group input { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--ohm-white) !important; border-radius: 0 !important; color: var(--ohm-white) !important; font-size: 1.2rem; }
.ohm-footer .elementor-field-group input::placeholder { color: rgba(255,255,255,.85); }
.ohm-footer .elementor-button { background: var(--ohm-white) !important; color: var(--ohm-black) !important; border-radius: 0 !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; font-size: 13px; }
.ohm-footer .elementor-button:hover { background: var(--ohm-orange) !important; }

/* ==========================================================================
   v1.5 — About page: team grid (container class ohm-team, Image Box widgets)
   ========================================================================== */
.ohm-team { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
.ohm-team .elementor-image-box-wrapper { text-align: left !important; }
.ohm-team .elementor-image-box-img { width: 100% !important; margin: 0 0 .9rem !important; }
.ohm-team .elementor-image-box-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0 !important; filter: grayscale(1); transition: filter .3s ease; }
.ohm-team .elementor-image-box-wrapper:hover img { filter: none; }
.ohm-team .elementor-image-box-title { margin: 0 0 .2rem; font-size: 1.1rem; font-weight: 700; }
.ohm-team .elementor-image-box-description { font-size: .92rem; line-height: 1.35; color: #444; }
.ohm-team-group .elementor-heading-title { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ohm-orange); }
@media (max-width: 1024px) { .ohm-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ohm-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; } }
