/* =============================================================================
   My Friend Anna Cleaning — theme styles
   -----------------------------------------------------------------------------
   1. Design tokens   2. Base   3. Layout   4. Buttons
   5. Header + nav + quote bar (with mobile hamburger)
   6. Homepage sections   7. Pages & blog   8. Footer   9. Responsive
   ========================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------------- */
:root {
	--pink:       #e96a8d;   /* brand pink (headings accents, links) */
	--pink-mid:   #f28bab;   /* value-props bar + quote bar + buttons */
	--pink-soft:  #f4c6d4;
	--pink-bg:    #fdf7f9;   /* page background */
	--pink-card:  #fdeef3;   /* newsletter card */
	--ink:        #2e2e2e;   /* headings */
	--body:       #4a4a4a;   /* body text */
	--muted:      #6b7280;   /* meta */
	--line:       #efdfe6;
	--white:      #ffffff;
	--gold:       #fbbc05;

	/* Headings + body use the system sans (matches the original site).
	   Only the nav (Kadwa) and the Request-A-Quote button (Karla) use webfonts. */
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: var(--font-body);
	--font-nav:  "Kadwa", Georgia, "Times New Roman", serif;
	--font-cta:  "Karla", var(--font-body);

	--wrap: 1120px;
	--wrap-narrow: 780px;
	--radius: 18px;
	--radius-pill: 999px;
	--shadow: 0 12px 34px rgba(233, 106, 141, 0.12);
	--shadow-card: 0 6px 22px rgba(46, 46, 46, 0.07);
	--gap: clamp(1.5rem, 4vw, 3rem);
	--nav-break: 1024px;
}

