/*
Theme Name: Clutch Labs
Theme URI: https://clutchlabs.app/
Author: Clutch Labs
Author URI: https://clutchlabs.app/
Description: 
Version: 1.1.0
Requires at least: 6.5
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: clutchlabs
*/

/* * { margin: 0; padding: 0; box-sizing: border-box;} */
:root {
  --background-color: #ffffff;
  --background-color-2: #F9F8F6;
  --text-color-1: #1a1e2b;
  --text-color-1: #1E2A32;
  --text-color-2: #2c3e4e;
  --accent-color-1: #1f3b4c;
  --accent-color-2: #1f6e43;
  --accent-color-3: #E67E22;
  --faded-color-1: #f7f9fc;
  --faded-color-2: #eef2f6;
  --wp--preset--spacing--20: 0.44rem;
  --wp--preset--spacing--30: 0.67rem;
  --wp--preset--spacing--40: 1rem;
  --wp--preset--spacing--50: 1.5rem;
  --wp--preset--spacing--60: 2.25rem;
  --wp--preset--spacing--70: 3.38rem;
  --wp--preset--spacing--80: 5.06rem;
}
.is-layout-flex { display: flex !important }
.wp-block-paragraph { margin-bottom: var(--wp--preset--spacing--30) }
/* TBD
@media (prefers-color-scheme: dark) {
  :root {
    --text-color-1: #ffffff;
    --text-color-2: #F9F8F6;
    --background-color-2: #F9F8F6;
    --background-color: #1a1e2b;
    --background-color: #1E2A32;
    --accent-color-1: #F9F8F6;
    --accent-color-2: #1f6e43;
    --accent-color-3: #E67E22;
    --faded-color-1: #2c3e4e;
    --faded-color-2: #eef2f6;
  }
}
*/
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color-1);
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* container utility */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* typography */
h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

.section { padding: 5rem 0; border-bottom: 1px solid var(--faded-color-2); }
.section:last-of-type { border-bottom: none; }
.bg-soft { background-color: var(--faded-color-1); }

/* header / nav */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--faded-color-2);
  background: var(--background-color);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-icon { width:48px;vertical-align: bottom; margin-right:0.5rem; }
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color-1);
  text-decoration: none;
  span {
    font-weight: normal;
    color: var(--accent-color-3);
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color-2);
  font-weight: 500;
}

.nav-links a:hover {
  color: #0f2a38;
  text-decoration: underline;
}

