/* GGD theme — reproduces the ggdplus.co look:
   Source Sans (body, titles) + Fjalla One (display headings),
   charcoal header bar, grey body text, centred section titles with a short rule. */

:root {
	--ggd-charcoal: #161616;
	--ggd-heading: #0d0d0d;
	--ggd-text: #595959;
	--ggd-muted: #6f6f6f;
	--ggd-line: #e2e2e2;
	--ggd-soft: #f6f6f6;
	--ggd-accent: #1bb8c2;
	--ggd-font-body: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
	--ggd-font-display: "Fjalla One", Arial, sans-serif;
	--ggd-width: 1110px;
	--ggd-gutter: 16px;
	--ggd-header-h: 88px;
}
@media (max-width: 767px) { :root { --ggd-header-h: 72px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: #fff; color: var(--ggd-text);
	font: 400 16px/1.6 var(--ggd-font-body);
	-webkit-font-smoothing: antialiased;
}
.site { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--ggd-heading); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ggd-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--ggd-heading); font-family: var(--ggd-font-body); font-weight: 400; line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(28px, 2.6vw, 32px); }
h2 { font-size: clamp(26px, 2.4vw, 32px); }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
p, ul, ol { margin: 0 0 1em; }
strong { color: #4a4a4a; font-weight: 700; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; top: 8px; left: 8px;
	padding: 12px 20px; background: #fff; color: var(--ggd-heading);
}

/* Header ---------------------------------------------------------------- */
.site-header { background: var(--ggd-charcoal); color: #f7f7f7; position: relative; z-index: 50; }
.site-header__inner {
	max-width: 1920px; margin: 0 auto; min-height: var(--ggd-header-h);
	display: flex; align-items: center; gap: 24px; padding: 0 48px;
}
.site-logo img { max-height: 56px; width: auto; display: block; }
.has-overlay-header .site-header { position: fixed; inset: 0 0 auto; background: transparent; transition: background .3s; }
.has-overlay-header.is-scrolled .site-header, .has-overlay-header.nav-open .site-header { background: var(--ggd-charcoal); }
.admin-bar.has-overlay-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-overlay-header .site-header { top: 46px; } }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 34px; }
.site-nav__list a {
	color: #f7f7f7; text-decoration: none; font-size: 13px; letter-spacing: .143em; text-transform: uppercase;
	display: inline-block; padding: 8px 0; border-bottom: 1px solid transparent;
}
.site-nav__list a:hover { border-bottom-color: currentColor; }
.site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a,
.site-nav__list .current_page_parent > a, .site-nav__list .current-menu-parent > a { font-weight: 700; }
.site-nav__list .sub-menu { display: none; }
.nav-toggle, .nav-close { display: none; }

@media (max-width: 1023px) {
	.site-header__inner { padding: 0 24px; }
	.nav-toggle {
		display: block; width: 44px; height: 44px; margin-left: -8px; padding: 0; border: 0;
		background: transparent; color: #fff; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 26px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 1px;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -9px; }
	.nav-toggle__bars::after { top: 9px; }
	.site-nav {
		position: fixed; inset: 0; z-index: 100; background: var(--ggd-charcoal); padding: 96px 32px 48px 64px;
		overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s;
	}
	.nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity .25s; }
	.nav-open { overflow: hidden; }
	.admin-bar .site-nav { top: 46px; }
	.nav-close {
		display: block; position: absolute; top: 28px; right: 24px; width: 44px; height: 44px; border: 0; padding: 0;
		background: transparent; cursor: pointer; color: #fff;
	}
	.nav-close::before, .nav-close::after {
		content: ""; position: absolute; left: 9px; top: 21px; width: 26px; height: 2px; background: currentColor;
	}
	.nav-close::before { transform: rotate(45deg); }
	.nav-close::after { transform: rotate(-45deg); }
	.site-nav__list { flex-direction: column; gap: 14px; }
	.site-nav__list a { font-size: 24px; letter-spacing: 0; text-transform: none; padding: 4px 0; }
	.site-nav__list a:hover, .site-nav__list a:focus { color: var(--ggd-accent); border-bottom-color: transparent; }
	.site-nav__list .sub-menu { display: block; list-style: none; padding: 8px 0 0 16px; }
}

/* Layout ---------------------------------------------------------------- */
.ggd-container, .ggd-page > .entry-content, .ggd-page > .page-header, .ggd-single, .ggd-sidebar {
	width: 100%; max-width: calc(var(--ggd-width) + 2 * var(--ggd-gutter)); margin-left: auto; margin-right: auto;
	padding-left: var(--ggd-gutter); padding-right: var(--ggd-gutter);
}
@media (min-width: 768px) { :root { --ggd-gutter: 32px; } }
.ggd-page { padding-bottom: 64px; }
.has-overlay-header .ggd-page { padding-top: 0; }
.ggd-page > .entry-content > :first-child { margin-top: 0; }
.ggd-page > .entry-content > .ggd-hero:first-child { margin-top: 0; }
.ggd-page:not(:has(.page-header)) > .entry-content { padding-top: 56px; }
.ggd-page:not(:has(.page-header)) > .entry-content:has(> .ggd-hero:first-child) { padding-top: 0; }

