/*
Theme Name: Fetch
Theme URI: https://www.instagram.com/fetch.pet.products/
Author: Fetch
Description: A calm, warm, brochure-style theme for Fetch, a South African pet care brand. Creates the Home, Our Story, Products and Contact and Order pages on activation, with WhatsApp ordering buttons.
Version: 1.0.1
Requires at least: 6.4
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: fetch
*/

/* ---------- Fonts (bundled, no outside requests) ---------- */
@font-face{font-family:'DM Serif Display';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/dm-serif-display-italic.woff) format('woff')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/montserrat.woff) format('woff')}

/* ---------- Global styles: change brand values here ---------- */
:root{
  --fetch-butter:#F4E7C5;
  --fetch-brown:#4A3426;
  --fetch-taupe:#A88B6A;
  --fetch-tag:#8A6F52;
  --fetch-blue:#7AA1CE;
  --fetch-paper:#FBF7EC;
  --fetch-white:#FFFFFF;
  --fetch-line:rgba(74,52,38,.16);
  --fetch-serif:'DM Serif Display',Georgia,'Times New Roman',serif;
  --fetch-sans:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;
  --fetch-max:1120px;
  --fetch-gap:clamp(20px,4vw,48px);
  --fetch-section:clamp(56px,9vw,104px);
  --fetch-radius:18px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fetch-paper);color:var(--fetch-brown);font-family:var(--fetch-sans);font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--fetch-brown);text-underline-offset:3px}
