/*
Theme Name: MMS Tarım
Theme URI: https://mmstarım.com
Author: MMS Tarım
Description: MMS Tarım için kartvizit sitesi teması. Aydın'dan toptan incir ve kestane. Telefon, WhatsApp ve adres Görünüm → MMS Tarım Bilgileri sayfasından değiştirilir.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.9
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: mms-tarim
*/

/* ---------- Genel ---------- */
html { scroll-behavior: smooth; }
:where(section, .wp-block-group)[id] { scroll-margin-top: 90px; }
img { height: auto; }

/* Logo yazısı */
.mms-wordmark { font-family: var(--wp--preset--font-family--cinzel); font-size: 24px; line-height: 1; margin: 0; white-space: nowrap; letter-spacing: 0.01em; }
.mms-wordmark strong { font-weight: 800; }
.mms-wordmark span { font-weight: 500; }
.mms-wordmark a { text-decoration: none; color: inherit; }

/* Üst menü */
.mms-ust { position: sticky; top: 0; z-index: 50; }
.admin-bar .mms-ust { top: 32px; }
@media (max-width: 782px) { .admin-bar .mms-ust { top: 46px; } }
.mms-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wp--preset--color--ana); }
.mms-logo-link img { width: 88px; height: auto; display: block; }
.mms-logo-ayrac { width: 1.5px; height: 30px; background: currentColor; opacity: .35; }
@media (max-width: 480px) { .mms-logo-link img { width: 64px; } .mms-wordmark { font-size: 20px; } }

/* Küçük üst başlık (eyebrow) */
.mms-ust-baslik { font-size: 14px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* Bölümler arasında boşluk olmasın; renkli bantlar birbirine değsin */
.wp-site-blocks > * { margin-block-start: 0; }
main.mms-ana > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.mms-bolum { padding-top: 96px; padding-bottom: 96px; }
.mms-bolum-baslik { margin-bottom: 48px !important; }
.mms-bolum-baslik > * { margin-block: 0; }
.mms-bolum-baslik > * + * { margin-block-start: 12px; }
.mms-sayfa { padding-top: 64px; padding-bottom: 96px; }

/* Üst menü düzeni */
.mms-ust-ic { padding-top: 14px; padding-bottom: 14px; gap: 24px; }
.mms-ust-sag { gap: 28px; }
.mms-ust .wp-block-navigation a { color: var(--wp--preset--color--metin); text-decoration: none; }
.mms-ust .wp-block-navigation a:hover { color: var(--wp--preset--color--kestane); }
.mms-ust { border-bottom: 1px solid var(--wp--preset--color--cizgi); }
@media (max-width: 720px) { .mms-ust-dugme { display: none; } }

/* Giriş bandı */
.wp-block-columns.mms-giris { position: relative; overflow: hidden; gap: 0; padding: 0; margin: 0; }
.mms-giris .mms-giris-metin { padding: clamp(56px, 7vw, 104px) clamp(24px, 4vw, 56px) clamp(56px, 7vw, 112px) max(24px, calc((100vw - 1200px) / 2 + 24px)); position: relative; z-index: 1; }
.mms-giris .mms-giris-metin > * { margin-block: 0; }
.mms-giris .mms-giris-metin > * + * { margin-block-start: 26px; }
.mms-giris h1 { color: var(--wp--preset--color--krem); text-wrap: balance; }
.mms-giris .has-buyuk-font-size { color: #EEF0E6; max-width: 520px; }
.mms-giris .mms-giris-foto { position: relative; min-height: 440px; }
.mms-giris .mms-giris-foto .wp-block-image { position: absolute; inset: 0; margin: 0; }
.mms-giris .mms-giris-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.mms-giris::before { content: ""; position: absolute; left: -40px; bottom: -36px; width: 560px; height: 194px; opacity: .08; background: url("assets/img/dag-silueti.svg") no-repeat center / contain; pointer-events: none; }
.mms-giris .is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
@media (max-width: 781px) { .mms-giris .mms-giris-foto { min-height: 300px; flex-basis: 100% !important; } .mms-giris .mms-giris-metin { flex-basis: 100% !important; } }

/* Kartlar */
.mms-kartlar { gap: 24px; }
.mms-kart { border: 1px solid var(--wp--preset--color--cizgi); border-radius: 24px; overflow: hidden; height: 100%; }
.mms-kart > * { margin-block: 0; }
.mms-kart .wp-block-image { margin: 0; }
.mms-kart .wp-block-image img { width: 100%; height: 280px; object-fit: cover; display: block; }
.mms-kart-ic { padding: 32px; }
.mms-kart-ic > * { margin-block: 0; }
.mms-kart-ic > * + * { margin-block-start: 20px; }
.mms-kart-ic h3 { margin: 0; font-size: 34px; }
.mms-kutular { gap: 16px; }
.mms-kutu { border-radius: 14px; padding: 14px 16px; }
.mms-kutu p { margin: 0; font-weight: 600; }
.mms-kutu .mms-kutu-baslik { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--gri); }

/* Ok bağlantı */
.mms-ok-link a { color: inherit; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding: 10px 0 2px; display: inline-block; }

/* Toptan bölümü */
.mms-tp { gap: 56px; }
.mms-tp > .wp-block-column > * { margin-block: 0; }
.mms-tp > .wp-block-column > * + * { margin-block-start: 20px; }
.mms-kosullar { list-style: none; padding: 0; margin-top: 28px !important; }
.mms-kosullar li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--wp--preset--color--cizgi); }
.mms-kosullar li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--wp--preset--color--kestane); }
@media (max-width: 781px) { .mms-tp { gap: 32px; } }
.mms-panel { border-radius: 24px; padding: 40px; height: 100%; box-sizing: border-box; }
.mms-panel > * { margin-block: 0; }
.mms-panel > * + * { margin-block-start: 20px; }
.mms-panel h2, .mms-panel h3 { line-height: 1.15; }

