/*
Theme Name: Afro Hair Trends
Theme URI: https://afrohairtrends.co.uk/
Author: Architecture Engineer
Description: v4 "Warm & Flat" — flat colors only, on a strict palette: dark brown base, lighter brown surfaces, one fun yellow and a supporting gold. Sections alternate the two browns so every block reads clearly. Built for FREE ACF: section text/images use free ACF fields, repeating content (services, testimonials, gallery, prices) uses custom post types, and global settings use the Customizer. The client edits everything in wp-admin without touching HTML or Gutenberg.
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: afro-hair-trends
*/

/* wordpress theme manifest (header above) + design tokens and base styles.
   the rest of the css is split across assets/css/*, enqueued in order. */

/* minimal reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
iframe { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p { text-wrap: pretty; }

/* design tokens — strict flat palette, no gradients:
   brown-dark  page bg, footer, every "off" section
   brown       "on" surface: alternate sections, cards, scrolled header
   brown-lite  one lighter step — hover surfaces only
   yellow      the accent: ctas, active states, current nav item, stars
   gold        secondary accent: hover states, flourish words, quiet detail
   cream       body text & headings on dark
   sand        muted/secondary text (never below .85rem) */
:root {
	--brown-dark: #221610;
	--brown:      #352417;
	--brown-lite: #46301f;
	--yellow:     #f6c445;
	--gold:       #d9a862;
	--cream:      #f5ece0;
	--sand:       #bfa78f;

	/* hairline borders: gold at low alpha */
	--line:       rgba(217, 168, 98, .25);
	--line-soft:  rgba(217, 168, 98, .15);

	/* legacy aliases (kept so per-section sheets keep working) */
	--espresso:  var(--brown-dark);
	--cocoa:     var(--brown);
	--cocoa-lite:var(--brown-lite);
	--champagne: var(--gold);
	--gold-deep: var(--gold);
	--pop:       var(--yellow);
	--pop-deep:  var(--gold);

	/* tangerine is display-only (flourish words); space grotesk is the sans
	   workhorse for eyebrows/labels/buttons/nav */
	--font-script: "Tangerine", "Gelasio", cursive;
	--font-serif:  "Gelasio", Georgia, serif;
	--font-sans:   "Space Grotesk", ui-sans-serif, system-ui, sans-serif;

	--fs-hero:   clamp(2.7rem, 6.2vw, 4.8rem);
	--fs-script: clamp(2.6rem, 7vw, 5.5rem);  /* script renders visually small */
	--fs-h2:     clamp(1.8rem, 3.6vw, 2.6rem);
	--fs-h3:     1.25rem;
	--fs-body:   1.04rem;
	--fs-small:  .9rem;

	--wrap:     1180px;
	--gutter:   clamp(1.25rem, 4vw, 3rem);
	--radius:   20px;
	--radius-sm:12px;
	--radius-lg:28px;

	/* soft ambient shadow — depth without gloss */
	--shadow:      0 24px 60px -30px rgba(0, 0, 0, .75);
	--shadow-soft: 0 18px 44px -24px rgba(0, 0, 0, .6);

	--header-h: 76px;

	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* playful overshoot */
	--dur-1: .25s;
	--dur-2: .6s;
	--dur-reveal: 1.15s;   /* scroll-reveal glide */
}

/* base typography & color */
/* dark root too, so there's no light flash while the next page's css loads */
html { background-color: #221610; }

body {
	font-family: var(--font-serif);
	font-size: var(--fs-body);
	font-weight: 400;
	color: var(--cream);
	background-color: var(--brown-dark);
	/* every page eases in — kills the between-page flicker */
	animation: aht-page-in .45s ease both;
}
@keyframes aht-page-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.15;
	color: var(--cream);
	text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

a { transition: color var(--dur-1) var(--ease-out); }
a:hover { color: var(--gold); }

::selection { background: var(--yellow); color: var(--brown-dark); }

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

/* primitives */
.wrap {
	width: min(var(--wrap), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

.section { padding-block: clamp(4rem, 9vh, 7rem); }

/* on/off rhythm: alternate blocks sit on the lighter brown */
.section--alt { background-color: var(--brown); }

/* tangerine flourish word above a heading */
.flourish {
	font-family: var(--font-script);
	font-weight: 700;
	font-size: var(--fs-script);
	line-height: .9;
	color: var(--gold);
	display: block;
	margin-bottom: .3rem;
}

.section-title { font-size: var(--fs-h2); }

/* sans eyebrow — alternative to the script .flourish; the dot adds a beat */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--yellow);
}
.eyebrow::before {
	content: "";
	width: .5rem; height: .5rem;
	border-radius: 50%;
	background: var(--yellow);
}

/* inline accent for a word inside a heading */
.pop { color: var(--yellow); }
.pop--gold { color: var(--gold); }

.lead { color: var(--sand); }
.lead b, .lead strong { color: var(--cream); }

.muted { color: var(--sand); font-size: var(--fs-small); }

/* short chunky rule under headings */
.rule {
	width: 60px; height: 4px; border: 0;
	border-radius: 999px;
	background: var(--yellow);
	margin: 1.2rem 0 0;
}
.rule--center { margin-inline: auto; }
