/*
 * Zendo Apps Inc. — Portfolio Site Styles
 */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f8fafc;
  --color-bg-subtle: #eef2f6;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-accent: #708ba3;
  --color-accent-dark: #5a7389;
  --color-green: #a4c639;
  --color-green-dark: #8aaf2e;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 1120px;
  --container-narrow: 720px;
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-green-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.site-main {
  min-height: calc(100vh - var(--header-height) - 220px);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 0.92;
}

.site-logo__image {
  display: block;
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-label:hover {
  background: var(--color-bg-muted);
}

.nav-toggle-label__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-muted);
}

.nav-link--active {
  color: var(--color-accent);
  background: var(--color-bg-subtle);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding: 3rem 0;
  background: var(--color-bg-muted);
  border-top: 1px solid var(--color-border-light);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.site-footer__copyright {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.site-footer__links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__divider {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.site-footer__address {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.site-footer__address p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  color: #ffffff;
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  color: var(--color-accent);
  background: var(--color-bg);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  color: var(--color-accent-dark);
  background: var(--color-bg-muted);
  border-color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-muted) 100%);
}

.hero__inner {
  max-width: 760px;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--color-green-dark);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__headline {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.hero__subheadline {
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem 0;
}

.section--muted {
  background: var(--color-bg-muted);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Feature grid (home)
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.feature-card__title::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--color-green);
  border-radius: 2px;
}

.feature-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

.page-header {
  padding: 3.5rem 0 2rem;
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border-light);
}

.page-header__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-header__lead {
  margin: 0.75rem 0 0;
  max-width: 640px;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

.portfolio-card {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.portfolio-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portfolio-card__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-card__badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  background: rgba(164, 198, 57, 0.16);
  border-radius: 999px;
}

.portfolio-card__badge--muted {
  color: var(--color-text-muted);
  background: var(--color-bg-subtle);
}

.portfolio-card__description {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.portfolio-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.portfolio-card__link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.portfolio-card__link:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Prose (about, legal)
   -------------------------------------------------------------------------- */

.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose__greeting {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.about-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-card {
  padding: 2.5rem;
  text-align: center;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.contact-card__lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.contact-card__email {
  margin: 0 0 1rem;
}

.contact-card__link {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-accent);
  word-break: break-all;
}

.contact-card__link:hover {
  color: var(--color-green-dark);
}

.contact-card__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.contact-address {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

.contact-address__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-address__text {
  margin: 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Hero quote
   -------------------------------------------------------------------------- */

.hero-quote {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  max-width: 520px;
}

.hero-quote__text {
  margin: 0;
}

.hero-quote__text p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.hero-quote__attribution {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  padding: 4.5rem 0;
  background: var(--color-bg-muted);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.testimonials__header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.testimonials__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.testimonials__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.testimonials__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat {
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.stat__label {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stars {
  display: inline-block;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-green);
}

.testimonial-card__quote {
  flex: 1;
  margin: 0 0 1rem;
}

.testimonial-card__quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.testimonial-card__author {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonials__footer {
  margin: 2rem 0 0;
  text-align: center;
}

.testimonials__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.testimonials__link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.testimonials__link:hover::after {
  transform: translateX(3px);
}

/* Compact variant (portfolio card) */

.testimonials--compact {
  padding: 0;
  margin-top: 2rem;
  background: transparent;
  border: 0;
}

.testimonials--compact .testimonials__header {
  margin-bottom: 1.25rem;
}

.testimonials--compact .testimonials__title {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.testimonials--compact .testimonials__stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.testimonials--compact .stat {
  padding: 0.875rem 1rem;
}

.testimonials--compact .stat__value {
  font-size: 1.125rem;
}

.testimonials--compact .stat__label {
  font-size: 0.6875rem;
}

.testimonials--compact .testimonials__grid {
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.testimonials--compact .testimonial-card {
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-md);
}

.testimonials--compact .testimonials__footer {
  margin-top: 1.25rem;
  text-align: left;
}

.portfolio-card__testimonials {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__stats {
    grid-template-columns: 1fr;
  }

  .testimonials--compact .testimonials__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 0.75rem 0.875rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 2.5rem 0 1.5rem;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-card,
  .contact-card {
    padding: 1.5rem;
  }

  .testimonials {
    padding: 3rem 0;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .hero-quote {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  .site-logo__image {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
