/*
Theme Name: Tega Designs
Theme URI: https://www.tega-designs.com
Author: Wilson Hui
Description: Custom block theme for Tega Designs — couture, bridal and custom design by Elysia Baier. Built from the Tega Designs Figma mockup. Every homepage section is an editable pattern in the Site Editor.
Version: 1.2.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tega
*/

/* Small refinements theme.json can't express. */

.tega-eyebrow { text-transform: uppercase; }

/* Image blocks that should fill their box */
.tega-cover-img { width: 100%; margin: 0; }
.tega-cover-img img { width: 100%; object-fit: cover; display: block; }
/* Grid children shouldn't size rows from a photo's natural size */
.is-layout-grid > * { min-width: 0; }

/* Service cards: whole card height equal inside grid */
.tega-card { height: 100%; }
.tega-card .wp-block-image { margin: 0; }
.tega-card h3 a { color: inherit; text-decoration: none; }
.tega-card h3 a:hover { color: var(--wp--preset--color--teal-deep); }

/* Process steps: top rule */
.tega-step { border-top: 1px solid var(--wp--preset--color--teal-light); }

/* Featured band diamond dividers */
.tega-band .tega-diamond { color: var(--wp--preset--color--teal-light); }

/* Header bottom rule */
.tega-header { border-bottom: 1px solid var(--wp--preset--color--line); }

/* Logo badge */
.tega-badge img { width: 64px; height: 64px; display: block; }

/* Outline button variant */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}

/* Journal query cards */
.tega-post-card .wp-block-post-featured-image { margin: 0; }
.tega-post-card .wp-block-post-title a { text-decoration: none; color: inherit; }

/* Hero: let the image column fill the full height on desktop */
@media (min-width: 782px) {
	.tega-hero > .wp-block-column:last-child { align-self: stretch; }
	.tega-hero > .wp-block-column:last-child > .wp-block-cover { height: 100%; min-height: 680px; }
}

/* Mobile tightening */
@media (max-width: 781px) {
	.tega-hero .wp-block-cover { min-height: 460px; }
	.tega-hero-copy { padding-top: 56px !important; padding-bottom: 56px !important; }
	.tega-hero-copy h1 { font-size: 46px !important; }

	/* Header: logo left, menu button right (hero already has the consultation button) */
	.tega-header .wp-block-buttons { display: none; }
	.tega-header > .wp-block-group { flex-wrap: nowrap; }

	/* Featured band: drop the diamond dividers, tidy wrap */
	.tega-band { gap: 10px 22px !important; }
	.tega-band .tega-diamond { display: none; }

	/* Photo-heavy sections: shorter or two-up on phones */
	#story .tega-cover-img img { height: 420px !important; }
	#services .tega-cover-img img { height: 240px !important; }
	#runway .is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	#bridal .is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
	#bridal .tega-cover-img img { height: 230px !important; }
	#collections .is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	#collections .is-layout-grid > :first-child { grid-column: 1 / -1; }
	#collections .tega-cover-img img { height: 300px !important; }
	#collections .is-layout-grid > :first-child img { height: 380px !important; }
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open { background-color: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--ink) !important; padding: 24px 5vw !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--serif); font-size: 30px; font-weight: 500; letter-spacing: 0; padding: 6px 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 14px !important; }

/* Header/footer sit flush against page sections */
.wp-site-blocks > header.wp-block-template-part, .wp-site-blocks > footer.wp-block-template-part, .wp-site-blocks > main { margin-block-start: 0; }