a:hover{color:var(--fetch-tag)}
:focus-visible{outline:3px solid var(--fetch-blue);outline-offset:3px;border-radius:4px}
h1,h2,h3{font-family:var(--fetch-serif);font-style:italic;font-weight:400;line-height:1.1;margin:0 0 .5em}
h1{font-size:clamp(40px,6.4vw,68px)}
h2{font-size:clamp(32px,4.6vw,48px)}
h3{font-size:clamp(24px,3vw,30px)}
p{margin:0 0 1em}
ul{margin:0 0 1em;padding-left:1.2em}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.fetch-skip:focus{position:fixed!important;left:12px;top:12px;width:auto;height:auto;clip:auto;background:var(--fetch-brown);color:#fff;padding:10px 16px;border-radius:8px;z-index:100}

/* ---------- Header ---------- */
.fetch-header{position:sticky;top:0;z-index:50;background:rgba(251,247,236,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--fetch-line)}
.fetch-header__in{max-width:var(--fetch-max);margin:0 auto;padding:10px 24px;display:flex;align-items:center;gap:24px;min-height:72px}
.fetch-logo{display:block;flex:0 0 auto;line-height:0}
.fetch-logo img,.fetch-header .custom-logo{height:50px;width:auto}
.fetch-header .custom-logo-link{line-height:0;flex:0 0 auto}
.fetch-nav{margin-left:auto}
.fetch-nav ul{list-style:none;display:flex;gap:28px;margin:0;padding:0}
.fetch-nav a{text-decoration:none;font-size:14px;font-weight:500;letter-spacing:.04em;padding:8px 0;display:block}
.fetch-nav .current-menu-item>a,.fetch-nav .current_page_item>a{box-shadow:0 2px 0 var(--fetch-blue)}
.fetch-header__cta p{margin:0}
.fetch-toggle{display:none;margin-left:auto;background:none;border:1.5px solid var(--fetch-brown);border-radius:999px;padding:9px 16px;font:600 12px var(--fetch-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--fetch-brown);cursor:pointer}
@media (max-width:900px){
  .fetch-toggle{display:block}
  .fetch-header__in{flex-wrap:wrap;gap:12px}
  .fetch-nav,.fetch-header__cta{display:none;flex-basis:100%;margin:0}
  .fetch-header.is-open .fetch-nav,.fetch-header.is-open .fetch-header__cta{display:block}
  .fetch-nav ul{flex-direction:column;gap:0}
  .fetch-nav a{padding:14px 0;border-top:1px dotted var(--fetch-taupe);font-size:16px}
  .fetch-header__cta{padding:6px 0 14px}
  .fetch-header__cta .fetch-btn{width:100%;justify-content:center}
}
@media (min-width:901px){.admin-bar .fetch-header{top:32px}}

/* ---------- Buttons ---------- */
.fetch-btn,.wp-block-button__link{display:inline-flex;align-items:center;gap:10px;border-radius:999px;padding:14px 26px;font:600 13px/1.2 var(--fetch-sans);letter-spacing:.12em;text-transform:uppercase;text-decoration:none;border:1.5px solid var(--fetch-brown);cursor:pointer;transition:background .25s,color .25s,transform .25s}
.fetch-btn{background:var(--fetch-brown);color:var(--fetch-paper)}
.fetch-btn::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--fetch-blue);flex:0 0 auto}
.fetch-btn:hover{background:#5f4636;color:var(--fetch-paper);transform:translateY(-1px)}
.fetch-btn--large{padding:19px 34px;font-size:15px}
.fetch-btn--small{padding:10px 18px;font-size:11.5px}
.wp-block-button__link,.fetch-btn--outline{background:transparent;color:var(--fetch-brown)}
.wp-block-button__link:hover,.fetch-btn--outline:hover{background:var(--fetch-brown);color:var(--fetch-paper)}
.fetch-btn--outline::before{display:none}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.fetch-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:26px 0 0}
.fetch-actions p{margin:0}
.fetch-admin-note{display:block;margin-top:8px;font-size:12px;color:#8a3b12}

/* ---------- Sections ---------- */
.fetch-section{padding:var(--fetch-section) max(24px,calc((100% - var(--fetch-max))/2))}
.fetch-section>*:last-child{margin-bottom:0}
.fetch-butter{background:var(--fetch-butter)}
.fetch-white{background:var(--fetch-white)}
.fetch-center{text-align:center}
.fetch-center>p,.fetch-narrow>p,.fetch-narrow>h1,.fetch-narrow>h2{max-width:62ch}
.fetch-center>p{margin-left:auto;margin-right:auto}
.fetch-center .fetch-actions,.fetch-center .wp-block-buttons{justify-content:center}
.fetch-eyebrow{font-size:12px;font-weight:600;letter-spacing:.26em;text-transform:uppercase;color:var(--fetch-tag);margin-bottom:14px}
.fetch-lede{font-size:clamp(18px,2.2vw,21px)}
.fetch-tagline{font-family:var(--fetch-serif);font-style:italic;font-size:18px;color:var(--fetch-tag);margin-top:26px}
.fetch-dots{border:0;border-top:2px dotted var(--fetch-taupe);margin:0 0 28px;width:120px}
.fetch-center .fetch-dots{margin-left:auto;margin-right:auto}
.wp-block-columns{display:flex;flex-wrap:wrap;gap:var(--fetch-gap);margin:0}
.wp-block-column{flex:1 1 0;min-width:0;align-self:center}
.fetch-cards>.wp-block-column,.fetch-values>.wp-block-column{align-self:stretch}
.fetch-top>.wp-block-column{align-self:flex-start}
.wp-block-column>*:last-child{margin-bottom:0}
@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}
@media (max-width:781px){.wp-block-columns>.wp-block-column{flex-basis:100%}}
.wp-block-image{margin:0}
.wp-block-image img{border-radius:var(--fetch-radius);width:100%}
.fetch-shadow img{box-shadow:0 26px 50px -28px rgba(74,52,38,.45)}

/* ---------- Product cards ---------- */
.fetch-cards{align-items:stretch;margin-top:40px}
.fetch-card{background:var(--fetch-white);border:1px solid var(--fetch-line);border-radius:var(--fetch-radius);padding:18px 18px 26px;text-align:center;display:flex;flex-direction:column}
.fetch-card .wp-block-image img{border-radius:12px}
.fetch-step{font-size:12px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--fetch-tag);margin:22px 0 6px}
.fetch-card h3{margin-bottom:8px}
.fetch-card p{font-size:15.5px}
.fetch-link a{font-size:12.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;border-bottom:2px dotted var(--fetch-taupe);padding-bottom:3px}

