/*
Theme Name: Maakamedi Groceries
Theme URI: https://ketnalcreations.co.za/
Author: Ketnal Creations
Author URI: https://ketnalcreations.co.za/
Description: A single-screen landing page theme for Maakamedi Groceries - full-bleed fresh produce photography behind a clean white contact card. Built for a fast, mobile-first find-us-and-call-us experience.
Version: 1.1.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maakamedi-groceries
Tags: one-column, custom-logo, custom-colors, full-width-template, grocery, landing-page
*/

/* ==========================================================================
   Maakamedi Groceries - landing page styles
   ========================================================================== */

:root{
  --mg-ink:#101010;
  --mg-ink-soft:#565049;
  --mg-line:#e7e3dc;
  --mg-green:#1f6b3c;
  --mg-green-dark:#15522d;
  --mg-rust:#a93b22;
  --mg-orange:#e5871b;
  --mg-card:#ffffff;
  --mg-radius:28px;
  --mg-shadow:0 36px 90px -22px rgba(4,26,18,.62), 0 12px 30px -14px rgba(4,26,18,.40), 0 0 0 1px rgba(255,255,255,.55);
}

*,*::before,*::after{box-sizing:border-box;}

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  min-height:100vh;
  font-family:"Helvetica Neue",Helvetica,Arial,"Segoe UI",sans-serif;
  color:var(--mg-ink);
  line-height:1.5;
  background-color:#173d33;
  -webkit-font-smoothing:antialiased;
}

/* --- Background layers ---------------------------------------------------- */

.mg-bg{
  position:fixed;
  inset:0;
  z-index:0;
  background-image:var(--mg-bg-image);
  background-size:cover;
  background-position:center bottom;
  background-repeat:no-repeat;
}

/* Soft green scrim. Deepens the wall behind the card so the white bubble reads
   clearly, while leaving the produce along the bottom plainly visible. */
.mg-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(68% 60% at 50% 46%, rgba(8,36,27,.52) 0%, rgba(8,36,27,.34) 48%, rgba(8,36,27,.12) 78%, rgba(8,36,27,0) 100%),
    linear-gradient(180deg, rgba(8,36,27,.40) 0%, rgba(8,36,27,.14) 42%, rgba(8,36,27,.10) 68%, rgba(8,36,27,.34) 100%);
}

/* --- Layout --------------------------------------------------------------- */

.mg-stage{
  position:relative;
  z-index:1;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}

.mg-card{
  width:100%;
  max-width:640px;
  background:var(--mg-card);
  border-radius:var(--mg-radius);
  box-shadow:var(--mg-shadow);
  padding:48px 46px 32px;
  text-align:center;
  animation:mg-rise .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes mg-rise{
  from{opacity:0;transform:translateY(22px) scale(.985);}
  to{opacity:1;transform:none;}
}

/* --- Logo / wordmark ------------------------------------------------------ */

.mg-logo,
.custom-logo{
  display:block;
  width:280px;
  max-width:78%;
  height:auto;
  margin:0 auto 4px;
}
.custom-logo-link{display:block;line-height:0;}

/* Text wordmark, used when no logo image is present */
.mg-wordmark{
  display:block;
  margin:0 0 2px;
  line-height:1;
}
.mg-wordmark-main{
  display:block;
  font-size:clamp(30px,7.6vw,46px);
  font-weight:800;
  letter-spacing:-.015em;
  color:var(--mg-ink);
}
.mg-wordmark-sub{
  display:block;
  margin-top:8px;
  font-size:clamp(11px,2.6vw,15px);
  font-weight:600;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--mg-rust);
}

/* --- Tagline -------------------------------------------------------------- */

.mg-tagline{
  margin:16px 0 0;
  font-size:12px;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--mg-ink-soft);
}

.mg-rule{
  display:flex;
  gap:7px;
  justify-content:center;
  align-items:center;
  margin:20px 0 26px;
}
.mg-rule span{
  display:block;
  height:4px;
  width:24px;
  border-radius:4px;
  background:#d8e6dc;
}
.mg-rule span:nth-child(2){background:var(--mg-orange);opacity:.55;}
.mg-rule span:nth-child(3){width:44px;background:var(--mg-green);}
.mg-rule span:nth-child(4){background:var(--mg-rust);opacity:.45;}

