/* TinyByte Studios — static site styles
   Faithful rebuild of the original Divi theme layout. */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #222222;
  --color-text-muted: #555555;
  --color-accent: #e63946;
  --color-dark: #13212C;
  --max-width: 1180px;
  --radius: 82px;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .site-footer { margin-top: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Header / nav -------- */
.site-header {
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header a.logo img {
  height: 56px;
  width: auto;
}
.site-header nav a {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.site-header nav a:hover { color: var(--color-accent); text-decoration: none; }

/* -------- Hero -------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.17);
}
.hero .container {
  position: relative;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero--home { min-height: 80vh; }
.hero--home h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 60px);
  max-width: 20ch;
  margin-bottom: 24px;
}
.hero--home p {
  font-size: 20px;
  font-weight: 600;
  max-width: 40ch;
  color: #fff;
}

.hero--contact { min-height: 40vh; }
.hero--contact h1 {
  color: #fff;
  font-size: clamp(36px, 4.5vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* -------- Sections -------- */
section.section { padding: 80px 0; }
section.section--muted { background: var(--color-bg-alt); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.feature {
  text-align: left;
}
.feature img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}
.feature h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Platforms section — 3 columns: text | image | list */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  gap: 0;
  min-height: 420px;
}
.platforms > div { padding: 48px; }
.platforms .intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.platforms .intro h2 {
  font-size: 32px;
  margin-bottom: 16px;
}
.platforms .intro p { color: var(--color-text-muted); margin: 0; }
.platforms .photo {
  background-size: cover;
  background-position: center;
}
.platforms .list h3 {
  font-size: 22px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.platforms .list h3:first-child { margin-top: 0; }
.platforms .list p {
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

/* -------- Contact page -------- */
.contact-info h2 { font-size: 28px; margin-bottom: 8px; }
.contact-info h4 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-info p { color: var(--color-text-muted); margin: 0 0 24px; }
.contact-info a { color: var(--color-text); font-weight: 600; }

/* -------- Footer -------- */
.site-footer {
  background: var(--color-dark);
  color: #bbb;
  padding: 48px 0;
  text-align: center;
}
.site-footer img { height: 56px; margin: 0 auto 16px; }
.site-footer p { margin: 0; font-size: 14px; }

/* -------- Responsive -------- */
@media (max-width: 1100px) {
  .platforms { grid-template-columns: 1fr; }
  .platforms .photo { min-height: 320px; }
}
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  form.contact-form .row { grid-template-columns: 1fr; }
  .hero--home h1, .hero--home p { max-width: 100%; }
}
@media (max-width: 600px) {
  .site-header .container { flex-direction: column; gap: 12px; }
  section.section { padding: 56px 0; }
  .platforms > div { padding: 32px; }
}
