/*
 Theme Name:   Alfa Konteyner Child
 Theme URI:    https://alfakonteyner.com
 Description:  Alfa Konteyner için GeneratePress child teması
 Author:       Alfa Konteyner
 Template:     generatepress
 Version:      1.1.0
 Text Domain:  alfa-child
*/

/* =========================================================
   1. TASARIM DEĞİŞKENLERİ (logodan alınan renkler)
   ========================================================= */
:root {
	--alfa-navy:      #203750; /* logo lacivert */
	--alfa-navy-dark: #172a3e;
	--alfa-cyan:      #41c0eb; /* logo turkuaz */
	--alfa-cyan-dark: #0c7eae; /* beyaz üstünde okunabilir link rengi */
	--alfa-text:      #26313d;
	--alfa-muted:     #5b6773;
	--alfa-light:     #f3f6f9;
	--alfa-border:    #e2e8ee;
	--alfa-wa:        #25d366;
	--alfa-radius:    8px;
	--alfa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   2. TEMEL TİPOGRAFİ
   ========================================================= */
body {
	font-family: var(--alfa-font);
	color: var(--alfa-text);
	font-size: 17px;
	line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
	color: var(--alfa-navy);
	font-weight: 700;
	line-height: 1.25;
}
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 22px; }
a { color: var(--alfa-cyan-dark); }
a:hover, a:focus { color: var(--alfa-navy); }

/* Butonlar (WooCommerce dahil) */
button, .button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.wp-block-button__link {
	background: var(--alfa-navy);
	color: #fff;
	border-radius: var(--alfa-radius);
	font-weight: 600;
	transition: background .2s ease;
}
button:hover, .button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wp-block-button__link:hover {
	background: var(--alfa-cyan-dark);
	color: #fff;
}

/* =========================================================
   3. ÜST BİLGİ ÇUBUĞU
   ========================================================= */
.alfa-topbar {
	background: var(--alfa-navy);
	color: #dfe8f1;
	font-size: 14px;
	line-height: 1.4;
}
.alfa-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.alfa-topbar a { color: #fff; text-decoration: none; }
.alfa-topbar a:hover { color: var(--alfa-cyan); }
.alfa-topbar__group { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.alfa-topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.alfa-topbar svg { width: 15px; height: 15px; fill: var(--alfa-cyan); flex-shrink: 0; }

/* =========================================================
   4. HEADER VE MENÜ
   ========================================================= */
.site-header { border-bottom: 1px solid var(--alfa-border); }
.main-navigation .main-nav ul li a {
	color: var(--alfa-navy);
	font-weight: 600;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
	color: var(--alfa-cyan-dark);
}
.main-navigation ul ul { border-top: 3px solid var(--alfa-cyan); }

.alfa-nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 12px;
	padding: 10px 18px;
	background: var(--alfa-cyan);
	color: var(--alfa-navy) !important;
	border-radius: var(--alfa-radius);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.alfa-nav-cta:hover { background: var(--alfa-navy); color: #fff !important; }
.alfa-nav-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* =========================================================
   5. FOOTER
   ========================================================= */
.alfa-footer {
	background: var(--alfa-navy);
	color: #c9d6e3;
	font-size: 15px;
	line-height: 1.7;
}
.alfa-footer__inner {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}
.alfa-footer__title {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	letter-spacing: .02em;
}
.alfa-footer p { margin: 0 0 12px; }
.alfa-footer ul { list-style: none; margin: 0; padding: 0; }
.alfa-footer li { margin-bottom: 8px; }
.alfa-footer a { color: #fff; text-decoration: none; }
.alfa-footer a:hover { color: var(--alfa-cyan); }
.alfa-footer__brand { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 10px; display: block; }
.alfa-footer__label { color: var(--alfa-cyan); font-weight: 600; display: block; }

.site-info {
	background: var(--alfa-navy-dark);
	color: #9fb1c3;
	font-size: 14px;
}
.site-info a { color: #c9d6e3; }

@media (max-width: 1024px) {
	.alfa-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.alfa-footer__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}

/* =========================================================
   6. MOBİL ALT İLETİŞİM ÇUBUĞU
   ========================================================= */
.alfa-mobile-bar { display: none; }

@media (max-width: 768px) {
	.alfa-topbar__group--secondary,
	.alfa-nav-cta { display: none; }

	.alfa-mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 999;
		background: #fff;
		box-shadow: 0 -2px 12px rgba(0,0,0,.12);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.alfa-mobile-bar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		padding: 8px 4px;
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;
		color: #fff;
	}
	.alfa-mobile-bar svg { width: 22px; height: 22px; fill: currentColor; }
	.alfa-mobile-bar__call  { background: var(--alfa-navy); }
	.alfa-mobile-bar__wa    { background: var(--alfa-wa); color: #0b3d1e !important; }
	.alfa-mobile-bar__quote { background: var(--alfa-cyan); color: var(--alfa-navy) !important; }

	/* Çubuk içeriğin üstünü kapatmasın */
	body { padding-bottom: 64px; }
}