/* --- Info rows ------------------------------------------------------------ */

.mg-info{
  display:grid;
  gap:20px;
  text-align:left;
  margin-bottom:28px;
}

@media (min-width:540px){
  .mg-info{grid-template-columns:1fr 1fr;gap:22px 20px;}
  .mg-info-item--wide{grid-column:1 / -1;}
}

.mg-info-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.mg-icon{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eaf4ed;
  color:var(--mg-green);
}
.mg-icon svg{width:18px;height:18px;display:block;}

.mg-info-label{
  margin:0 0 3px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#948d85;
}

.mg-info-value{
  margin:0;
  font-size:15px;
  font-weight:600;
  color:var(--mg-ink);
}

.mg-phones{list-style:none;margin:0;padding:0;display:grid;gap:2px;}

.mg-info-note{
  margin:2px 0 0;
  font-size:13px;
  font-weight:500;
  color:var(--mg-ink-soft);
}

.mg-info-value a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(31,107,60,.35);
  padding-bottom:1px;
  transition:border-color .18s ease,color .18s ease;
}
.mg-info-value a:hover,
.mg-info-value a:focus-visible{
  color:var(--mg-green);
  border-bottom-color:var(--mg-green);
}

/* --- Buttons -------------------------------------------------------------- */

.mg-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin-bottom:28px;
}

.mg-btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:15px 26px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  text-decoration:none;
  border:1.5px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.mg-btn svg{width:16px;height:16px;flex:0 0 auto;}

.mg-btn-primary{
  background:var(--mg-green);
  color:#fff;
  box-shadow:0 12px 26px -10px rgba(31,107,60,.75);
}
.mg-btn-primary:hover,
.mg-btn-primary:focus-visible{
  background:var(--mg-green-dark);
  transform:translateY(-2px);
  box-shadow:0 18px 32px -12px rgba(31,107,60,.8);
}

.mg-btn-ghost{
  background:#fff;
  color:var(--mg-ink);
  border-color:var(--mg-line);
}
.mg-btn-ghost:hover,
.mg-btn-ghost:focus-visible{
  border-color:var(--mg-ink);
  transform:translateY(-2px);
}

.mg-btn:focus-visible{outline:3px solid rgba(31,107,60,.4);outline-offset:3px;}

/* --- Footer --------------------------------------------------------------- */

.mg-footer{
  border-top:1px solid var(--mg-line);
  padding-top:18px;
  font-size:12px;
  color:#948d85;
}
.mg-footer p{margin:0 0 5px;}
.mg-footer p:last-child{margin-bottom:0;}
.mg-footer a{
  color:var(--mg-ink-soft);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid var(--mg-line);
}
.mg-footer a:hover,
.mg-footer a:focus-visible{color:var(--mg-green);border-bottom-color:var(--mg-green);}

/* --- Editor / WP content fallback ---------------------------------------- */

.mg-page-content{
  margin:0 0 26px;
  text-align:left;
  font-size:15px;
  color:var(--mg-ink-soft);
}
.mg-page-content:empty{display:none;}
.mg-page-content img{max-width:100%;height:auto;}

.screen-reader-text{
  position:absolute!important;
  width:1px;height:1px;
  overflow:hidden;clip:rect(1px,1px,1px,1px);
  clip-path:inset(50%);
  white-space:nowrap;
}

/* --- Small screens -------------------------------------------------------- */

@media (max-width:540px){
  .mg-stage{padding:24px 16px;}
  .mg-card{padding:34px 24px 24px;border-radius:22px;}
  .mg-actions{flex-direction:column;}
  .mg-btn{width:100%;justify-content:center;}
  .mg-tagline{letter-spacing:.15em;font-size:11px;}
}

@media (prefers-reduced-motion:reduce){
  .mg-card{animation:none;}
  .mg-btn,.mg-info-value a{transition:none;}
}
