/*
Theme Name:   Ivappon
Theme URI:    https://ivappon.com
Description:  Flatsome child theme for the Ivappon brand site. Holds all brand styling; the parent theme stays untouched so Flatsome updates never overwrite design.
Author:       Ivappon
Template:     flatsome
Version:      1.0.1
Text Domain:  ivappon
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root{
  --ink:#12283d;
  --ink2:#47586a;
  --ink3:#8fa0b2;
  --steel:#5d87ab;
  --amber:#c8400f;
  --amber-dk:#a83409;
  --amber-bg:#fdf3ee;
  --paper:#fafcfe;
  --wash:#eef4f9;
  --line:#dde7f0;

  --font-display:"Bricolage Grotesque","Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-body:"Archivo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --wrap:1240px;
  --radius:14px;
}

/* ============================================================
   2. Base
   ============================================================ */
body.ipp-theme{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}

/* full-bleed sections need 100vw; clip prevents the scrollbar-width overflow */
html{overflow-x:clip}

body.ipp-theme h1,
body.ipp-theme h2,
body.ipp-theme h3,
body.ipp-theme h4,
body.ipp-theme h5{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-.022em;
  line-height:1.15;
  color:var(--ink);
}

body.ipp-theme h1{font-size:clamp(34px,4.4vw,58px);font-weight:800}
body.ipp-theme h2{font-size:clamp(26px,3vw,38px);font-weight:700}
body.ipp-theme h3{font-size:clamp(19px,1.6vw,23px);font-weight:700}

body.ipp-theme a{color:var(--amber)}
body.ipp-theme a:hover{color:var(--amber-dk)}
body.ipp-theme :focus-visible{outline:3px solid var(--steel);outline-offset:3px;border-radius:6px}

body.ipp-theme p{margin-bottom:1em}

.ipp-wrap{max-width:var(--wrap);margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}

/* small uppercase label, used all over the brand */
.ipp-eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--steel);
  margin:0 0 14px;
}

/* ============================================================
   3. Buttons — override Flatsome's defaults
   ============================================================ */
body.ipp-theme .button,
body.ipp-theme button.button,
body.ipp-theme input[type="submit"],
body.ipp-theme .ipp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:14px 26px;
  border-radius:12px;
  border:2px solid transparent;
  font-family:var(--font-body);
  font-size:16.5px;
  font-weight:700;
  letter-spacing:.005em;
  text-transform:none;
  line-height:1;
  margin-bottom:0;
  transition:transform .14s ease,background .14s ease,color .14s ease,box-shadow .14s ease;
}

body.ipp-theme .button:active,
body.ipp-theme .ipp-btn:active{transform:translateY(1px)}

body.ipp-theme .button.primary,
body.ipp-theme .ipp-btn--primary{
  background:var(--amber);
  border-color:var(--amber);
  color:#fff;
  box-shadow:0 6px 16px rgba(200,64,15,.24);
}
body.ipp-theme .button.primary:hover,
body.ipp-theme .ipp-btn--primary:hover{
  background:var(--amber-dk);
  border-color:var(--amber-dk);
  color:#fff;
}

body.ipp-theme .button.secondary,
body.ipp-theme .ipp-btn--ghost{
  background:#fff;
  border-color:var(--line);
  color:var(--ink);
  box-shadow:none;
}
body.ipp-theme .button.secondary:hover,
body.ipp-theme .ipp-btn--ghost:hover{
  background:var(--wash);
  border-color:#cfdce9;
  color:var(--ink);
}

/* on dark backgrounds */
.ipp-on-dark .ipp-btn--ghost{
  background:transparent;
  border-color:rgba(255,255,255,.28);
  color:#fff;
}
.ipp-on-dark .ipp-btn--ghost:hover{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.5);
  color:#fff;
}

/* ============================================================
   4. Header / nav
   ============================================================ */
body.ipp-theme .header-main{background:var(--paper)}

body.ipp-theme .header .nav > li > a,
body.ipp-theme .header .nav-vertical > li > a{
  font-family:var(--font-body);
  font-size:15.5px;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--ink);
}
body.ipp-theme .header .nav > li > a:hover,
body.ipp-theme .header .nav > li.active > a{color:var(--amber)}

body.ipp-theme .header .nav > li > a .nav-dropdown{color:inherit}

/* brand wordmark in the logo area */
body.ipp-theme .logo a{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
}

/* brand wordmark: Flatsome ships a placeholder logo image, replace it with text */
body.ipp-theme .logo img{display:none!important}
body.ipp-theme .header .logo a,
body.ipp-theme .logo a{
  display:inline-flex;
  align-items:center;
  font-family:var(--font-display);
  font-weight:800;
  font-size:20px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
}
body.ipp-theme .header .logo a::after,
body.ipp-theme .logo a::after{content:"IVAPPON"}

