/*
Theme Name: Hong Law
Theme URI: https://honglawoffices.com
Author: Law Offices of Jayan Hong
Description: A clean, contemporary informational theme for the Law Offices of Jayan Hong. Three looks (Indigo, Light, Classic) are available under Appearance > Customize > Firm details.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hong-law
*/

/* ------------------------------------------------------------------
   Fonts (bundled with the theme; no outside requests)
------------------------------------------------------------------- */
@font-face {
	font-family: "Schibsted Grotesk";
	src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

/* ------------------------------------------------------------------
   Tokens. The colors come from the firm's logo: indigo #404275,
   deeper indigo #373660 and the grey #C4C4C4 of the column mark.
------------------------------------------------------------------- */
:root {
	--indigo: #404275;
	--indigo-deep: #2c2c52;
	--grey: #c4c4c4;
	--paper: #ffffff;
	--tint: #f1f2f7;
	--ink: #23233a;
	--muted: #5d5f78;
	--rule: #d9dae5;

	--sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	/* Per-look settings; overridden by the style classes below. */
	--font-head: var(--sans);
	--font-body: var(--serif);
	--head-weight: 600;
	--head-tracking: -0.02em;
	--hero-bg: var(--indigo-deep);
	--hero-fg: #ffffff;
	--hero-muted: #cfd0e6;
	--hero-rule: rgba(255, 255, 255, 0.22);
	--band-bg: var(--indigo);
	--radius: 4px;
}

/* Look 1: Indigo (default) uses the values above. */

/* Look 2: Light */
.style-light {
	--font-body: var(--sans);
	--hero-bg: var(--tint);
	--hero-fg: var(--indigo-deep);
	--hero-muted: var(--muted);
	--hero-rule: var(--rule);
	--band-bg: var(--indigo-deep);
	--radius: 10px;
}

/* Look 3: Classic */
.style-classic {
	--font-head: var(--serif);
	--font-body: var(--serif);
	--head-weight: 500;
	--head-tracking: -0.012em;
	--tint: #f4f3f0;
	--rule: #dcdad4;
	--hero-bg: #f4f3f0;
	--hero-fg: var(--indigo-deep);
	--hero-muted: #55566b;
	--hero-rule: var(--grey);
	--band-bg: var(--indigo-deep);
	--radius: 0px;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.style-light {
	font-size: 1.0625rem;
	line-height: 1.6;
}

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

a {
	color: var(--indigo);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--indigo-deep);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid #8f93d6;
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	letter-spacing: var(--head-tracking);
	line-height: 1.12;
	color: var(--indigo-deep);
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}

h3 {
	font-size: 1.3rem;
}

p {
	margin: 0 0 1.1em;
}

.wrap {
	width: min(100% - 2.5rem, 1140px);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--indigo-deep);
	color: #fff;
	padding: 0.6rem 1rem;
	z-index: 10;
}

.skip-link:focus {
	left: 0;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 0.9rem;
	flex-wrap: wrap;
}

.brand {
	display: block;
	line-height: 0;
}

.brand__logo {
	display: block;
	height: 66px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 2rem;
	font-family: var(--sans);
	font-size: 1rem;
}

.nav__list {
	display: flex;
	gap: 1.9rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	padding-block: 0.4rem;
	border-bottom: 2px solid transparent;
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-page-ancestor > a {
	border-bottom-color: var(--indigo);
	color: var(--indigo-deep);
}

.nav__phone {
	font-weight: 600;
	color: #fff;
	background: var(--indigo);
	text-decoration: none;
	padding: 0.6rem 1.05rem;
	border-radius: var(--radius);
	white-space: nowrap;
}

.nav__phone:hover {
	background: var(--indigo-deep);
	color: #fff;
}

.nav-toggle {
	display: none;
	font: 600 1rem var(--sans);
	color: var(--indigo-deep);
	background: none;
	border: 1px solid var(--indigo);
	border-radius: var(--radius);
	padding: 0.55rem 0.95rem;
	cursor: pointer;
}

@media (max-width: 860px) {
	.brand__logo {
		height: 46px;
	}

	.nav-toggle {
		display: block;
	}

	.nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding-bottom: 0.5rem;
	}

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

	.nav__list {
		flex-direction: column;
		gap: 0;
	}

	.nav__list a {
		display: block;
		padding-block: 0.8rem;
		border-bottom: 1px solid var(--rule);
	}

	.nav__phone {
		text-align: center;
	}
}

