/*
 * Design tokens sourced from the Elementor global Kit + screenshot review —
 * see wordpress-rebuild-starter-pack/03-DESIGN-SYSTEM.md. Spacing values are
 * estimates from the captured screenshots (not yet measured pixel-exact in
 * the Elementor editor) — treat as a first pass, refine during template QA.
 */

/* @import rules must come before all other rules per the CSS spec — a browser
   silently drops any @import that appears after a normal style rule. */
@import url("components/header.css");
@import url("components/footer.css");
@import url("components/hero.css");
@import url("components/cta-banner.css");
@import url("components/stats-block.css");
@import url("components/card-team.css");
@import url("components/page-about.css");
@import url("components/hero-home.css");
@import url("components/content-media.css");
@import url("components/card-flip.css");
@import url("components/card-post.css");
@import url("components/service-single.css");
@import url("components/hero-location.css");
@import url("components/lead-form-card.css");
@import url("components/video-benefits.css");
@import url("components/single-post.css");
@import url("components/page-contact.css");
@import url("components/faq-accordion.css");
@import url("components/page-testimonials.css");
@import url("components/page-claim-help.css");
@import url("components/page-faqs.css");
@import url("components/page-claim-shield.css");
@import url("components/page-loss-assessor-ireland.css");
@import url("components/page-thank-you.css");
@import url("components/forminator-forms.css");
@import url("components/category-nav.css");

:root {
	/* Colour */
	--color-primary: #1c2e3f;   /* navy — header/footer/dark sections */
	--color-secondary: #00a99d; /* teal — form cards, footer links, secondary CTAs */
	--color-accent: #fea953;    /* orange — primary CTAs, utility bar, highlights */
	--color-text: #7a7a7a;
	--color-white: #ffffff;
	--color-light-grey: #f0f0f0;
	--color-heading: var(--color-primary);

	/* Type */
	--font-heading: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--font-weight-heading: 600;
	--font-weight-body: 300;

	/* Unified type scale (2026-09-09 redesign pass) — one size per heading
	   level sitewide, with a single named exception (hero H1s + hero
	   subtitle copy get a deliberate size bump). See git history for the
	   scattered per-component values this replaced. */
	--font-size-h1-hero: clamp(2rem, 1.5rem + 2vw, 3rem);
	--font-size-h1: 2rem;
	--font-size-h2: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
	--font-size-h3: 1.1rem;
	--font-size-h4: 1rem;
	--font-size-body: 1rem;
	--font-size-small: 0.875rem;
	--font-size-hero-subtitle: 1.125rem;
	--font-size-eyebrow: 0.85rem;

	/* Layout */
	--container-width: 1200px;
	--gutter: 1.25rem;

	/* Spacing scale (estimate pending Elementor-editor measurement) */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;

	--radius: 6px;
}

/* Breakpoints (match the Elementor defaults confirmed in 03-DESIGN-SYSTEM.md):
   mobile: <768px, tablet: 768–1024px, desktop: 1025px+ */

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: var(--font-weight-body);
	font-size: var(--font-size-body);
	color: var(--color-text);
	line-height: 1.5;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: var(--font-weight-heading);
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--color-heading);
	margin: 0 0 var(--space-sm);
}

h1 {
	font-size: var(--font-size-h1);
}

h2 {
	font-size: var(--font-size-h2);
}

h3 {
	font-size: var(--font-size-h3);
}

h4 {
	font-size: var(--font-size-h4);
}

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

/* Responsive 16:9 video embed wrapper — used for every YouTube/oEmbed
   video on the site (see ics_responsive_embed_html() in inc/helpers.php).
   The iframe is forced to fill this box via position:absolute so its own
   width/height attributes (which oEmbed always includes) can't affect its
   rendered size — plain `aspect-ratio` on the iframe itself isn't reliable
   in Safari when those attributes are present. */
.ics-video-embed {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
}

.ics-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

a {
	color: var(--color-secondary);
}

.container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font-family: var(--font-heading);
	font-weight: var(--font-weight-heading);
	text-transform: uppercase;
	text-decoration: none;
	background: var(--color-accent);
	color: var(--color-white);
	border: none;
	border-radius: var(--radius);
	padding: 0.9em 1.75em;
	cursor: pointer;
}

.button--secondary {
	background: var(--color-secondary);
	color: var(--color-white);
}

.button--outline {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}