/* a shop button placed in the header */
body.ipp-theme .header .ipp-btn{min-height:44px;padding:11px 20px;font-size:15px;border-radius:10px}

/* ============================================================
   5. Shop / product cards
   ============================================================ */
body.ipp-theme .product-small .box-image{
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--wash);
}
body.ipp-theme .product-small .box-text{padding-top:14px}
body.ipp-theme .product-small .product-title a,
body.ipp-theme .product-small .woocommerce-loop-product__title{
  font-family:var(--font-display);
  font-size:17px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
}
body.ipp-theme .product-small .product-title a:hover{color:var(--amber)}

body.ipp-theme .product-small .price,
body.ipp-theme .product-small .amount{
  font-family:var(--font-body);
  font-size:16px;
  font-weight:600;
  color:var(--ink2);
  letter-spacing:.01em;
}
body.ipp-theme .price del{color:var(--ink3);opacity:1}
body.ipp-theme .price ins{color:var(--amber);text-decoration:none;font-weight:700}

body.ipp-theme .product-small .badge-container .badge{
  border-radius:6px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:var(--ink);
  color:#fff;
  padding:5px 9px;
}

/* single product */
body.ipp-theme .product-title{font-family:var(--font-display);font-size:clamp(26px,2.6vw,34px)}
body.ipp-theme .product-page-price .amount{font-family:var(--font-body);font-size:24px;font-weight:700;color:var(--ink)}
body.ipp-theme .product-info .woocommerce-product-details__short-description{color:var(--ink2)}
body.ipp-theme .product-gallery .woocommerce-product-gallery__image{border-radius:var(--radius);overflow:hidden}

/* catalog mode: the inquiry block that replaces add-to-cart */
body.ipp-theme .ipp-inquiry{
  margin-top:26px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--wash);
}
body.ipp-theme .ipp-inquiry__note{
  margin:0 0 16px;
  font-size:15px;
  line-height:1.55;
  color:var(--ink2);
}
body.ipp-theme .ipp-inquiry .ipp-btn{width:100%}

/* Woo notices */
body.ipp-theme .woocommerce-message,
body.ipp-theme .woocommerce-info,
body.ipp-theme .woocommerce-error{
  border-radius:12px;
  border-top:0;
  background:var(--wash);
  color:var(--ink);
}

/* ============================================================
   6. Forms
   ============================================================ */
body.ipp-theme input[type="text"],
body.ipp-theme input[type="email"],
body.ipp-theme input[type="search"],
body.ipp-theme input[type="tel"],
body.ipp-theme textarea,
body.ipp-theme select,
body.ipp-theme .form-control{
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16.5px;
  padding:13px 16px;
  min-height:52px;
}
body.ipp-theme input::placeholder,
body.ipp-theme textarea::placeholder{color:var(--ink3)}

/* ============================================================
   7. Footer
   ============================================================ */
body.ipp-theme .footer-wrapper{
  background:var(--ink);
  color:#c3d2e0;
  border-top:0;
}
body.ipp-theme .footer-wrapper h4,
body.ipp-theme .footer-wrapper .widget-title{
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#fff;
}
body.ipp-theme .footer-wrapper a{color:#c3d2e0}
body.ipp-theme .footer-wrapper a:hover{color:#fff}
body.ipp-theme .footer-bottom{
  background:var(--ink);
  border-top:1px solid rgba(255,255,255,.12);
  color:var(--ink3);
  font-size:13.5px;
}

/* ============================================================
   8. Home page blocks (ipp-*)
   ============================================================ */
/* Flatsome clamps page content to a 1080px container, which would inset the
   coloured bands. Sections get full viewport width; .ipp-wrap keeps the text
   column at 1240px. */
body.ipp-theme .page-content .section{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  padding-left:0!important;
  padding-right:0!important;
}

body.ipp-theme .ipp-section{padding:76px 0}
body.ipp-theme .ipp-section--wash{background:var(--wash)}
body.ipp-theme .ipp-section--tight{padding:56px 0}

/* hide the Flatsome page title on the home page */
body.home.ipp-theme .page-title,
body.home.ipp-theme .page-title-inner,
body.home.ipp-theme .page-header{display:none!important}
body.home.ipp-theme .page-content{padding-top:0}

/* ---- hero ---- */
.ipp-hero{
  background:var(--ink);
  color:#fff;
  padding:86px 0 78px;
  position:relative;
  overflow:hidden;
}
.ipp-hero::after{
  content:"";
  position:absolute;
  right:-16%;
  top:-30%;
  width:66%;
  height:170%;
  background:radial-gradient(closest-side,rgba(93,135,171,.34),rgba(93,135,171,0) 72%);
  pointer-events:none;
}
.ipp-hero__grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:56px;
  align-items:end;
  position:relative;
  z-index:1;
}
.ipp-hero .ipp-eyebrow{color:var(--steel)}
.ipp-hero h1{color:#fff;margin-bottom:18px;font-weight:800}
.ipp-accent{color:#e8703a}
.ipp-lede{
  font-size:18px;
  line-height:1.62;
  color:#c3d2e0;
  max-width:34em;
  margin:0 0 28px;
}
.ipp-actions{display:flex;flex-wrap:wrap;gap:12px}
.ipp-hero .ipp-btn--ghost{border-color:rgba(255,255,255,.28);color:#fff;background:transparent}
.ipp-hero .ipp-btn--ghost:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.5);color:#fff}

/* spec card in the hero */
.ipp-spec{
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius);
  background:rgba(255,255,255,.04);
  padding:22px 24px 8px;
  backdrop-filter:blur(4px);
}
.ipp-spec__title{
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--ink3);
  margin:0 0 8px;
}
.ipp-spec__row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:18px;
  padding:13px 0;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:15px;
}
.ipp-spec__row span{color:var(--ink3);font-family:var(--font-mono);font-size:12.5px;letter-spacing:.06em;text-transform:uppercase}
.ipp-spec__row b{color:#fff;font-weight:600;text-align:right}

/* ---- section header ---- */
.ipp-head{max-width:none;margin-bottom:34px}
.ipp-head h2{margin:0}
.ipp-head .ipp-sub{margin-top:10px;color:var(--ink2);font-size:17px;max-width:38em}

/* ---- category cards ---- */
.ipp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ipp-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:34px 30px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.ipp-card:hover{
  border-color:#cfdce9;
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(18,40,61,.09);
  text-decoration:none;
  color:var(--ink);
}
.ipp-card__idx{
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--amber);
}
.ipp-card h3{margin:0;font-size:24px}
.ipp-card p{margin:0;color:var(--ink2);font-size:15.5px;line-height:1.55}
.ipp-card__cta{
  margin-top:12px;
  font-size:15px;
  font-weight:700;
  color:var(--amber);
}

