/*
Theme Name: Paynwash Solution
Theme URI: https://paynwash.my
Author: Paynwash Solution Sdn Bhd
Description: Custom WordPress theme for Paynwash Solution Sdn Bhd — a smart cashless payment platform for laundries in Malaysia. Front page built as a single-page site: hero, who-we-serve, products, testimonials, blog preview and contact.
Version: 1.0
Requires PHP: 7.4
Text Domain: paynwash
*/

/* ============================
   DESIGN TOKENS
   ============================ */
:root{
  --ink:      #0F2438;   /* deep navy — headings, nav */
  --teal:     #12786F;   /* suds teal — primary brand */
  --teal-dark:#0D5952;
  --foam:     #F5FAF9;   /* page background */
  --bubble:   #DCEEEC;   /* soft section background */
  --gold:     #E3A63B;   /* coin gold — CTA accent */
  --gold-dark:#C68A24;
  --mist:     #5E7684;   /* secondary text */
  --white:    #FFFFFF;
  --line:     rgba(15,36,56,0.10);

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 18px;
  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0 0 .5em; line-height:1.15; color: var(--ink); }
p{ margin:0 0 1em; }
.container{ max-width: var(--max); margin:0 auto; padding:0 24px; }
section{ padding: 96px 0; position:relative; }
.eyebrow{
  display:inline-block; font-family: var(--font-mono); font-size:.78rem;
  letter-spacing:.12em; text-transform:uppercase; color: var(--teal-dark);
  background: var(--bubble); padding:6px 14px; border-radius: 999px; margin-bottom:18px;
}
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.section-head p{ color: var(--mist); font-size:1.05rem; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px; font-family: var(--font-display);
  font-weight:600; font-size:.95rem; padding: 13px 26px; border-radius: 999px;
  border:2px solid transparent; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(227,166,59,.35); }
.btn-primary:hover{ background: var(--gold-dark); }
.btn-outline{ border-color: var(--white); color: var(--white); }
.btn-outline:hover{ border-color: var(--gold); color: var(--gold); }
.btn-dark{ background: var(--ink); color:var(--white); }

/* Focus visibility */
a:focus-visible, button:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }

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

/* ============================
   HEADER
   ============================ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(245,250,249,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:82px; }
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; font-size:1.15rem; color: var(--ink); }
.brand .mark{
  width:38px; height:38px; border-radius:50%; background: var(--ink);
  position:relative; flex:none;
}
.brand .mark::before{
  content:""; position:absolute; inset:7px; border-radius:50%;
  border:3px solid var(--gold); border-top-color: transparent; border-right-color: transparent;
  transform: rotate(45deg);
}
.main-nav ul{ display:flex; gap:34px; }
.main-nav a{ font-size:.95rem; font-weight:500; color: var(--ink); opacity:.85; }
.main-nav a:hover{ opacity:1; color: var(--teal-dark); }
.header-actions{ display:flex; align-items:center; gap:14px; }
.header-actions .btn{ padding:10px 20px; font-size:.88rem; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; }
.nav-toggle span{ display:block; width:24px; height:2px; background: var(--ink); margin:5px 0; }

@media (max-width: 900px){
  .main-nav{
    position:absolute; top:82px; left:0; right:0; background: var(--foam);
    border-bottom:1px solid var(--line); padding:20px 24px; display:none;
  }
  .main-nav.open{ display:block; }
  .main-nav ul{ flex-direction:column; gap:16px; }
  .nav-toggle{ display:block; }
  .header-actions .btn-outline{ display:none; }
}

/* ============================
   HERO — porthole signature
   ============================ */
