/* ============================================
   CalibraML — Minimal Static Site
   ============================================ */

/* Fonts */
@font-face {
  font-family: 'Microgramma';
  src: url('fonts/microgrammanormal.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: #ffffff;
  background-color: #0b1929;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Microgramma', sans-serif;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.125;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.15rem, 2.15rem + 1.3vw, 3rem); }
h2 { font-size: clamp(1.75rem, 1.75rem + 0.4vw, 2rem); }
h3 { font-size: clamp(1.125rem, 1.125rem + 0.4vw, 1.375rem); }

p {
  margin: 0 0 1.2rem;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #7fe8dc;
}

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

ul {
  margin: 0 0 1.2rem;
  padding-left: 1.5rem;
}

/* Layout */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.container-narrow {
  max-width: 645px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 25, 41, 0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  width: 200px;
  height: auto;
}

.tagline {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
}

/* Navigation */
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  font-size: 1rem;
  font-weight: 400;
  padding: 0.25rem 0;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-image: url('images/envato-labs-image-edit-2.png');
  background-position: 67% 100%;
  background-size: cover;
  background-attachment: fixed;
  padding: 2.5rem 0;
}

.hero-content {
  max-width: 65%;
  padding: 1rem 0.5rem;
}

.hero h1 {
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: #7fe8dc;
  font-family: 'Microgramma', sans-serif;
  font-size: clamp(0.875rem, 0.875rem + 0.5vw, 1.2rem);
  margin-bottom: 1.5rem;
}

.hero ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.hero li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero li::before {
  content: "→";
  position: absolute;
  left: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Microgramma', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: #7fe8dc;
  color: #232f3e;
}

.btn-primary:hover {
  opacity: 0.85;
  color: #232f3e;
}

.btn-light {
  background: #ffffff;
  color: #0b1929;
}

.btn-light:hover {
  background: color-mix(in srgb, #ffffff 85%, transparent);
  color: #0b1929;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-dark {
  background: #0d1f2d;
  box-shadow: 0 12px 50px rgba(0,0,0,0.4);
}

.section-gradient {
  background: linear-gradient(0deg, rgb(13,31,45) 51%, rgb(45,139,130) 86%, rgb(59,169,159) 100%);
  background-image: url('images/envato-labs-image-edit-3.png');
  background-position: 72% 84%;
  background-size: cover;
  background-attachment: fixed;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(0.875rem, 0.875rem + 0.2vw, 1rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: linear-gradient(135deg, rgb(94,115,142) 0%, rgba(94,115,143,0.2) 100%);
  border-radius: 0.3rem;
  border-left: 2px solid #7fe8dc;
  padding: 1.5rem;
  box-shadow: 6px 6px 9px rgba(0,0,0,0.2);
  text-align: center;
}

.card img {
  width: 60px;
  height: auto;
  margin: 0 auto 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: clamp(0.875rem, 0.875rem + 0.1vw, 0.95rem);
  margin-bottom: 0;
}

/* About */
.about-box {
  background: linear-gradient(135deg, rgb(94,115,142) 0%, rgba(94,115,143,0.15) 100%);
  border-radius: 0.3rem;
  border-left: 0.3rem solid #7fe8dc;
  padding: 1.5rem;
  box-shadow: 6px 6px 9px rgba(0,0,0,0.2);
  margin: 1.5rem 0;
}

.checkmark-list {
  list-style: none;
  padding: 0;
}

.checkmark-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.checkmark-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7fe8dc;
  font-weight: 700;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

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

.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-member h3 {
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: #7fe8dc;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.team-member p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.social-link {
  display: inline-block;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 1;
  color: #fff;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4ecdc4;
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #4ecdc4;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 5px;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.form-message.visible {
  display: flex;
}

.form-message.success {
  background: #d8eacc;
  color: #1a1a1a;
}

.form-message.error {
  background: #ffd3d3;
  color: #1a1a1a;
}

.form-message svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item img {
  width: 24px;
  height: auto;
  margin-top: 0.1rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  box-shadow: 0 -12px 50px rgba(0,0,0,0.4);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 230px;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 3rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.875rem;
  margin: 0;
}

/* Privacy Policy page */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.policy-content h1 {
  margin-bottom: 1.5rem;
}

.policy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.policy-content p,
.policy-content ul {
  font-size: 0.95rem;
  line-height: 1.6;
}

.policy-content ul {
  margin-bottom: 1.5rem;
}

.policy-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .tagline {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 25, 41, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    gap: 2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