/* 2. BASE ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--body);
	background: var(--pink-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.12;
	font-weight: 700;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.15em; }
a { color: var(--pink); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 0.75rem 1rem; }
.skip-link:focus { left: 0; }

/* 3. LAYOUT ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.section-heading { margin-bottom: 0.7em; }
.section-heading--center { text-align: center; }
.section-heading--center::after {
	content: ""; display: block; width: 120px; height: 3px;
	background: var(--pink-soft); margin: 0.5rem auto 0; border-radius: 3px;
}

/* 4. BUTTONS ---------------------------------------------------------------- */
.btn {
	display: inline-block; font-family: var(--font-body); font-weight: 700;
	font-size: 1rem; line-height: 1; padding: 0.95em 1.9em;
	border-radius: var(--radius-pill); border: 0; cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease; text-align: center;
}
.btn:hover, .btn:focus { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--pink-mid); color: #fff; box-shadow: 0 8px 18px rgba(233,106,141,0.28); }
.btn--primary:hover, .btn--primary:focus { background: var(--pink); color: #fff; }

/* 5. HEADER ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--pink-bg); box-shadow: 0 2px 12px rgba(46,46,46,0.04); }
.site-header__inner {
	position: relative;
	max-width: var(--wrap); margin-inline: auto;
	padding: 0.8rem clamp(1rem, 4vw, 2rem);
	display: flex; align-items: center; gap: 1.25rem;
}

.site-branding { flex: 0 0 auto; }
.custom-logo, .site-branding img { max-height: 96px; width: auto; }

.site-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 0.2rem 1.9rem;
}
.nav-menu > li { position: relative; }
.nav-menu a {
	position: relative; font-family: var(--font-nav); font-size: 20px;
	font-weight: 400; color: var(--ink); padding: 0.4rem 0.1rem; display: inline-block;
	transition: color 0.3s ease-in-out;
}
.nav-menu a:hover, .nav-menu a:focus,
.nav-menu .current-menu-item > a { color: var(--pink); text-decoration: none; }
/* Underline that grows from the left on hover (matches the original). */
.nav-menu a::after {
	content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
	background: #222; transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.075);
}
.nav-menu a:hover::after, .nav-menu a:focus::after,
.nav-menu .current-menu-item > a::after { width: 100%; }

/* Sub-menus */
.nav-menu ul { display: none; }
.nav-menu li:hover > ul, .nav-menu li:focus-within > ul {
	display: block; position: absolute; top: 100%; left: 0;
	background: #fff; box-shadow: var(--shadow-card); border-radius: 10px;
	padding: 0.5rem 0; min-width: 210px; list-style: none; z-index: 10;
}
.nav-menu ul a { font-size: 1.05rem; display: block; padding: 0.4rem 1rem; }
.nav-menu ul a::after { display: none; }

.site-social { flex: 0 0 auto; display: flex; gap: 0.6rem; margin-left: auto; }
.site-nav + .site-social { margin-left: 0; }
.site-social__link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.site-social__link:hover, .site-social__link:focus { text-decoration: none; opacity: 0.9; }
.site-social__link--fb { background: #1877f2; }
.site-social__link--ig { background: #1f1f1f; }

/* Quote bar */
.quote-bar { background: var(--pink-mid); padding: 0.7rem 1rem; text-align: center; }
.quote-bar__btn {
	display: inline-block; background: #fff; color: var(--ink);
	font-family: var(--font-cta); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem);
	line-height: 1; padding: 0.5em 1.4em; border-radius: 10px; box-shadow: var(--shadow-card);
}
.quote-bar__btn:hover, .quote-bar__btn:focus { color: var(--pink); text-decoration: none; }

/* Hamburger (hidden until the nav breakpoint) */
.menu-toggle { display: none; width: 44px; height: 40px; padding: 8px; background: transparent; border: 0; cursor: pointer; }
.menu-toggle__bars { position: relative; display: block; width: 28px; height: 20px; margin: 0 auto; }
.menu-toggle__bars span {
	position: absolute; left: 0; height: 3px; width: 100%; background: var(--pink);
	border-radius: 3px; transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle__bars span:nth-child(3) { bottom: 0; }
body.nav-open .menu-toggle__bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.nav-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle__bars span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* 6. HOMEPAGE SECTIONS ------------------------------------------------------ */

/* Hero — arched image on top, centered heading + sub-heading below */
.hero { padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(1.25rem, 3vw, 2rem); }
.hero__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); text-align: center; }
.hero__media { margin-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.hero__image {
	/* Sized to ~two thirds of the width (whitespace on the sides) and masked with
	   a circle at size:cover — exactly like the original. On a wide box this keeps
	   the top and bottom edges flat and only clips/curves the four corners inward. */
	width: min(66%, 760px); height: auto; margin-inline: auto;
	aspect-ratio: 2.23 / 1; object-fit: cover;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/svg%3E") center / cover no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/svg%3E") center / cover no-repeat;
}
/* Title sized to sit on a single line on desktop, so the value-props bar rides
   up close to the top. It still wraps naturally on narrow screens. */
.hero__heading { font-size: clamp(1.4rem, 2.9vw, 2.15rem); margin: 0 auto 0.35em; max-width: none; }
.hero__subheading { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--body); max-width: 62ch; margin: 0 auto; }

/* Value props — full-width pink bar, white icon + label */
.value-props { background: var(--pink-mid); }
.value-props__list {
	list-style: none; margin: 0; max-width: var(--wrap); margin-inline: auto;
	padding: clamp(1rem, 2.6vw, 1.6rem) clamp(0.6rem, 4vw, 2rem);
	/* Always one row — items shrink to fit rather than wrapping. */
	display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
	gap: clamp(0.35rem, 1.5vw, 1rem);
}
.value-prop {
	display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 600;
	font-size: clamp(0.82rem, 1.7vw, 1.1rem);
}
.value-prop__icon { display: flex; color: #fff; flex: 0 0 auto; }
.value-prop__icon svg { width: clamp(20px, 3vw, 30px); height: clamp(20px, 3vw, 30px); }
.value-prop__label { line-height: 1.15; }

/* Problem / solution — text left, photo right */
.problem-solution { padding-block: clamp(2.25rem, 5vw, 4rem); }
.problem-solution__inner {
	max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem);
	display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center;
}
.problem-solution__media img { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; }
.benefit-list { margin: 1.15rem 0 0; padding-left: 1.2rem; }
.benefit-list li { margin-bottom: 0.4rem; color: var(--ink); }

