/*
Theme Name: LDL Investments
Theme URI: https://ldlinvestments.com
Author: LDL Investments Pte Ltd
Description: Custom theme for LDL Investments Pte Ltd. Edit the homepage text, images and office details under Appearance → Customize → LDL Homepage.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ldl
*/

:root {
	--ink: #0e1a2b;
	--navy: #11243d;
	--blue: #1f6fb5;
	--blue-dark: #175a95;
	--mist: #f2f4f9;
	--mist-2: #e7ebf4;
	--line: #dfe4ee;
	--muted: #5b6678;
	--white: #fff;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--wrap: 1160px;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--white); padding: 8px 14px; }

.eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 14px;
}

.btn {
	display: inline-block;
	padding: 13px 26px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	border-radius: var(--radius);
	border: 1px solid transparent;
	transition: background .2s, color .2s, border-color .2s;
	cursor: pointer;
	font-family: var(--sans);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--blue); }
.brand:hover { color: var(--blue); }
.brand-mark { width: 52px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .14em; line-height: 1; white-space: nowrap; }
.custom-logo { max-height: 64px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.main-nav a {
	color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .04em;
	padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--blue); border-bottom-color: var(--blue); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: min(78vh, 720px);
	display: flex; align-items: center;
	background-size: cover; background-position: center;
	color: var(--white);
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(14,26,43,.88) 0%, rgba(14,26,43,.62) 45%, rgba(14,26,43,.15) 100%);
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero-content { max-width: 600px; }
.hero .eyebrow { color: #9cc6ef; }
.hero h1 { color: var(--white); font-size: clamp(44px, 6vw, 76px); font-weight: 500; margin-bottom: 22px; }
.hero-lead { font-size: 19px; line-height: 1.7; color: rgba(255,255,255,.88); margin-bottom: 34px; }
.hero-lead strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 38px 24px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat-value { font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(34px, 4vw, 48px); font-weight: 500; }
.section-head p { color: var(--muted); }

.invest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.invest-card {
	position: relative; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 16 / 10; background: var(--navy); color: var(--white);
}
.invest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.invest-card:hover img { transform: scale(1.05); }
.invest-card::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(14,26,43,0) 35%, rgba(14,26,43,.85) 100%);
}
.invest-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; z-index: 1; }
.invest-card-num { font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.invest-card h3 { color: var(--white); font-size: 34px; font-weight: 500; margin: 0; }
.invest-card p { margin: 10px 0 0; color: rgba(255,255,255,.85); font-size: 15px; }

/* ---------- Office ---------- */
.office-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: stretch; }
.office-details h2 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 500; }
.detail-list { list-style: none; margin: 28px 0 0; padding: 0; }
.detail-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.detail-list li:last-child { border-bottom: 1px solid var(--line); }
.detail-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.detail-value { font-size: 18px; color: var(--ink); }
.office-map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--mist-2); }
.office-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: 80px 0 70px; }
.page-hero h1 { color: var(--white); font-size: clamp(40px, 5vw, 60px); font-weight: 500; margin: 0; }
.page-hero .eyebrow { color: #9cc6ef; }
.page-body { padding: 80px 0 110px; }
.entry-content { max-width: 760px; }
.entry-content h2 { font-size: 34px; margin-top: 1.4em; }
.entry-content h3 { font-size: 26px; margin-top: 1.3em; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
	width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 15px; }
.notice-ok { background: #e6f4ea; color: #1e5c31; }
.notice-err { background: #fdecea; color: #8a1f17; }
.contact-map { margin-top: 32px; height: 300px; border-radius: var(--radius); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 36px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: var(--white); }
.footer-tagline { margin: 14px 0 0; max-width: 340px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.footer-nav a, .site-footer a { color: rgba(255,255,255,.85); }
.footer-nav a:hover, .site-footer a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.office-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.section { padding: 80px 0; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.header-inner { height: 70px; }
	.brand-mark { width: 42px; }
	.brand-name { font-size: 17px; }
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--white); border-bottom: 1px solid var(--line);
		display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
	.main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.eyebrow { font-size: 11px; letter-spacing: .12em; }
	.hero { min-height: 560px; }
	.hero-lead { font-size: 17px; }
	.stats-grid { grid-template-columns: 1fr; }
	.stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 26px 16px; }
	.stat:first-child { border-top: 0; }
	.invest-grid { grid-template-columns: 1fr; }
	.invest-card-body { padding: 24px; }
	.form-row-2 { grid-template-columns: 1fr; }
	.footer-top { flex-direction: column; }
	.footer-nav ul { flex-wrap: wrap; gap: 18px; }
}