/* ---- value props ---- */
.ipp-values{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
}
.ipp-value__num{
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--ink3);
  padding-bottom:10px;
  margin-bottom:14px;
  border-bottom:2px solid var(--ink);
  display:block;
}
.ipp-value h3{font-size:18px;margin:0 0 8px}
.ipp-value p{margin:0;color:var(--ink2);font-size:15.5px;line-height:1.55}

/* ---- support strip ---- */
.ipp-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:40px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  flex-wrap:wrap;
}
.ipp-strip h2{font-size:clamp(22px,2.2vw,28px);margin:0 0 6px}
.ipp-strip p{margin:0;color:var(--ink2);font-size:15.5px}

/* ---- centered page intro (about / contact / policies) ---- */
.ipp-page-head{padding:64px 0 36px}
.ipp-page-head h1{margin:0 0 14px}
.ipp-page-head .ipp-lede{color:var(--ink2);font-size:18px;margin:0;max-width:40em}

.ipp-prose{max-width:720px}
.ipp-prose h2{margin:38px 0 12px;font-size:24px}
.ipp-prose h3{margin:26px 0 8px;font-size:19px}
.ipp-prose p,
.ipp-prose li{color:var(--ink2);font-size:16.5px;line-height:1.68}
.ipp-prose ul{padding-left:20px;margin-bottom:1em}
.ipp-prose li{margin-bottom:8px}
.ipp-prose strong{color:var(--ink)}

/* contact rows */
.ipp-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}
.ipp-contact-card{
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}
.ipp-contact-card .ipp-eyebrow{margin-bottom:8px}
.ipp-contact-card b{font-size:17px;font-weight:700;color:var(--ink)}
.ipp-contact-card p{margin:6px 0 0;font-size:15px;color:var(--ink2);line-height:1.55}

/* ============================================================
   9. Responsive
   ============================================================ */
@media (max-width:1024px){
  .ipp-hero__grid{grid-template-columns:minmax(0,1fr);gap:36px;align-items:start}
  .ipp-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
}

@media (max-width:767px){
  body.ipp-theme{font-size:16.5px}
  body.ipp-theme .ipp-section{padding:56px 0}
  .ipp-hero{padding:58px 0 52px}
  .ipp-hero::after{display:none}
  .ipp-hero h1{font-size:clamp(30px,8.4vw,38px)}
  .ipp-lede{font-size:17px}
  .ipp-cards{grid-template-columns:minmax(0,1fr)}
  .ipp-values{grid-template-columns:minmax(0,1fr);gap:24px}
  .ipp-strip{padding:28px;gap:20px}
  .ipp-strip .ipp-btn{width:100%}
  .ipp-contact-grid{grid-template-columns:minmax(0,1fr)}
  .ipp-actions .ipp-btn{width:100%}
}

@media (prefers-reduced-motion:reduce){
  body.ipp-theme *{transition:none!important;animation:none!important}
}
