/* ===================================================
   Pinnacle Media — Global Stylesheet
   Clean / Minimal | Accent: #2563EB (Blue)
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563EB;
  --blue-dark:  #1D4ED8;
  --blue-light: #EFF6FF;
  --text:       #1F2937;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --white:      #FFFFFF;
  --bg:         #F9FAFB;
  --radius:     8px;
  --shadow:     0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --transition: 150ms ease;
  --max-w:      1100px;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }
.section--alt { background: var(--bg); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: .5rem auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo span.tagline {
  font-size: .65rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-lang {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: 1.5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: .25rem .6rem;
  border-radius: 4px;
  transition: border-color var(--transition), color var(--transition);
}
.nav-lang:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links-wrap {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
    flex-direction: column;
    gap: .1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links-wrap.open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    width: 100%;
  }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: .65rem 0; }

  .nav-lang { margin-left: 0; margin-top: .75rem; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--white) 60%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero .btn { min-width: 160px; }
.hero-btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Features / Icon Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.feature-card h3 { color: var(--blue); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.about-values { list-style: none; }
.about-values li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.about-values li::before {
  content: '✔';
  color: var(--blue);
  font-size: .9rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

/* ---------- Apps Portfolio ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.app-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.app-card-img img { width:100%; height:100%; object-fit:cover; }
.app-card-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
}
.app-card-placeholder-icon { font-size: 2.5rem; margin-bottom: .4rem; opacity: .4; }

.app-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.app-card-body h3 { font-size: 1.1rem; color: var(--text); margin-bottom: .4rem; }
.app-card-body p  { font-size: .92rem; color: var(--muted); flex: 1; }

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--text);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition);
}
.app-badge:hover { background: var(--blue); text-decoration: none; }
.app-badge--apple { background: #000; }
.app-badge--apple:hover { background: #1a1a1a; }
.app-badge--google { background: #01875f; }
.app-badge--google:hover { background: #017352; }
.app-badge svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  font-size: 1.2rem;
  margin-top: .1rem;
  flex-shrink: 0;
}
.contact-detail p { margin: 0; font-size: .95rem; }
.contact-detail a { color: var(--blue); }

/* ---------- Contact Form ---------- */
.contact-form { background: var(--white); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group .field-error {
  display: block;
  color: #DC2626;
  font-size: .82rem;
  margin-top: .3rem;
}

/* Flash messages */
.flash {
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.flash-success {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #166534;
}
.flash-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* Required star */
.req { color: #DC2626; margin-left: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #D1D5DB;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand .name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .2rem;
}
.footer-brand .legal {
  font-size: .8rem;
  color: #9CA3AF;
}
.footer-brand p { font-size: .88rem; color: #9CA3AF; margin-top: .5rem; }

.footer-addr { font-size: .88rem; line-height: 1.9; }
.footer-addr strong { color: var(--white); font-size: .9rem; display: block; margin-bottom: .25rem; }
.footer-addr a { color: var(--blue); }
.footer-addr a:hover { color: #93C5FD; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: #6B7280;
}
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Page content ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--white) 60%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Misc ---------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: .5rem 1rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus { left: 1rem; }