/* Newsletter — text left, form right, inside a soft pink card */
.newsletter { padding-block: clamp(1.75rem, 4vw, 3rem); }
.newsletter__card {
	max-width: var(--wrap); margin-inline: auto; background: var(--pink-card);
	border-radius: 22px; padding: clamp(1.75rem, 4vw, 3rem);
	display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.newsletter__heading { color: var(--pink); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.4em; }
.newsletter__intro { margin: 0; color: var(--body); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: flex-end; }
.newsletter__form input {
	flex: 1 1 180px; min-width: 0; padding: 0.9rem 1.25rem; border: 1px solid var(--pink-soft);
	border-radius: var(--radius-pill); font: inherit; font-size: 1rem; background: #fff;
}
.newsletter__form input:focus { outline: none; border-color: var(--pink); }
.newsletter__form .btn { flex: 0 0 auto; }

/* Reviews — Google summary + full-width testimonial cards */
.reviews { padding-block: clamp(2.25rem, 5vw, 4rem); }
.reviews__inner { max-width: 1080px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.reviews__summary { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-bottom: 1.75rem; }
.reviews__rating { font-size: 2rem; font-weight: 700; color: var(--ink); }
.reviews__count { color: var(--muted); }
.reviews__google { color: var(--muted); margin-left: auto; font-weight: 600; }

.stars { display: inline-flex; gap: 2px; }
.star { color: #d9d9d9; }
.star--on { color: var(--gold); }

.reviews__grid { display: flex; flex-direction: column; gap: 1.25rem; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.testimonial__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; flex: 0 0 auto; }
.testimonial__meta { display: flex; flex-direction: column; line-height: 1.2; }
.testimonial__name { font-weight: 700; color: var(--ink); }
.testimonial__when { font-size: 0.85rem; color: var(--muted); }
.testimonial__text { margin: 0.6rem 0 0; font-size: 0.98rem; }

/* Google Reviews Cache plugin widget — align it with the theme's card look */
.reviews .grc-reviews { max-width: none; margin: 0; font-family: var(--font-body); }
.reviews .grc-aggregate { margin-bottom: 1.75rem; }
.reviews .grc-aggregate-rating { color: var(--ink); font-size: 2rem; }
.reviews .grc-google-badge { color: var(--muted); }
.reviews .grc-layout-cards .grc-review-list { gap: 1.25rem; }
.reviews .grc-review-card { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.5rem 1.75rem; }
.reviews .grc-author-placeholder { background: var(--pink); color: #fff; font-size: 1.15rem; }
.reviews .grc-author-photo { width: 46px; height: 46px; }
.reviews .grc-author-name { color: var(--ink); font-weight: 700; font-size: 1rem; }
.reviews .grc-review-text { color: var(--body); font-size: 0.98rem; }

/* 7. PAGES & BLOG ----------------------------------------------------------- */
.page-hero { background: var(--pink-card); padding-block: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.page-hero__title { margin: 0; }

.page-content, .blog-layout { padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-content, .post-single__content { max-width: var(--wrap-narrow); margin-inline: auto; }
.page-content :where(h2, h3) { margin-top: 1.6em; }
.page-content li, .post-single__content li { margin-bottom: 0.4rem; }
.page-featured, .post-single__featured { margin: 0 0 2rem; }
.page-featured img, .post-single__featured img { border-radius: var(--radius); width: 100%; }

.blog-layout { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); display: grid; grid-template-columns: 1fr; gap: var(--gap); }
body:not(.no-sidebar) .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 860px) { body:not(.no-sidebar) .blog-layout { grid-template-columns: 1fr; } }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.35rem; margin-bottom: 0.3rem; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--pink); text-decoration: none; }
.post-card__excerpt { color: var(--body); font-size: 0.98rem; flex: 1; }
.read-more { font-weight: 700; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }

.post-single__header { text-align: center; max-width: var(--wrap-narrow); margin: 0 auto 1.5rem; }
.post-single__title { margin-bottom: 0.3rem; }
.post-single__tags { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }
.post-nav { max-width: var(--wrap-narrow); margin: 3rem auto 0; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; font-weight: 600; }
.post-nav__next { text-align: right; margin-left: auto; }

.pagination, .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.5rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--pink); color: #fff; border-color: var(--pink); }

.blog-sidebar .widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.widget-title { font-size: 1.25rem; margin-bottom: 0.6rem; }
.blog-sidebar ul { list-style: none; padding: 0; margin: 0; }
.blog-sidebar li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }

.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-field { flex: 1 1 200px; padding: 0.8rem 1.1rem; border: 1px solid var(--pink-soft); border-radius: var(--radius-pill); font: inherit; background: #fff; }
.no-results { max-width: var(--wrap-narrow); margin-inline: auto; }
.comments-area { max-width: var(--wrap-narrow); margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 1.5rem; }

/* 8. FOOTER ----------------------------------------------------------------- */
.footer-cta { background: var(--pink-card); text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.footer-cta__inner { max-width: 960px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.footer-cta__heading { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin-bottom: 0.7em; }
.footer-cta__intro { color: var(--body); margin-bottom: 0.75rem; }
.service-areas { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: center; font-weight: 500; color: var(--ink); }
.service-areas li { display: inline-flex; align-items: center; gap: 0.35rem; }
.service-areas .pin { color: var(--pink); }
.footer-cta__tagline { font-weight: 700; color: var(--ink); font-size: clamp(1.4rem, 3.2vw, 2.2rem); margin: 1.5rem 0 0; }
.site-info { background: var(--pink-bg); color: var(--muted); text-align: center; padding: 1.25rem 1rem; font-size: 0.9rem; }
.site-info p { margin: 0; }

/* 9. RESPONSIVE ------------------------------------------------------------- */

/* Collapse the nav into a hamburger + drop panel below the breakpoint */
@media (max-width: 1024px) {
	.menu-toggle { display: block; flex: 0 0 auto; }
	.site-branding { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
	/* Logo keeps its full size once the hamburger appears; the social icons
	   shrink instead so the three items still fit the row. */
	.site-social { margin-left: 0; gap: 0.4rem; }
	.site-social__link { width: 34px; height: 34px; }
	.site-social__link svg { width: 17px; height: 17px; }
	.menu-toggle { width: 40px; }

	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
		display: none; background: var(--pink-bg);
		border-top: 1px solid var(--line); box-shadow: 0 14px 22px rgba(46,46,46,0.10);
	}
	body.nav-open .site-nav { display: block; }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem clamp(1rem, 5vw, 2rem) 1.25rem; }
	.nav-menu > li { width: 100%; }
	.nav-menu a { display: block; width: 100%; padding: 0.95rem 0; font-size: 22px; border-bottom: 1px solid var(--line); }
	.nav-menu a::after { display: none; }
	.nav-menu li:hover > ul, .nav-menu li:focus-within > ul { position: static; box-shadow: none; padding-left: 1rem; }
}

@media (max-width: 900px) {
	.problem-solution__inner { grid-template-columns: 1fr; }
	.problem-solution__media { order: -1; }
	.newsletter__card { grid-template-columns: 1fr; }
	.newsletter__form { justify-content: flex-start; }
}

@media (max-width: 900px) {
	.hero__image { width: min(82%, 620px); }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.hero__image { width: 90%; }
	/* Keep all four on one row by stacking each icon above its (smaller) label. */
	.value-prop { flex: 1 1 0; flex-direction: column; text-align: center; gap: 0.3rem; font-size: clamp(0.68rem, 3vw, 0.9rem); }
	.reviews__google { margin-left: 0; }
	.post-nav { flex-direction: column; }
	.post-nav__next { text-align: left; margin-left: 0; }
	.newsletter__form input { flex-basis: 100%; }
	.newsletter__form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