/* ------------------------------------------------------------------
   Buttons and links
------------------------------------------------------------------- */
.button {
	display: inline-block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	padding: 0.9rem 1.35rem;
	border-radius: var(--radius);
	border: 1.5px solid var(--indigo);
	background: var(--indigo);
	color: #fff;
}

.button:hover {
	background: var(--indigo-deep);
	border-color: var(--indigo-deep);
	color: #fff;
}

.text-link {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1rem;
}

/* ------------------------------------------------------------------
   Hero (home page)
------------------------------------------------------------------- */
.hero {
	background: var(--hero-bg);
	color: var(--hero-fg);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero__title {
	color: var(--hero-fg);
	font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.4rem);
	line-height: 1.04;
	margin-bottom: 0.45em;
}

.hero__text {
	color: var(--hero-muted);
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	max-width: 38em;
	margin-bottom: 1.8em;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.hero__card {
	border-top: 1px solid var(--hero-rule);
	padding-top: 1.4rem;
}

/* Buttons that sit on the hero and the contact band */
.hero .button--light,
.band .button--light {
	background: #fff;
	border-color: #fff;
	color: var(--indigo-deep);
}

.hero .button--light:hover,
.band .button--light:hover {
	background: var(--tint);
	border-color: var(--tint);
	color: var(--indigo-deep);
}

.hero .button--outline,
.band .button--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.hero .button--outline:hover,
.band .button--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

/* The Light and Classic looks have a pale hero, so the buttons invert. */
.style-light .hero .button--light,
.style-classic .hero .button--light {
	background: var(--indigo);
	border-color: var(--indigo);
	color: #fff;
}

.style-light .hero .button--light:hover,
.style-classic .hero .button--light:hover {
	background: var(--indigo-deep);
	border-color: var(--indigo-deep);
}

.style-light .hero .button--outline,
.style-classic .hero .button--outline {
	border-color: var(--indigo);
	color: var(--indigo-deep);
}

.style-light .hero .button--outline:hover,
.style-classic .hero .button--outline:hover {
	background: rgba(64, 66, 117, 0.08);
	border-color: var(--indigo-deep);
	color: var(--indigo-deep);
}

.style-classic .hero {
	border-bottom: 6px solid var(--grey);
}

/* ------------------------------------------------------------------
   Office details
------------------------------------------------------------------- */
.office {
	font-style: normal;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.5;
}

.office__line {
	display: grid;
	grid-template-columns: 4.2rem 1fr;
	gap: 0.75rem;
	margin: 0 0 0.85rem;
}

.office__label {
	color: var(--muted);
}

.office a {
	font-weight: 500;
	overflow-wrap: anywhere;
}

.hero .office__label {
	color: var(--hero-muted);
}

.hero .office a {
	color: var(--hero-fg);
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.section {
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--tint {
	background: var(--tint);
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
	gap: clamp(1.5rem, 5vw, 5rem);
	align-items: start;
}

.lead {
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
	line-height: 1.5;
	color: var(--indigo-deep);
	max-width: 34em;
}

.portrait {
	display: block;
	width: 100%;
	max-width: 320px;
	border-radius: var(--radius);
}

/* Practice area list: ruled rows, name on the left, summary on the right */
.area-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--indigo-deep);
}

.area-list__item {
	border-bottom: 1px solid var(--rule);
}

.area-list__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 0.4rem 2rem;
	padding: 1.35rem 0.25rem;
	text-decoration: none;
	color: var(--ink);
}

.area-list__name {
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	letter-spacing: var(--head-tracking);
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
	line-height: 1.2;
	color: var(--indigo-deep);
}

.area-list__text {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.55;
}

