/*
Theme Name: The Lanka Guide
Theme URI: https://thelankaguide.com
Description: GeneratePress child theme for The Lanka Guide — Sri Lanka travel guide and blog.
Author: Bijal Nagar
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* ==========================================================================
   1. Self-hosted fonts — Bricolage Grotesque (variable, 200–800)
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2-variations");
	font-style: normal;
	font-weight: 200 800;
	font-stretch: 100%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2-variations");
	font-style: normal;
	font-weight: 200 800;
	font-stretch: 100%;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Design tokens
      Colors live in Customizer → Colors (GP Global Colors); typography and
      responsive font sizes live in Customizer → Typography. Only things the
      Customizer cannot express are defined here.
   ========================================================================== */

:root {
	/* Brand gradient — composed from the Global Colors palette */
	--tlg-gradient: linear-gradient(100deg, var(--tlg-flame) 0%, var(--tlg-orange) 45%, var(--tlg-amber) 100%);
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

/* Form controls follow the site font set in Customizer → Typography. */
button,
input,
select,
textarea {
	font-family: inherit;
}

/* Footer widgets sit on Ocean Navy; global heading color (navy) would vanish. */
.footer-widgets h1,
.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4,
.footer-widgets h5,
.footer-widgets h6 {
	color: var(--base-3);
}

.footer-widgets ul {
	list-style: none;
	margin-left: 0;
}

.footer-widgets li {
	margin-bottom: 0.4em;
}

/* ==========================================================================
   3. Buttons — pill shape, site-wide
   ========================================================================== */

.wp-block-button__link,
.button,
button:not(.menu-toggle),
input[type="submit"] {
	border-radius: 999px;
	padding: 0.8em 1.8em;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ==========================================================================
   4. Homepage
   ========================================================================== */

.home.page .entry-header {
	display: none;
}

.full-width-content .inside-article {
	padding: 0;
}

.full-width-content .entry-content {
	margin-top: 0;
}

/* --- Hero --- */
.tlg-hero {
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(245, 158, 27, 0.22), transparent 60%),
		radial-gradient(50rem 28rem at 0% 110%, rgba(27, 166, 160, 0.25), transparent 60%),
		var(--contrast);
	padding: clamp(4.5rem, 10vw, 7.5rem) 24px clamp(4rem, 9vw, 6.5rem);
	text-align: center;
}

.tlg-hero h1 {
	color: var(--base-3);
	margin-bottom: 0.6em;
}

.tlg-grad {
	background: var(--tlg-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.tlg-hero .tlg-lede {
	color: var(--base);
	font-size: 1.125rem;
	margin-bottom: 2em;
}

.tlg-hero .is-style-outline .wp-block-button__link {
	color: var(--base-3);
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: transparent;
}

.tlg-hero .is-style-outline .wp-block-button__link:hover {
	border-color: var(--base-3);
	background: rgba(255, 255, 255, 0.1);
	color: var(--base-3);
}

.tlg-trust {
	color: rgba(244, 239, 228, 0.72);
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	margin-top: 2.2em;
	margin-bottom: 0;
}

/* --- Sections --- */
.tlg-section {
	padding: clamp(3.5rem, 8vw, 5.5rem) 24px;
}

.tlg-section--sand {
	background: var(--base);
}

.tlg-eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.6em;
}

.tlg-eyebrow--hero {
	color: var(--tlg-amber);
}

.tlg-sub {
	color: var(--contrast-3);
	max-width: 56ch;
	margin-bottom: 2.4em;
}

/* --- Category cards --- */
.wp-block-columns.tlg-cat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.tlg-cat-cards .wp-block-column {
	position: relative;
	background: var(--base-3);
	border: 1px solid rgba(21, 42, 64, 0.07);
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 8px 24px rgba(21, 42, 64, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tlg-cat-cards .wp-block-column:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(21, 42, 64, 0.1);
}

.tlg-cat-cards h3 {
	font-size: 1.25rem;
	margin-bottom: 0.4em;
}

.tlg-cat-cards p {
	font-size: 0.95rem;
	color: var(--contrast-2);
	margin-bottom: 0.8em;
}

.tlg-card-link {
	margin-bottom: 0 !important;
}

.tlg-card-link a {
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
}

/* Whole card is clickable */
.tlg-card-link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Blog card styles live in Customizer → Additional CSS (image-overlay design). */

/* --- Value props --- */
.tlg-values h2 {
	margin-bottom: 1.6em;
}

.tlg-value-cols h3::before {
	content: "";
	display: block;
	width: 2.2rem;
	height: 0.35rem;
	border-radius: 999px;
	background: var(--tlg-gradient);
	margin-bottom: 0.9rem;
}

.tlg-value-cols p {
	font-size: 0.95rem;
	color: var(--contrast-2);
}

/* --- CTA band --- */
.tlg-cta {
	background:
		radial-gradient(46rem 22rem at 50% -30%, rgba(27, 166, 160, 0.28), transparent 65%),
		var(--contrast);
	padding: clamp(3.5rem, 8vw, 5.5rem) 24px;
	text-align: center;
}

.tlg-cta h2 {
	color: var(--base-3);
	margin-bottom: 0.5em;
}

.tlg-cta p {
	color: var(--base);
	margin-bottom: 2em;
}
