/*
Theme Name: Anadolu Ev Temizliği Child
Theme URI: https://anadoluevtemizligi.com/
Description: Mobile-first local-service child theme for Anadolu Ev Temizliği.
Author: Anadolu Ev Temizliği
Template: twentytwentyfour
Version: 1.0.0
*/

:root {
  --aet-navy: #072b49;
  --aet-navy-deep: #041d33;
  --aet-gold: #d6a63a;
  --aet-ink: #172331;
  --aet-muted: #5e6d7b;
  --aet-paper: #f7f8f6;
  --aet-white: #fff;
  --aet-border: #dce4e8;
  --aet-radius: 18px;
  --aet-shadow: 0 18px 45px rgba(4, 29, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--aet-ink); background: var(--aet-paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }

/* Typography hierarchy: bold weights for headings */
h1, h2, h3, .aet-hero h1, .aet-page h1 { font-weight: 800 !important; letter-spacing: -0.02em; }
h2 { font-weight: 800 !important; }
h3 { font-weight: 700 !important; font-size: 1.28rem !important; }
.aet-card h3 { font-size: 1.22rem; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.aet-shell { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.aet-header { background: var(--aet-white); border-bottom: 1px solid var(--aet-border); position: relative; z-index: 5; }
.aet-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.aet-brand { display: inline-flex; flex-direction: column; text-decoration: none; font-weight: 800; line-height: 1.05; color: var(--aet-navy); }
.aet-brand small { margin-top: 5px; font-size: 11px; letter-spacing: .08em; color: var(--aet-muted); font-weight: 700; }
.aet-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; }
.aet-nav a { text-decoration: none; }
.aet-nav a:hover, .aet-nav a:focus-visible { color: var(--aet-gold); }
.aet-nav-cta { background: var(--aet-navy); color: var(--aet-white) !important; padding: 11px 15px; border-radius: 999px; }

.aet-hero { background: var(--aet-navy); color: var(--aet-white); padding: 54px 0 62px; }
.aet-hero-grid { display: grid; gap: 34px; align-items: center; }
.aet-eyebrow { color: var(--aet-gold); font-size: 12px; letter-spacing: .13em; font-weight: 800; }
.aet-hero h1 { margin: 13px 0 17px; color: var(--aet-white); font-size: clamp(2.1rem, 7vw, 4.6rem); line-height: 1.04; letter-spacing: -.04em; }
.aet-hero p { max-width: 620px; color: #d9e5eb; font-size: 1.08rem; }
.aet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.aet-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 19px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.aet-button-primary { background: var(--aet-gold); color: #13253a; }
.aet-button-secondary { border: 1px solid rgba(255,255,255,.55); color: var(--aet-white); }
.aet-hero-media { border-radius: 28px; overflow: hidden; box-shadow: var(--aet-shadow); border: 5px solid rgba(255,255,255,.12); }
.aet-hero-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.aet-section { padding: 62px 0; }
.aet-section-white { background: var(--aet-white); }
.aet-section h2 { margin: 0 0 12px; color: var(--aet-navy); font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.aet-lead { max-width: 720px; color: var(--aet-muted); font-size: 1.05rem; }
.aet-grid-3 { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.aet-card { background: var(--aet-white); border: 1px solid var(--aet-border); border-radius: var(--aet-radius); padding: 24px; box-shadow: 0 8px 24px rgba(4,29,51,.05); }
.aet-card .aet-number { margin-bottom: 14px; }
.aet-card h3 { margin-top: 0; margin-bottom: 6px; }
.aet-card p { margin-top: 0; }
.aet-card h3 { margin: 0 0 8px; color: var(--aet-navy); font-size: 1.2rem; }
.aet-card p { margin: 0; color: var(--aet-muted); }
.aet-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--aet-gold); color: var(--aet-navy-deep); font-weight: 900; margin-bottom: 15px; }
.aet-two-col { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.aet-image { border-radius: 22px; overflow: hidden; box-shadow: var(--aet-shadow); }
.aet-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.aet-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.aet-list li { display: flex; gap: 10px; align-items: flex-start; }
.aet-list li::before { content: "✓"; flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e9f2ef; color: #1b8060; font-weight: 900; }
.aet-trust { background: #edf3f5; }
.aet-cta { background: var(--aet-navy-deep); color: var(--aet-white); text-align: center; }
.aet-cta h1 { color: var(--aet-white) !important; }
.aet-cta h2 { color: var(--aet-white) !important; }
.aet-cta p { color: #d9e5eb !important; }
.aet-footer { background: #031827; color: #d9e5eb; padding: 44px 0 24px; }
.aet-footer-grid { display: grid; gap: 26px; }
.aet-footer h3 { color: var(--aet-white); font-size: 1rem; margin: 0 0 9px; }
.aet-footer a { color: #d9e5eb; text-decoration: none; }
.aet-footer a:hover, .aet-footer a:focus-visible { color: var(--aet-gold); }
.aet-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 17px; font-size: .86rem; color: #a9bbc6; }
.aet-page { padding: 0; }
/* Remove WP auto flow-spacing between header and main content */
.wp-site-blocks > main { margin-top: 0 !important; }
main.aet-main { margin-top: 0 !important; }
/* Remove WP auto flow-spacing between main and footer */
.wp-site-blocks > footer { margin-top: 0 !important; }
footer.aet-footer { margin-top: 0 !important; }
.wp-site-blocks { gap: 0 !important; }
/* Remove WP auto flow-spacing between ALL sibling blocks inside main (sections) */
main > * { margin-top: 0 !important; }
.aet-page > * { margin-block-start: 0 !important; }
.entry-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-block-post-content > * { margin-block-start: 0 !important; }
.aet-page > .wp-block-group { margin-block-start: 0; }
.aet-page > .aet-section:first-child { padding-top: 34px; }
.aet-page > .aet-section:last-child { padding-bottom: 38px; }
.aet-page > .aet-section:only-child { padding-top: 34px; padding-bottom: 38px; }
.aet-legal { max-width: 840px; }
.aet-legal h2 { margin-top: 38px; font-size: clamp(1.35rem, 3vw, 2rem); }
.aet-legal p, .aet-legal li { max-width: 780px; }
.aet-legal-note { margin-top: 44px; padding: 18px 20px; border-left: 4px solid var(--aet-gold); background: #fff8e7; color: var(--aet-ink); border-radius: 8px; }
.aet-page h1 { color: var(--aet-navy); font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; }
.aet-page h2 { margin-top: 40px; color: var(--aet-navy); }
.aet-page h3 { color: var(--aet-navy); }
.aet-page p, .aet-page li { max-width: 780px; }
.aet-breadcrumb { max-width: 1180px; margin: 0 auto; padding: 15px 20px 0; color: var(--aet-muted); font-size: .9rem; }

@media (max-width: 720px) {
  .aet-header-inner { align-items: flex-start; flex-direction: column; padding-top: 17px; padding-bottom: 17px; }
  .aet-nav { width: 100%; flex-wrap: wrap; gap: 10px 14px; }
  .aet-nav-cta { margin-left: auto; }
  .aet-hero { padding-top: 38px; }
  .aet-actions { flex-direction: column; align-items: stretch; }
  .aet-button { width: 100%; }
  .aet-section { padding: 46px 0; }
  .aet-shell { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 760px) {
  .aet-hero-grid { grid-template-columns: 1.02fr .98fr; }
  .aet-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .aet-two-col { grid-template-columns: 1fr 1fr; }
  .aet-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

:focus-visible { outline: 3px solid var(--aet-gold); outline-offset: 3px; }

/* District page variants */
.aet-trustbar { background: #fff; border-block: 1px solid var(--aet-border); padding: 16px 0; }
.aet-trustbar .aet-shell { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: .95rem; color: var(--aet-muted); }
.aet-trustbar strong { color: var(--aet-navy); }
.aet-line-item { background: #fff; border: 1px solid var(--aet-border); border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; font-weight: 600; color: var(--aet-ink); }
.aet-imagebanner { background: #edf3f5; padding: 46px 0; }
.aet-hero-centered { text-align: center; }
.aet-hero-centered p { margin-inline: auto; max-width: 640px; }
.aet-hero-light { background: #fff; border-bottom: 1px solid var(--aet-border); }


/* WP autop creates empty <p> inside cards after aet-number spans — neutralize them */
.aet-card p:empty { display: none; margin: 0 !important; padding: 0 !important; height: 0 !important; }
