/* ==========================================================================
   SOWPARNIKA CODED SITE · shared header, mobile menu, footer and WhatsApp button
   Used by every coded page (included from /site/partials/). Colours, sizes and layout match the
   live sowparnika.com header and footer; fonts are the site fonts (Cormorant Garamond for
   headings, Poppins for text). Classes are prefixed .sp- so they never clash with a page's styles.
   ========================================================================== */

:root{
  --sp-white: #ffffff;
  --sp-ink: #30312f;            /* menu text on the live site */
  --sp-ink-2: #5a5b58;
  --sp-line: rgba(48, 49, 47, .12);
  --sp-accent: #ba3d0d;         /* brand orange-red: button, current page, hovers */
  --sp-accent-dark: #963009;
  --sp-foot: #7a3518;           /* warm orange-brown from the banner's corner; dark brown is its shade */
  --sp-foot-text: #f1e2d2;
  --sp-foot-muted: #d9bfa8;
  --sp-serif: "Cormorant Garamond", Georgia, serif;
  --sp-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sp-header-h: 94px;
  --sp-pad: clamp(20px, 4vw, 56px);
  --sp-ease: cubic-bezier(.25, .7, .2, 1);
}
html{ scroll-padding-top: var(--sp-header-h); }
body{ margin: 0; overflow-x: clip; }
.sp-header, .sp-menu, .sp-footer, .sp-whatsapp{ box-sizing: border-box; font-family: var(--sp-sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
.sp-header *, .sp-menu *, .sp-footer *{ box-sizing: border-box; }
.sp-header a, .sp-menu a, .sp-footer a{ color: inherit; text-decoration: none; }
.sp-header img, .sp-footer img{ display: block; max-width: 100%; height: auto; }
.sp-header button{ font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.sp-header :focus-visible, .sp-menu :focus-visible, .sp-footer :focus-visible, .sp-whatsapp:focus-visible{ outline: 2px solid var(--sp-accent); outline-offset: 3px; }

.sp-wrap{ width: min(1320px, 100% - var(--sp-pad) * 2); margin-inline: auto; }

/* the header is fixed; this keeps the page from starting underneath it */
.sp-header-space{ height: var(--sp-header-h); }

/* "Connect with Us": the live site's rounded orange-red button */
.sp-cta{ display: inline-flex; align-items: center; justify-content: center; height: 47px; padding: 0 26px; border-radius: 6px;
  /* the footer's colours: warm orange-brown shaded into dark brown */
  background:
    radial-gradient(90% 140% at 100% 100%, rgba(30, 9, 5, .55), transparent 70%),
    linear-gradient(160deg, #8c3f1b 0%, #6a2c15 55%, #4a1d0e 100%);
  color: #fff !important; font: 600 16px/1 var(--sp-sans); letter-spacing: -.02em; white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(46, 15, 10, .7);
  transition: filter .3s, transform .3s var(--sp-ease), box-shadow .3s; }
.sp-cta:hover{ filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(46, 15, 10, .8); }

/* ---------- Header ---------- */
.sp-header{ position: fixed; inset: 0 0 auto; z-index: 50; background: var(--sp-white); transition: transform .5s var(--sp-ease), box-shadow .3s; }
.sp-header.is-hidden{ transform: translateY(-100%); }
.sp-header.is-scrolled{ box-shadow: 0 1px 0 var(--sp-line); }
.sp-header-in{ height: var(--sp-header-h); display: flex; align-items: center; gap: 40px; padding: 0 var(--sp-pad); }
.sp-logo img{ height: 73px; width: auto; }
.sp-nav{ margin-inline: auto; }
.sp-nav > ul{ display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.sp-nav li{ position: relative; }
.sp-nav > ul > li > a{ display: block; padding: 36px 0; font: 600 15px/1 var(--sp-sans); letter-spacing: -.01em; text-transform: uppercase; color: var(--sp-ink); transition: color .25s; }
.sp-nav > ul > li > a:hover, .sp-nav > ul > li:hover > a, .sp-nav > ul > li > a.is-current{ color: var(--sp-accent); }
.sp-sub{ position: absolute; top: 100%; left: -20px; min-width: 220px; list-style: none; margin: 0; padding: 10px 0; background: var(--sp-white);
  border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .25), 0 0 0 1px var(--sp-line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .3s var(--sp-ease); }
.sp-sub a{ display: block; padding: 10px 20px; font: 500 15px/1.3 var(--sp-sans); color: var(--sp-ink); }
.sp-sub a:hover{ color: var(--sp-accent); }
.sp-nav li:hover > .sp-sub, .sp-nav li:focus-within > .sp-sub{ opacity: 1; visibility: visible; transform: none; }
.sp-header-end{ display: flex; align-items: center; }
.sp-burger{ display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.sp-burger span{ position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--sp-ink); transition: transform .4s var(--sp-ease); }
.sp-burger span:first-child{ top: 17px; } .sp-burger span:last-child{ top: 25px; }
.sp-burger[aria-expanded="true"] span:first-child{ transform: translateY(4px) rotate(45deg); }
.sp-burger[aria-expanded="true"] span:last-child{ transform: translateY(-4px) rotate(-45deg); }

/* mobile menu */
.sp-menu{ position: fixed; inset: var(--sp-header-h) 0 0; z-index: 49; background: var(--sp-white); padding: 16px var(--sp-pad) 40px; overflow-y: auto; border-top: 1px solid var(--sp-line); }
.sp-menu[hidden]{ display: none; }
.sp-menu nav{ display: flex; flex-direction: column; }
.sp-menu a{ padding: 14px 0; border-bottom: 1px solid var(--sp-line); font: 600 15px/1.2 var(--sp-sans); text-transform: uppercase; color: var(--sp-ink); }
.sp-menu a.sub{ padding: 9px 0 9px 16px; font: 400 15px/1.3 var(--sp-sans); text-transform: none; color: var(--sp-ink-2); border: 0; }
.sp-menu .sp-phone-m{ margin-top: 18px; border: 0; font: 500 15px/1.4 var(--sp-sans); text-transform: none; color: var(--sp-ink-2); }
.sp-menu .sp-cta{ margin-top: 16px; padding: 0 26px; border: 0; text-transform: none; }
html.sp-menu-open{ overflow: hidden; }

/* ---------- Footer (the first coded design: logo + social names, offices, four link columns,
   small spaced capitals). Background: the banner's warm orange-brown, well shaded with dark brown. ---------- */
.sp-footer{ color: var(--sp-foot-text); font-size: 14px; line-height: 1.7;
  background:
    radial-gradient(60% 85% at 100% 100%, rgba(30, 9, 5, .70), transparent 72%),
    radial-gradient(55% 80% at 0% 100%, rgba(30, 9, 5, .55), transparent 72%),
    radial-gradient(50% 70% at 75% 0%, rgba(36, 11, 7, .40), transparent 72%),
    linear-gradient(160deg, #7c3618 0%, #5e2713 45%, #431a0d 100%); }
.sp-foot-top{ display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 56px 0 40px; border-bottom: 1px solid rgba(243, 230, 214, .16); }
.sp-foot-logo{ height: 64px !important; width: auto !important; }
.sp-social{ display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.sp-footer h4{ font: 500 10.5px/1 var(--sp-sans); letter-spacing: .2em; text-transform: uppercase; }
/* social: white icons only */
.sp-social{ gap: 22px !important; }
.sp-social a{ display: grid; place-items: center; width: 26px; height: 26px; opacity: .92; transition: opacity .2s, transform .25s var(--sp-ease); }
.sp-social a:hover{ opacity: 1; transform: translateY(-2px); }
.sp-social svg{ width: 22px; height: 22px; fill: #fff; }
.sp-footer li a:hover, .sp-foot-tel a:hover{ color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* email with a white envelope icon */
.sp-mail{ display: inline-flex; align-items: center; gap: 8px; }
.sp-mail .sp-ic{ width: 17px; height: 17px; fill: #fff; flex: none; }
.sp-foot-grid{ --sp-addr-gap: clamp(48px, 7vw, 120px);
  display: grid; grid-template-columns: minmax(0, calc(360px + var(--sp-addr-gap))) repeat(4, minmax(0, 1fr)); column-gap: 28px; row-gap: 40px; padding: 48px 0; }
/* a clear gap between the office details and the link columns (inside the first column, so the
   address keeps its full 360px); the link columns sit closer together */
.sp-foot-addr{ padding-right: var(--sp-addr-gap); }
.sp-footer h4{ margin: 0 0 20px; color: #fff; }
.sp-foot-addr h4 + p{ margin-bottom: 26px; }
.sp-foot-addr p{ margin: 0; max-width: 340px; color: var(--sp-foot-text); }
.sp-foot-tel{ margin-top: 22px !important; line-height: 1.9; }
.sp-footer ul:not(.sp-social){ list-style: none; padding: 0; margin: 0; }
.sp-footer ul:not(.sp-social) li{ margin-bottom: 11px; }
.sp-footer li a{ color: var(--sp-foot-text); }
.sp-foot-bar{ display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(243, 230, 214, .16); font-size: 12px; color: var(--sp-foot-muted); }
.sp-foot-bar a{ margin-left: 24px; color: var(--sp-foot-muted); }
.sp-foot-bar a:hover{ color: #fff; }

/* WhatsApp: the original green WhatsApp logo, bottom right */
.sp-whatsapp{ position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  transition: transform .3s var(--sp-ease), background .3s; }
.sp-whatsapp:hover{ background: #1ebe5b; transform: translateY(-2px); }
.sp-whatsapp svg{ width: 30px; height: 30px; fill: #fff; }
.sp-whatsapp span{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* label for screen readers only */

/* ---------- Responsive ---------- */
@media (max-width: 1180px){
  .sp-nav, .sp-header-end{ display: none; }
  .sp-burger{ display: block; }
  .sp-foot-grid{ grid-template-columns: repeat(4, 1fr); }
  .sp-foot-addr{ grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 860px){
  :root{ --sp-header-h: 72px; }
  .sp-logo img{ height: 54px; }
  .sp-foot-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .sp-foot-bar{ padding-bottom: 84px; }   /* room for the WhatsApp button */
  .sp-foot-bar a{ margin: 0 20px 0 0; }
  .sp-whatsapp{ right: 14px; bottom: 14px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce){
  .sp-header, .sp-header *, .sp-menu *, .sp-cta, .sp-whatsapp{ transition-duration: .01ms !important; }
}
