/*
Theme Name: Enerji Belgesi
Template: twentytwentyfive
Description: Twenty Twenty-Five child theme for enerjibelgesi.com (clean rebuild).
Version: 1.1.3
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: enerjibelgesi
*/

/* Header navigation: white links on navy, light dropdowns. */
.eb-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff;
	color: var(--wp--preset--color--contrast);
	border: 0;
	border-radius: 6px;
	box-shadow: 0 9px 24px rgba(0, 0, 0, .14);
	padding: .4rem 0;
	min-width: 280px;
}
.eb-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .55rem 1.1rem;
}
.eb-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-3);
}
.eb-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--accent-3);
	color: #fff;
}

/* Service boxes on the homepage (centered, no card, like the old site). */
.eb-feature {
	height: 100%;
	text-align: center;
}
.eb-feature .wp-block-image {
	margin-left: auto;
	margin-right: auto;
}
.eb-feature .wp-block-image img {
	width: 44px;
	height: auto;
}
.eb-feature .wp-block-image img[src*="10yil"] {
	width: 140px;
}

/* Contact form card: navy title bar, compact fields. */
.eb-form-card .wpcf7 {
	font-size: .85rem;
}
.eb-form-card .wpcf7 input:not([type=submit]),
.eb-form-card .wpcf7 select {
	width: 100%;
	box-sizing: border-box;
	padding: .55rem .75rem;
	border: 1px solid #d5d9e0;
	border-radius: 3px;
	font: inherit;
	background: #fff;
}
.eb-form-card .wpcf7 p {
	margin: 0 0 .7rem;
}
.eb-form-card .wpcf7 .form-title2 {
	margin: -1.5rem -1.5rem 1.2rem;
	padding: .8rem 1rem;
	background: var(--wp--preset--color--accent-3);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	text-align: center;
	border-radius: 4px 4px 0 0;
}
.eb-form-card .wpcf7 .cf7-bilgi-notu {
	font-size: .72rem;
	color: var(--wp--preset--color--accent-4);
	text-align: center;
}
.eb-form-card .wpcf7 .cf7-submit-wrapper {
	position: relative;
	margin-top: 1rem;
	text-align: center;
}
.eb-form-card .wpcf7 input[type=submit] {
	padding: .75rem 2.2rem;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-3);
	font-family: inherit;
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .03em;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
/* CF7's spinner must not push the button off-centre. */
.eb-form-card .wpcf7 .wpcf7-spinner {
	position: absolute;
	top: calc(50% - 12px);
	margin: 0 0 0 .6rem;
}
.eb-form-card .wpcf7 input[type=submit]:hover {
	background: var(--wp--preset--color--accent-3);
	color: #fff;
}

/* Tables inside articles. */
.wp-block-table table {
	border-collapse: collapse;
}
.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--wp--preset--color--accent-2);
	padding: .5rem .75rem;
}

.eb-feature p {
	font-size: .82rem;
	line-height: 1.55;
	color: var(--wp--preset--color--accent-4);
}
.eb-feature h3 {
	font-size: .95rem;
	margin-top: .3rem;
}
html {
	scroll-behavior: smooth;
}
#hizli-fiyat {
	scroll-margin-top: 1.5rem;
}
@media (max-width: 781px) {
	.eb-header .wp-block-navigation[aria-label="Üst menü"] {
		display: none;
	}
}
.eb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.eb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.eb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start;
	text-align: left;
}
.eb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	box-shadow: none;
	color: inherit;
}

/* Homepage hero: tighter grid like the old site. */
.eb-hero .wp-block-columns {
	gap: 1rem 1.5rem;
}
.eb-hero > .wp-block-columns > .wp-block-column:first-child .wp-block-columns {
	margin-bottom: .5rem;
}

/* Front page H1 keeps the old two-tone look ("Enerji" bold, rest light). */
.eb-front-title {
	font-size: clamp(1.4rem, 2vw, 1.7rem);
}

/* Testimonial: white card with shadow, text aligned right, photo beside it. */
.eb-testimonials .wp-block-columns {
	align-items: center;
}
.eb-testimonials .wp-block-column:first-child {
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
	padding: 2rem 2.5rem;
	text-align: right;
	font-size: .85rem;
}
.eb-testimonials .wp-block-column:first-child h4 {
	margin-bottom: 0;
	font-size: .95rem;
}
.eb-testimonials .wp-block-column:first-child h2 {
	margin-top: .2rem;
	font-size: 1.15rem;
}

/* "Bayimiz Olun" as a white button in the main menu. */
.eb-header .eb-nav-button > .wp-block-navigation-item__content {
	background: #fff;
	color: var(--wp--preset--color--accent-3) !important;
	padding: .45rem .9rem;
	border-radius: 3px;
}
.eb-header .wp-block-navigation__responsive-container.is-menu-open .eb-nav-button > .wp-block-navigation-item__content {
	background: transparent;
	color: #fff !important;
	padding: 0;
}

/* Footer: light grey headings, compact text. */
.eb-footer h3 {
	color: var(--wp--preset--color--accent-4);
	font-weight: 400;
	font-size: 1.15rem;
}
.eb-footer li {
	margin-bottom: .3rem;
}

/* Top bar: small links like the old site. */
.eb-header .wp-block-navigation[aria-label="Üst menü"] {
	font-size: .78rem;
}
.eb-front-title {
	font-weight: 400;
}
.eb-front-title strong,
.eb-front-title b {
	font-weight: 700;
}