.hero{ padding: 84px 0 100px; overflow:hidden; }
.hero .container{ display:grid; grid-template-columns: 1.05fr .95fr; gap:48px; align-items:center; }
.hero h1{ font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.hero .lead{ font-size:1.15rem; color: var(--mist); max-width:480px; }
.hero-ctas{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:36px; margin-top:52px; }
.hero-stats div strong{ display:block; font-family: var(--font-mono); font-size:1.6rem; color: var(--teal-dark); }
.hero-stats div span{ font-size:.85rem; color: var(--mist); }

/* The porthole: washing-machine-door motif, the page's signature element */
.porthole-wrap{ position:relative; width:100%; aspect-ratio: 1/1; max-width:460px; margin:0 auto; }
.porthole{
  position:absolute; inset:0; border-radius:50%;
  background: conic-gradient(from 180deg, var(--teal) 0deg, var(--bubble) 140deg, var(--teal) 360deg);
  animation: spin 14s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.porthole::after{
  content:""; position:absolute; inset:14px; border-radius:50%;
  background: var(--foam); border: 10px solid var(--ink);
}
.porthole-inner{
  position:absolute; inset:34px; border-radius:50%; background: var(--white);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  box-shadow: inset 0 0 0 2px var(--line);
}
.porthole-inner .big{ font-family: var(--font-mono); font-size:2.1rem; color: var(--ink); font-weight:700; }
.porthole-inner .small{ font-size:.8rem; color: var(--mist); text-align:center; padding:0 30px; }
.porthole-bolts span{
  position:absolute; width:10px; height:10px; border-radius:50%; background: var(--ink);
}

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-stats{ flex-wrap:wrap; row-gap:20px; }
}

/* ============================
   WHO WE SERVE
   ============================ */
.serve-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:22px; }
.serve-card{
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  border:1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease;
}
.serve-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,36,56,.08); }
.serve-card .icon{
  width:46px; height:46px; border-radius:50%; background: var(--bubble); color: var(--teal-dark);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-weight:700; margin-bottom:18px;
}
.serve-card h3{ font-size:1.15rem; }
.serve-card p{ color: var(--mist); font-size:.95rem; margin-bottom:14px; }
.serve-card .go{ font-size:.85rem; font-weight:600; color: var(--teal-dark); }

@media (max-width: 1000px){ .serve-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .serve-grid{ grid-template-columns: 1fr; } }

/* ============================
   PRODUCTS
   ============================ */
.products{ background: var(--ink); color: var(--white); }
.products .section-head p{ color: rgba(255,255,255,.65); }
.products .eyebrow{ background: rgba(255,255,255,.1); color: var(--gold); }
.product-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:22px; }
.product-card{
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding:32px; display:flex; gap:20px; align-items:flex-start;
}
.product-card .ring{
  flex:none; width:56px; height:56px; border-radius:50%;
  border:3px solid var(--gold); border-top-color: transparent; display:flex;
  align-items:center; justify-content:center; font-family: var(--font-mono); font-size:.8rem;
}
.product-card h3{ color: var(--white); font-size:1.15rem; }
.product-card p{ color: rgba(255,255,255,.6); font-size:.95rem; margin-bottom:0; }

@media (max-width: 800px){ .product-grid{ grid-template-columns:1fr; } }

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:26px; }
.testimonial{
  background: var(--white); border-radius: var(--radius); padding:34px; border:1px solid var(--line);
}
.testimonial p.quote{ font-size:1.05rem; color: var(--ink); }
.testimonial .who{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.testimonial .avatar{ width:42px; height:42px; border-radius:50%; background: var(--bubble); }
.testimonial .who strong{ display:block; font-size:.92rem; }
.testimonial .who span{ font-size:.82rem; color: var(--mist); }
.placeholder-note{ font-size:.78rem; color: var(--mist); font-style:italic; margin-top:26px; }

@media (max-width: 800px){ .testimonial-grid{ grid-template-columns:1fr; } }

/* ============================
   BLOG PREVIEW
   ============================ */
.blog-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.blog-card{ background: var(--white); border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.blog-card .thumb{ height:150px; background: linear-gradient(135deg, var(--bubble), var(--teal)); }
.blog-card .body{ padding:22px; }
.blog-card .date{ font-family: var(--font-mono); font-size:.75rem; color: var(--teal-dark); }
.blog-card h3{ font-size:1.05rem; margin:8px 0; }
.blog-card p{ font-size:.9rem; color: var(--mist); margin-bottom:0; }

@media (max-width: 900px){ .blog-grid{ grid-template-columns: 1fr; } }

/* ============================
   CONTACT / CTA
   ============================ */
.contact{ background: var(--bubble); }
.contact-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:start; }
.contact h2{ font-size: clamp(1.6rem,2.4vw,2.2rem); }
.contact-form{ background: var(--white); border-radius: var(--radius); padding:32px; border:1px solid var(--line); }
.contact-form label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; }
.contact-form input, .contact-form textarea{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--line);
  font-family: var(--font-body); margin-bottom:18px; background: var(--foam);
}
.contact-form textarea{ min-height:110px; resize:vertical; }
.support-note{ font-size:.9rem; color: var(--mist); margin-top:24px; }

@media (max-width: 860px){ .contact-wrap{ grid-template-columns:1fr; } }

/* ============================
   FOOTER
   ============================ */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 30px; font-size:.9rem; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:36px; margin-bottom:50px; }
.footer-grid h4{ color: var(--white); font-size:.95rem; margin-bottom:16px; }
.footer-grid li{ margin-bottom:10px; }
.footer-grid a:hover{ color: var(--gold); }
.footer-brand .brand{ color: var(--white); margin-bottom:14px; }
.footer-brand .brand .mark::before{ border-color: var(--gold); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.8rem;
}

@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