/* Biz kimiz */
.mms-biz { gap: 56px; }
.mms-biz-foto { margin: 0; }
.mms-biz-foto img { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; display: block; }

/* İletişim */
.mms-iletisim { gap: 48px; }
.mms-iletisim h2 { margin-top: 0; }

/* Alt bilgi */
.mms-alt { padding-top: 28px; padding-bottom: 36px; }
.mms-alt p { margin: 0; opacity: .85; }
.mms-eksik { opacity: .7; font-style: italic; font-weight: 400; }

/* Toptan formu */
.mms-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.mms-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.mms-form input, .mms-form select, .mms-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; min-height: 48px; box-sizing: border-box; border-radius: 12px; border: 1px solid #56604A; background: #2A3323; color: #FFFFFF; width: 100%; }
.mms-form .mms-tam { grid-column: 1 / -1; }
.mms-form button { grid-column: 1 / -1; font: inherit; font-weight: 700; padding: 14px 22px; min-height: 52px; border: 0; border-radius: 999px; background: var(--wp--preset--color--kum); color: var(--wp--preset--color--metin); cursor: pointer; }
.mms-form button:hover { background: #F2DCC0; }
.mms-form .mms-bal { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mms-form-mesaj { grid-column: 1 / -1; padding: 12px 16px; border-radius: 12px; font-weight: 600; margin: 0; }
.mms-form-mesaj.ok { background: #DCE8CF; color: #1E251A; }
.mms-form-mesaj.hata { background: #F3D6CF; color: #5A1F12; }
@media (max-width: 600px) { .mms-form { grid-template-columns: 1fr; } }


/* Adımlar */
.mms-adimlar { gap: 24px; }
.mms-adim { border-top: 3px solid currentColor; padding-top: 24px; }
.mms-adim > * { margin-block: 0; }
.mms-adim > * + * { margin-block-start: 12px; }
.mms-adim .mms-adim-no { font-family: var(--wp--preset--font-family--cinzel); font-weight: 700; font-size: 48px; line-height: 1; margin: 0; }
.mms-adim h3, .mms-adim p:not(.mms-adim-no) { color: var(--wp--preset--color--metin); }

/* Sezon takvimi */
.mms-sezon-kutu { overflow-x: auto; background: #FFFFFF; border-radius: 24px; padding: 32px; }
.mms-sezon { min-width: 720px; display: grid; grid-template-columns: 120px repeat(12, minmax(0, 1fr)); gap: 10px 4px; align-items: center; }
.mms-sezon .ay { font-size: 13px; font-weight: 700; color: var(--wp--preset--color--gri); text-align: center; }
.mms-sezon .urun { font-weight: 700; }
.mms-sezon .bar { height: 36px; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.mms-sezon .incir-acik { background: #E6D3DF; color: #4A2440; }
.mms-sezon .incir-koyu { background: var(--wp--preset--color--incir); color: #FFFFFF; font-weight: 700; }
.mms-sezon .kestane-acik { background: #F0DCCB; color: #5C2F10; }
.mms-sezon .kestane-koyu { background: var(--wp--preset--color--kestane); color: #FFFFFF; font-weight: 700; }

/* Biz kimiz: üç tepe açıklaması */
.mms-tepeler { display: flex; gap: 10px; flex-wrap: wrap; }
.mms-tepeler span { font-family: var(--wp--preset--font-family--cinzel); font-weight: 700; border: 1px solid var(--wp--preset--color--cizgi); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* Harita */
.mms-harita { border-radius: 24px; overflow: hidden; min-height: 340px; background: #3E4B30; }
.mms-harita iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.mms-harita-bos { min-height: 340px; display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--kum); text-align: center; padding: 24px; }

/* İletişim tanımları */
.mms-bilgi dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--wp--preset--color--kum); }
.mms-bilgi dd { margin: 6px 0 0; font-size: 19px; font-weight: 600; }
.mms-bilgi dd a { color: inherit; text-decoration: none; }
.mms-bilgi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.mms-bilgi .tam { grid-column: 1 / -1; }
@media (max-width: 600px) { .mms-bilgi { grid-template-columns: 1fr; } }

/* Alt bilgi giriş bağlantısı */
.mms-giris-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: inherit; }

/* Telefonda sabit Ara / WhatsApp çubuğu */
.mms-mobilbar { display: none; }
@media (max-width: 720px) {
	.mms-mobilbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--wp--preset--color--cizgi); }
	.mms-mobilbar a { flex: 1 1 0; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; text-decoration: none; }
	.mms-mobilbar .ara { border: 2px solid var(--wp--preset--color--ana); color: var(--wp--preset--color--ana); }
	.mms-mobilbar .wa { background: var(--wp--preset--color--yaprak); color: #FFFFFF; }
	body { padding-bottom: 72px; }
}

/* Telefonda bölüm boşlukları */
@media (max-width: 600px) {
	.mms-bolum { padding-top: 64px !important; padding-bottom: 64px !important; }
	.mms-panel { padding: 28px !important; }
}