/* ---------- Product detail ---------- */
@media (min-width:782px){.fetch-product .wp-block-column:first-child{flex:0 1 40%}}
.fetch-price{font-family:var(--fetch-serif);font-size:clamp(34px,4.4vw,46px);line-height:1;margin:6px 0 4px}
.fetch-ship{font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--fetch-tag);margin-bottom:18px}
.fetch-meta{font-size:15px;border-top:1px dotted var(--fetch-taupe);padding-top:14px;margin-top:14px}
.fetch-meta strong{font-weight:600;letter-spacing:.06em}
.fetch-notice{font-size:14.5px;font-weight:500;border:1.5px solid var(--fetch-brown);border-radius:12px;padding:12px 16px;background:rgba(255,255,255,.55)}
.fetch-list ul{list-style:none;padding:0;margin:0 0 20px}
.fetch-list li{position:relative;padding:10px 0 10px 22px;border-top:1px dotted var(--fetch-taupe);font-size:16px}
.fetch-list li:last-child{border-bottom:1px dotted var(--fetch-taupe)}
.fetch-list li::before{content:"";position:absolute;left:0;top:19px;width:8px;height:8px;border-radius:50%;background:var(--fetch-blue)}
.fetch-clarity{background:var(--fetch-white);border:1px solid var(--fetch-line);border-radius:var(--fetch-radius);padding:26px 28px;margin-top:30px;max-width:720px}
.fetch-clarity ul{margin:0}
.fetch-clarity h3{margin-bottom:14px}
.fetch-values{align-items:stretch;margin-top:10px}
.fetch-value{background:var(--fetch-white);border:1px solid var(--fetch-line);border-radius:var(--fetch-radius);padding:28px 26px}
.fetch-value p{font-size:15.5px}
.fetch-handle{font-size:20px;font-weight:600;letter-spacing:.04em}

/* ---------- Contact form ---------- */
.fetch-form{background:var(--fetch-white);border:1px solid var(--fetch-line);border-radius:var(--fetch-radius);padding:clamp(22px,4vw,36px);max-width:680px;display:grid;gap:18px}
.fetch-form label{display:block;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--fetch-tag);margin-bottom:6px}
.fetch-form input,.fetch-form select,.fetch-form textarea{width:100%;font:400 16px var(--fetch-sans);color:var(--fetch-brown);background:var(--fetch-paper);border:1.5px solid var(--fetch-taupe);border-radius:10px;padding:13px 14px}
.fetch-form textarea{min-height:130px;resize:vertical}
.fetch-form .fetch-hp{position:absolute;left:-9999px}
.fetch-form button{justify-self:start}
.fetch-success,.fetch-error{border-radius:12px;padding:16px 18px;font-weight:500;max-width:680px;margin-bottom:18px}
.fetch-success{background:#E7F0DF;border:1.5px solid #6E8B57}
.fetch-error{background:#F9E4DA;border:1.5px solid #B4532A}

/* ---------- Plain pages (privacy policy, 404) ---------- */
.fetch-plain{max-width:760px;margin:0 auto;padding:var(--fetch-section) 24px}

/* ---------- Footer ---------- */
.fetch-footer{background:var(--fetch-butter);border-top:1px solid var(--fetch-line);padding:56px 24px 34px;text-align:center}
.fetch-footer .fetch-logo{display:inline-block}
.fetch-footer .fetch-logo img,.fetch-footer .custom-logo{height:84px;width:auto;margin:0 auto}
.fetch-footer__tag{font-family:var(--fetch-serif);font-style:italic;font-size:19px;margin:12px 0 22px}
.fetch-footer ul{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;margin:0 0 20px;padding:0}
.fetch-footer a{font-size:14px;font-weight:500;text-decoration:none}
.fetch-footer a:hover{text-decoration:underline}
.fetch-footer__links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;margin-bottom:22px}
.fetch-footer__copy{font-size:12.5px;color:var(--fetch-tag);margin:0}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.fetch-btn,.wp-block-button__link{transition:none}}