/* Section title: "Contact Us", "Client Portfolio", "Photo Gallery" … */
.page-header { text-align: center; padding-top: 56px; padding-bottom: 8px; }
.page-title, .is-style-ggd-section, .ggd-section-title {
	font: 400 clamp(28px, 2.6vw, 32px)/1.25 var(--ggd-font-body); color: var(--ggd-heading); text-align: center; margin: 0;
}
.page-title::after, .ggd-divider {
	content: ""; display: block; width: 48px; height: 0; margin: 28px auto 40px; border: 0; border-top: 1px solid #c8c8c8; background: none; opacity: 1;
}
hr.ggd-divider { margin-top: 20px; }
.entry-content > .ggd-section-title { margin-top: 24px; }

/* Display heading (Fjalla One): "PROJECTS", "QUESTIONS OR COMMENTS?" … */
.is-style-ggd-display {
	font-family: var(--ggd-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0;
	font-size: clamp(32px, 3.4vw, 44px); line-height: 1.2; color: var(--ggd-heading); text-align: center;
}

/* Full-bleed blocks inside the content column */
.entry-content > .ggd-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.entry-content .alignwide { margin-left: -64px; margin-right: -64px; max-width: none; }
@media (max-width: 1240px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; } }

/* Content blocks */
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .2em; }
.entry-content figure { margin: 0 0 1.5em; }
.wp-block-image img { display: block; }
.wp-element-caption { font-size: 14px; color: var(--ggd-muted); text-align: center; }
.wp-block-button__link, .ggd-button {
	background: var(--ggd-heading); color: #fff; border-radius: 4px; padding: 18px 40px;
	font: 700 14px/1.2 var(--ggd-font-body); letter-spacing: .143em; text-transform: uppercase; text-decoration: none;
}
.wp-block-button__link:hover, .ggd-button:hover { background: #333; color: #fff; }
.wp-block-buttons { margin: 32px 0; }

/* WhatsApp button */
.ggd-whatsapp .wp-block-button__link {
	background: #455a64 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2325d366'/%3E%3Cpath fill='%23fff' d='M23.3 8.7A10.2 10.2 0 0 0 7.2 21l-1.4 5.2 5.3-1.4a10.2 10.2 0 0 0 4.9 1.2 10.2 10.2 0 0 0 7.3-17.3zM16 24.4a8.5 8.5 0 0 1-4.3-1.2l-.3-.2-3.2.8.9-3.1-.2-.3A8.5 8.5 0 1 1 16 24.4zm4.7-6.4c-.3-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.6.1a7 7 0 0 1-2-1.3 7.7 7.7 0 0 1-1.4-1.8c-.1-.3 0-.4.1-.5l.4-.4.3-.4v-.4l-.8-1.9c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c.6.3 1.1.4 1.5.5a3.6 3.6 0 0 0 1.7.1 2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.3-.2-.6-.3z'/%3E%3C/svg%3E") 14px 50% / 28px no-repeat;
	padding: 16px 24px 16px 54px; font: 600 19px/1.3 Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none;
}
.ggd-whatsapp .wp-block-button__link:hover { background-color: #37474f; }

/* Homepage features */
.ggd-features { gap: 32px; margin-top: 56px; text-align: center; }
.ggd-features .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ggd-features h3 { font-size: 28px; margin: 20px 0 16px; }
.ggd-features p { font-size: 15px; }

/* FAQ */
.ggd-faq { max-width: 730px; margin: 72px auto 24px; }
.ggd-faq > p { text-align: center; font-size: 15px; }
.ggd-faq .is-style-ggd-display { margin-top: 0; }
.wp-block-details { border-bottom: 1px solid var(--ggd-line); padding: 0; margin: 0; }
.wp-block-details summary {
	list-style: none; cursor: pointer; padding: 22px 32px 22px 0; position: relative;
	color: var(--ggd-heading); font-size: 20px; line-height: 1.4;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; margin-top: -3px;
	border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--ggd-heading);
	transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: rotate(180deg); }
.wp-block-details > :not(summary) { margin-top: 0; }
.wp-block-details[open] { padding-bottom: 16px; }
.wp-block-details li { list-style: none; }
.wp-block-details li::before { content: "o "; }
.wp-block-details ul { padding-left: 0; }

/* Projects page */
.ggd-current-projects { max-width: 730px; }
.ggd-current-projects h2 { font-size: 32px; margin-top: 0; }
.ggd-current-projects p { margin: 28px 0 4px; }
.ggd-current-projects ul { margin-top: 0; }
.entry-content > .wp-block-image:first-child img { width: 100%; max-height: 520px; object-fit: cover; }
.ggd-page h1.is-style-ggd-display { margin-top: 32px; margin-bottom: 0; }
.ggd-page h1.is-style-ggd-display + hr.ggd-divider { margin-top: 28px; }

/* Masonry gallery (Photo Gallery) */
.wp-block-gallery.has-nested-images.ggd-masonry, .wp-block-gallery.has-nested-images.is-style-ggd-masonry {
	display: block; columns: 3 220px; column-gap: 8px;
}
.wp-block-gallery.has-nested-images.ggd-masonry figure.wp-block-image:not(#individual-image),
.wp-block-gallery.has-nested-images.is-style-ggd-masonry figure.wp-block-image:not(#individual-image) {
	width: 100%; margin: 0 0 8px; break-inside: avoid; display: block;
}
.wp-block-gallery.ggd-masonry figure.wp-block-image figcaption,
.wp-block-gallery.is-style-ggd-masonry figure.wp-block-image figcaption { opacity: 0; transition: opacity .25s; }
.wp-block-gallery.ggd-masonry figure.wp-block-image:hover figcaption,
.wp-block-gallery.ggd-masonry figure.wp-block-image:focus-within figcaption,
.wp-block-gallery.is-style-ggd-masonry figure.wp-block-image:hover figcaption { opacity: 1; }

/* Contact page */
.ggd-contact { gap: 64px; }
.ggd-contact .is-style-ggd-display { text-align: left; font-size: clamp(30px, 2.6vw, 36px); margin: 0 0 24px; }
.ggd-contact .is-style-ggd-display:not(:first-child) { margin-top: 48px; }
.ggd-contact h3 { font-size: 28px; margin-top: 48px; }
.ggd-contact a[href^="tel:"] { color: var(--ggd-heading); text-decoration: none; }
.ggd-contact .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 782px) { .ggd-contact > .wp-block-column:last-child { position: sticky; top: 24px; align-self: flex-start; } }

/* Profile page */
.ggd-profile { max-width: 730px; margin: 0 auto; text-align: center; }
.ggd-profile .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ggd-profile h2 { text-transform: uppercase; font-size: 28px; margin: 40px 0 16px; }
.ggd-profile p { font-size: 18px; margin-bottom: .6em; }
.ggd-profile a { font-size: 20px; }

/* Previous Projects listing + category archives */
.ggd-band--archive { margin-top: 0; padding: 56px 16px 48px; }
.ggd-band--archive .ggd-band__sub { font-size: 20px; margin: -16px 0 20px; }
.ggd-cats { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.ggd-cats a { color: inherit; text-decoration: none; font-size: 18px; }
.ggd-cats a:hover { text-decoration: underline; }
.ggd-cats a[aria-current] { font-weight: 700; }
.ggd-band .ggd-cats a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ggd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin: 56px 0; }
.ggd-grid .ggd-card { box-shadow: 0 1px 0 var(--ggd-line), 0 0 0 1px var(--ggd-line); }
.ggd-empty { text-align: center; margin: 64px 0; }
.navigation.pagination { text-align: center; margin-bottom: 64px; }
.page-numbers { display: inline-block; padding: 6px 12px; text-decoration: none; }
.page-numbers.current { font-weight: 700; }

/* Single project post */
.ggd-single { max-width: calc(860px + 2 * var(--ggd-gutter)); padding-top: 40px; }
.ggd-single__header { text-align: center; margin-bottom: 32px; }
.ggd-back { display: inline-block; margin-bottom: 24px; color: var(--ggd-muted); text-decoration: none; font-size: 15px; }
.ggd-back:hover { text-decoration: underline; }
.ggd-single__title { font-size: clamp(30px, 3.4vw, 40px); margin: 0 0 12px; }
.ggd-single__meta { color: var(--ggd-muted); font-size: 15px; }
.ggd-single__cats::before { content: " · "; }
.ggd-single__cats a { color: inherit; }
.ggd-single .entry-content { font-size: 17px; }
.ggd-single .wp-block-gallery { margin-bottom: 32px; }
.ggd-sidebar {
	max-width: calc(860px + 2 * var(--ggd-gutter)); display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
	margin-top: 48px; padding-top: 40px; padding-bottom: 72px; border-top: 1px solid var(--ggd-line);
}
.ggd-sidebar h2 { font-size: 26px; margin: 0 0 20px; }
.ggd-sidebar .ggd-cats { display: block; max-width: none; }
.ggd-sidebar .ggd-cats li { margin-bottom: 14px; }
.ggd-recent { list-style: none; padding: 0; margin: 0; }
.ggd-recent li { margin-bottom: 24px; }
.ggd-recent a { display: flex; gap: 20px; align-items: center; text-decoration: none; color: var(--ggd-heading); }
.ggd-recent img { width: 110px; height: 110px; object-fit: cover; flex: 0 0 auto; }
.ggd-recent__title { display: block; font-size: 17px; line-height: 1.45; }
.ggd-recent a:hover .ggd-recent__title { text-decoration: underline; }
.ggd-recent time { display: block; color: var(--ggd-muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 700px) { .ggd-sidebar { grid-template-columns: 1fr; gap: 24px; } }

/* Footer */
.site-footer { text-align: center; padding: 48px 16px 40px; font-size: 14px; color: var(--ggd-text); }
.site-footer p { margin: 0 0 14px; }
.site-footer a { color: var(--ggd-heading); }

/* 404 */
.ggd-404 .entry-content { text-align: center; }

@media (max-width: 781px) {
	.ggd-features { gap: 48px; }
	.ggd-contact { gap: 32px; }
	.site-header__inner { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
