/* ============================================
   timediscrete - Brand Stylesheet
   Colors: #f4f7f6 (background), #474747 (primary)
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #474747;
  background-color: #f4f7f6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #474747;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #474747;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-text {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 600px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(244, 247, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(71, 71, 71, 0.08);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

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

.nav-logo img {
  height: 3rem;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #474747;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 320px;
  height: auto;
  opacity: 0.85;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: #474747;
  color: #f4f7f6;
}

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

.btn-outline {
  background-color: transparent;
  color: #474747;
  border: 1.5px solid #474747;
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background-color: #474747;
  color: #f4f7f6;
  opacity: 1;
}

/* --- About --- */
.about {
  padding: 7rem 0;
}

.about .container {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about-visual {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

.about-visual img {
  width: 200px;
  opacity: 0.7;
}

.about-content {
  flex: 1;
}

/* --- Values --- */
.values {
  padding: 7rem 0;
  background-color: #ffffff;
}

.values-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(71, 71, 71, 0.2);
  border-radius: 50%;
}

.value-icon svg {
  width: 26px;
  height: 26px;
  stroke: #474747;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.925rem;
  line-height: 1.65;
  opacity: 0.7;
}

/* --- Services --- */
.services {
  padding: 7rem 0;
  background-color: #ffffff;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .section-text {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.service-card {
  padding: 2.5rem 2rem;
  border-radius: 8px;
  background-color: #f4f7f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(71, 71, 71, 0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #474747;
  border-radius: 10px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: #f4f7f6;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.925rem;
  line-height: 1.65;
  opacity: 0.7;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(71, 71, 71, 0.08);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 3rem;
}

.footer-text {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.825rem;
  opacity: 0.6;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  width: 18px;
  height: 18px;
  fill: #474747;
  stroke: none;
  vertical-align: middle;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-visual img {
    width: 240px;
  }

  .about .container {
    flex-direction: column;
    text-align: center;
  }

  .about-visual {
    flex: none;
  }

  .about-content .section-text {
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(244, 247, 246, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(71, 71, 71, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

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

  .footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero-content .btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}