.area-list__link:hover {
	background: var(--tint);
	color: var(--ink);
}

.area-list__link:hover .area-list__name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.section--tint .area-list__link:hover {
	background: var(--paper);
}

/* Facts about the attorney */
.facts {
	margin: 1.8rem 0;
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: 1rem;
}

.facts > div {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--rule);
}

.facts dt {
	color: var(--muted);
}

.facts dd {
	margin: 0;
	font-weight: 500;
	color: var(--indigo-deep);
}

/* ------------------------------------------------------------------
   Inner pages
------------------------------------------------------------------- */
.page-head {
	background: var(--tint);
	border-bottom: 1px solid var(--rule);
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-head__title {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
	margin: 0;
	max-width: 20em;
}

.page-head__crumb {
	font-family: var(--sans);
	font-size: 1rem;
	margin: 0 0 0.6rem;
}

.with-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}

.prose {
	max-width: 42rem;
}

.prose > :first-child {
	margin-top: 0;
}

.prose h2 {
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
	margin-top: 1.8em;
}

.prose ul,
.prose ol {
	padding-left: 1.2rem;
	margin: 0 0 1.2em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose li::marker {
	color: var(--indigo);
}

.prose .area-list {
	margin-top: 2rem;
	padding-left: 0;
}

.prose .area-list li {
	margin-bottom: 0;
}

.prose--small {
	font-size: 1rem;
	color: var(--muted);
}

.entry {
	margin-bottom: 2.5rem;
}

.side {
	font-family: var(--sans);
	font-size: 1rem;
}

.side__card {
	background: var(--tint);
	border-radius: var(--radius);
	padding: 1.4rem 1.4rem 0.7rem;
	margin-bottom: 2rem;
}

.side__title {
	font-size: 1.1rem;
	margin-bottom: 0.9rem;
}

.side__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--rule);
}

.side__list li {
	border-bottom: 1px solid var(--rule);
}

.side__list a {
	display: block;
	padding: 0.7rem 0;
	text-decoration: none;
	font-weight: 500;
}

.side__list a:hover {
	text-decoration: underline;
}

/* Contact page */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.contact__phone {
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	letter-spacing: var(--head-tracking);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	line-height: 1.1;
	margin-bottom: 1.5rem;
}

.contact__phone a {
	color: var(--indigo-deep);
	text-decoration: none;
}

.contact__details .button {
	margin: 0.6rem 0 1.8rem;
}

.contact__map iframe {
	display: block;
	width: 100%;
	height: clamp(320px, 50vw, 460px);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}

/* ------------------------------------------------------------------
   Contact band and footer
------------------------------------------------------------------- */
.band {
	background: var(--band-bg);
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}

.band__title {
	color: #fff;
	margin-bottom: 0.3em;
}

.band__text {
	margin: 0;
	color: #d6d7ea;
}

.band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.site-footer {
	background: #1e1e38;
	color: #c9cadd;
	font-family: var(--sans);
	font-size: 0.98rem;
	line-height: 1.6;
	padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1.4fr 1fr;
	gap: 2rem 3rem;
}

.site-footer__name {
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 0.7rem;
}

.site-footer__heading {
	color: #fff;
	font-weight: 600;
	margin-bottom: 0.6rem;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__list li {
	margin-bottom: 0.45rem;
}

.site-footer__legal {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.875rem;
	color: #a9aac4;
}

.site-footer__legal p {
	max-width: 62rem;
	margin-bottom: 0.7em;
}

/* ------------------------------------------------------------------
   Smaller screens
------------------------------------------------------------------- */
@media (max-width: 860px) {
	.hero__inner,
	.split,
	.with-side,
	.contact,
	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__inner {
		align-items: start;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 1.0625rem;
	}

	.area-list__link {
		grid-template-columns: minmax(0, 1fr);
	}

	.facts > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.1rem;
	}

	.hero__actions .button,
	.band__actions .button {
		width: 100%;
		text-align: center;
	}

	.band__actions {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* WordPress content helpers */
.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	font-family: var(--sans);
	font-size: 0.9rem;
	color: var(--muted);
}

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