/* hero */
.hero {
  padding: 4rem 0 5rem 0;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-lead {
  font-size: 1.3rem;
  color: var(--text-color-2);
  max-width: 720px;
  margin-bottom: 2rem;
}

/* buttons & links
   WP: a button block puts its class on a wrapper <div>, so each rule also
   targets the link inside it (".btn > .wp-block-button__link"). */
a.btn, .btn > .wp-block-button__link {
  display: inline-block;
  background-color: var(--accent-color-1);
  color: var(--background-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
a.btn-light, .btn-light > .wp-block-button__link { background-color: var(--faded-color-2); color: var(--accent-color-1); }
a.btn-calltoaction, .btn-calltoaction > .wp-block-button__link { background-color: var(--accent-color-3); color: var(--background-color)!important; padding: 0.5rem 1.2rem;}
a.btn:hover, .btn > .wp-block-button__link:hover { background-color: color-mix(in OKLCH, var(--accent-color-1), white 15%); transform: translateY(-2px); }
a.btn-light:hover, .btn-light > .wp-block-button__link:hover { background-color: color-mix(in OKLCH, var(--faded-color-2), white 15%); }
a.btn-calltoaction:hover, .btn-calltoaction > .wp-block-button__link:hover { background-color: color-mix(in OKLCH, var(--accent-color-3), white 15%); }
.btn-row {display: flex; gap: 1rem; flex-wrap: wrap;}

/* WP: the size goes on the image inside the image block's <figure> */
img.appicon, .appicon img { width:4rem }

/* service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--background-color);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02), 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--faded-color-2);
  transition: all 0.2s;
}

.service-card:hover {
  border-color: color-mix(in OKLCH, var(--faded-color-2), white 15%);
}

/* checklist / bullet list */
.checklist {
  list-style: none;
  margin: 1.5rem 0;
  li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
}
.checklist li::before {
  content: "✓";
  font-weight: bold;
  color: var(--accent-color-2);
/*  background: #e0f2e9;*/
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 22px;
  font-size: 0.9rem;
}

.screenshots {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 48px;
    padding: 48px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.screenshot { text-align: center; }
.screenshot img { border-radius: 12px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15); }
.screenshot-macos img { max-width: 640px; width: 100%; }
.screenshot-ios img { max-width: 240px; width: 100%; }
.screenshot-label {
    margin-top: 16px;
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
}

.app-row {
  display: grid;
  gap: 1rem;
  grid: 7rem / 5rem auto 20ch;
}

.stat-badge, .skill-tag {
  background: var(--faded-color-2);
  padding: 0.2rem 1rem;
  border-radius: 40px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.stat-number { font-weight:bold;color:color-mix(in OKLCH, var(--text-color-1), black 15%); }

.result-card-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.8rem; margin-top: 2rem; }
.result-card {
  background: var(--background-color);
  border-radius: 28px;
  padding: 1.8rem;
  border-left: 5px solid var(--accent-color-2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  p:first-child {font-weight: 700; font-size: 1rem;}
}

.side-by-side {
  display: grid;
  gap: 8em;
  grid: auto / auto auto;
}

#assessment-template {
  margin-top:2rem;
  font-size: 1.3rem;
  ol {
    margin-left:2rem;
    li small {
      display:block;
      margin-left:0.5rem;
      font-size:.95rem;
      font-style: italic;
      color: color-mix(in OKLCH, var(--text-color-1), white 15%);;
    }
  }
}

.work-entry {padding-top:1rem}
.work-title {font-size:1.2rem}
.work-meta {font-size:0.9rem; color:color-mix(in OKLCH, var(--text-color-1), white 15%);}
.work-list {margin-left:1rem}

.footer {
  background: var(--faded-color-1);
  padding: 3rem 0;
  margin-top: 1rem;
  font-size: 0.95rem;
  border-top: 1px solid #e2e8f0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

#contact .container>div {
  max-width: 680px;
  background: #ffffff;
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid #eef2f6;
  margin-top: 1rem;
  > p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;}

}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .section { padding: 3rem 0; }
  .header-flex { flex-direction: column; align-items: flex-start; }
  .side-by-side { display:block; padding: 1rem 0; padding: 3rem 1.5rem }
  .app-row {
    display: block;
    padding: 1rem 0;
    div { padding: .5rem 0  }
  }
  /* WP: the button block adds two wrapper divs that the rule above would pad */
  .app-row .wp-block-buttons, .app-row .wp-block-button { padding: 0 }
  #assessment-template { font-size: 1.1rem }
}

@media (max-width: 360px) {
  .hide-on-mobile { display:none; }
/*  .container { padding: 0 1.5rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .section { padding: 3rem 0; }
  .header-flex { flex-direction: column; align-items: flex-start; }
  .app-row {
    display: block;
    padding: 1rem 0;
    div { padding: .5rem 0  }
  }*/
}

/* Home */
.hero-media { overflow: hidden; }
.hero-photo { max-width: 600px; }
.hero-photo img { border-radius: 10rem; }
.contact-email { margin-bottom: 1.5rem; }
.contact-cta { margin-top: 1.5rem; }

/* Footer */
.copyright { margin-top: 0.5rem; font-size: 0.8rem; }

/* Product pages (Clutch, Salesforce Navigator) */
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2rem; align-items: center; }
.product-icon { float: left; }
.product-icon img { display: block; padding-top: 0.7rem; }
.product-title { padding-left: 5rem; }
.product-tagline { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }
.product-intro { max-width: 720px; }
.product-lead { font-size: 1.2rem; margin-bottom: 2rem; color: #2c3e4e; }
.product-shot { width: 30vw; }
.full-width-img img { width: 100%; }
.fine-print { margin-top: 2rem; font-size: 0.85rem; }
.section-lead { font-size: 1.2rem; margin-bottom: 2rem; max-width: 720px; }
.shot-panel { background: #eef2f6; border-radius: 2rem; padding: 1.5rem; text-align: center; }
.mac-shot img { border-radius: .8rem; width: 100%; }
.mt-half { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.cta { text-align: center; }
.cta-lead { font-size: 1.2rem; max-width: 600px; margin: 1rem auto; }
.cta-buttons { justify-content: center; margin-top: 2rem; }

/* Team profile */
.intro-section { padding-bottom: 1rem; }
.profile-role { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.5rem; color: #2c3e4e; }
.tag-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 1rem 0; }
.max-720 { max-width: 720px; }
.profile-photo img { border-width: 11px; aspect-ratio: 1; object-fit: cover; width: 253px; height: auto; border-radius: 400px; }
.stats-section { padding: 1.5rem 0; }
.highlights-section { padding: 2.5rem 0; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.highlight-card { background: white; border-radius: 24px; padding: 1.5rem; border: 1px solid #eef2f6; }
