/*
Theme Name: Grocare
Theme URI: https://example.com/
Author: Your Name
Description: A calm, trustworthy one-person-business theme for gardeners and landscapers. Navy and blue palette, generous whitespace, personal first-person voice, clear pricing cards and a prominent call/enquire flow. Design approach inspired by clean practitioner sites. Edit text, images and contact details under Appearance > Customize.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
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: grocare
*/

:root {
  --navy: #15293F;
  --blue: #366BA1;
  --sky: #6699CC;
  --mist: #88B0D7;
  --powder: #ABC7E3;
  --tint: #EDF2F7;
  --ink: #1a2330;
  --navy-soft: #366BA1;
  --muted: #4f5f73;
  --line: #d6e0ec;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(21, 41, 63, .07);
  --max: 1120px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--tint);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--white { background: var(--white); }
.section--sage { background: var(--powder); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .8rem; display: block; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: .2s; font-size: 1rem; cursor: pointer; font-family: var(--sans); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-soft); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--powder); color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); }
.brand span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.brand img { max-height: var(--logo-h, 72px); width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; font: inherit; color: var(--navy); cursor: pointer; }
.header-cta { padding: .6rem 1.2rem; font-size: .95rem; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-note { margin-top: 1.8rem; padding-left: 1rem; border-left: 3px solid var(--blue); color: var(--ink); font-size: .98rem; max-width: 32em; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; background: linear-gradient(135deg, var(--powder), var(--mist)); }
.hero-placeholder { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--powder), var(--mist)); display: grid; place-items: center; color: var(--navy); font-size: .9rem; box-shadow: var(--shadow); text-align: center; padding: 1rem; }

/* Help list */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tick-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; }
.tick-list li { padding-left: 1.7rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.portrait { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portrait-placeholder { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--mist), var(--powder)); display: grid; place-items: center; color: var(--navy); font-size: .9rem; text-align: center; padding: 1rem; }
.caption { font-size: .88rem; color: var(--muted); margin-top: .7rem; font-style: italic; }

/* Story */
.story h3 { margin-top: 2rem; }
.qual-list { padding-left: 1.2rem; }
.qual-list li { margin-bottom: .3rem; }

/* Pricing cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2rem 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { font-size: 1.15rem; }
.price { font-family: var(--serif); font-size: 2.4rem; color: var(--navy); line-height: 1; margin: .4rem 0; }
.card .meta { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.card p:last-child { margin-bottom: 0; }
.fine-print { color: var(--muted); font-size: .95rem; max-width: 46em; }

/* Testimonial */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.5; color: var(--navy); }
.quote cite { font-style: normal; color: var(--navy); opacity: .8; font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--navy); color: #EDF2F7; text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Memberships */
.badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.4rem; }
.badge { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem; font-size: .92rem; color: var(--navy); font-weight: 500; }
.center { text-align: center; }

/* Content pages */
.page-head { padding: 3rem 0 1.5rem; }
.entry { padding-bottom: 4rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content img { border-radius: var(--radius); }
.post-list article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.2rem; }
.post-list h2 { font-size: 1.4rem; }
.post-list h2 a { text-decoration: none; color: var(--navy); }
.post-meta { color: var(--muted); font-size: .88rem; }

/* Footer */
.site-footer { background: var(--navy); color: #ABC7E3; padding: 3.5rem 0 5.5rem; font-size: .96rem; }
.site-footer h4 { color: #fff; font-size: 1rem; font-family: var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: #EDF2F7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .86rem; }

/* Contact page and form */
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.enquiry-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.enquiry-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .35rem; }
.enquiry-form p { margin: 0 0 1.1rem; }
.enquiry-form input:focus, .enquiry-form textarea:focus, .enquiry-form select:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-fine { color: var(--muted); font-size: .88rem; }
.hp-field { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.form-notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .98rem; }
.form-notice--ok { background: var(--tint); border: 1px solid var(--sky); color: var(--navy); }
.form-notice--err { background: #fdf0ef; border: 1px solid #e3a8a3; color: #7a2620; }
.contact-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.contact-details ul { list-style: none; margin: 0; padding: 0; }
.contact-details li { margin-bottom: 1.1rem; }
.contact-details li:last-child { margin-bottom: 0; }

.hero-grid--single, .two-col--single { grid-template-columns: 1fr; max-width: 760px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 340px)); }

/* Dropdown menu */
.main-nav > ul > li { padding: .5rem 0; }
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-left: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -1rem; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem 0; flex-direction: column; align-items: stretch; gap: 0; z-index: 70; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu li { padding: 0; }
.main-nav .sub-menu a { display: block; padding: .55rem 1.2rem; white-space: nowrap; }
.main-nav .sub-menu a:hover { background: var(--tint); }

/* Gallery */
.filter-pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.filter-pills a { display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; }
.filter-pills a:hover { border-color: var(--sky); }
.filter-pills a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item.is-ba { grid-column: span 2; }
.gallery-item a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--powder); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.gallery-item a:hover img { transform: scale(1.03); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ba-label { position: absolute; left: .7rem; top: .7rem; background: var(--navy); color: #fff; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; font-weight: 700; }
.gallery-caption { margin: .6rem 0 0; color: var(--muted); font-size: .92rem; }
.lb { position: fixed; inset: 0; background: rgba(21, 41, 63, .93); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 200; padding: 1.5rem; }
.lb[hidden] { display: none; }
.lb img { max-width: min(96vw, 1200px); max-height: 80vh; border-radius: 10px; }
.lb-cap { color: #EDF2F7; margin: .8rem 0 0; }
.lb-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.post-list article img { border-radius: 10px; width: 100%; }

/* Sticky mobile bar */
.mobile-bar { display: none; }

/* Forms (WordPress default comment/search/contact plugins) */
input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
input[type=submit], button[type=submit] { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.8rem; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
  .brand img { max-height: calc(var(--logo-h, 72px) * .8); }
  .hero-grid, .two-col, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav > ul > li { padding: 0; }
  .main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: .4rem 0 0 1rem; min-width: 0; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.4rem; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-header { position: relative; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mobile-bar a { flex: 1; text-align: center; padding: .95rem; font-weight: 600; text-decoration: none; color: var(--navy); }
  .mobile-bar a + a { background: var(--navy); color: #fff; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.is-ba { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .tick-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Blog search */
.blog-search { display: flex; gap: .6rem; margin: 0 0 2rem; }
.blog-search input[type=search] { flex: 1; min-width: 0; }
.blog-search button { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.6rem; font: inherit; font-weight: 600; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Blog list: small image on the left, text on the right */
.post-list article.has-thumb { display: grid; grid-template-columns: 25% minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.post-list .post-thumb { display: block; }
.post-list .post-thumb img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; display: block; }
.post-list .post-body h2 { margin-top: 0; }
.post-list .post-body p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .post-list article.has-thumb { grid-template-columns: 30% minmax(0, 1fr); gap: 1rem; padding: 1rem; } .post-list .post-body h2 { font-size: 1.1rem; } }
