/* ========================================
   DentalFolio Website Styles
   ======================================== */

/* Fonts */
@font-face {
  font-family: 'ValueSerifPro';
  src: url('../fonts/ValueSerifPro-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ValueSansPro';
  src: url('../fonts/ValueSansPro-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   COLOR PALETTE - Only 3 colors
   ======================================== */
:root {
  /* Force light mode only - prevent browser dark mode adjustments */
  color-scheme: light only;

  /* The only 3 colors */
  --portfolio-black: #181818;
  --enamel-white: #f8f8f0;
  --clean-blue: #6dd0f0;

  /* Fonts */
  --font-serif: 'ValueSerifPro', Georgia, 'Times New Roman', serif;
  --font-sans: 'ValueSansPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-padding-vertical: 80px;
  --section-padding-horizontal: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--portfolio-black);
  background: var(--enamel-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.2;
}

/* ========================================
   Components
   ======================================== */

/* Logo */
.logo {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  display: inline-block;
}

.logo__dental {
  color: var(--clean-blue);
}

.logo__folio {
  color: var(--enamel-white);
}

/* Tagline */
.tagline {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--enamel-white);
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: center;
}

.btn--primary {
  background: var(--clean-blue);
  color: var(--portfolio-black);
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--small {
  padding: 10px 20px;
  background: var(--clean-blue);
  color: var(--portfolio-black);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--portfolio-black);
  color: var(--portfolio-black);
}

.btn--outline:hover {
  background: var(--portfolio-black);
  color: var(--enamel-white);
}

/* Section Title */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 40px;
  color: var(--portfolio-black);
}

.section-title--underline {
  display: inline-block;
  border-bottom: 2px solid var(--clean-blue);
  padding-bottom: 8px;
}

.section-title--right {
  text-align: right;
}

/* Cards - using subgrid for aligned rows */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 32px 32px;
}

.card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  text-align: left;
}

.card__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  align-self: start;
}

.card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__icon--triple {
  display: flex;
  width: auto;
  gap: 4px;
}

.card__icon--triple img {
  width: 50px;
  height: 80px;
}

.card__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--portfolio-black);
  align-self: start;
}

.card__text {
  font-size: 0.875rem;
  color: var(--portfolio-black);
  opacity: 0.7;
  line-height: 1.5;
  align-self: start;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: var(--portfolio-black);
  color: var(--enamel-white);
  padding: 64px var(--section-padding-horizontal);
  min-height: max(100vh, 650px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hero__container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__header {
  text-align: left;
}

.hero__animations {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.hero__animation-item {
  width: 100px;
  height: 100px;
}

.hero__animation-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__content {
  max-width: 600px;
  text-align: left;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--enamel-white);
}

.hero__description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--enamel-white);
  opacity: 0.85;
}

/* ========================================
   Workflow Section
   ======================================== */
.workflow {
  background: var(--enamel-white);
  padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

.workflow__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: stretch;
}

.workflow__title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.workflow__headline {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--portfolio-black);
  margin: 0;
}

.workflow__divider {
  width: 2px;
  background: var(--clean-blue);
  flex-shrink: 0;
}

.workflow__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.workflow__intro {
  font-size: 0.875rem;
  color: var(--portfolio-black);
  opacity: 0.7;
  margin-bottom: 16px;
}

.workflow__content p {
  margin-bottom: 16px;
  color: var(--portfolio-black);
  opacity: 0.7;
}

.workflow__content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Problem Section
   ======================================== */
.problem {
  background: var(--portfolio-black);
  padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

.problem__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.problem .section-title {
  color: var(--enamel-white);
}

.problem .card__title {
  color: var(--enamel-white);
}

.problem .card__text {
  color: var(--enamel-white);
  opacity: 0.7;
}

/* ========================================
   Solution Section
   ======================================== */
.solution {
  background: var(--portfolio-black);
  padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

.solution__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.solution__container > .section-title--right {
  text-align: right;
}

.solution .section-title {
  color: var(--enamel-white);
}

.solution .card__title {
  color: var(--enamel-white);
}

.solution .card__text {
  color: var(--enamel-white);
  opacity: 0.7;
}

/* ========================================
   Show It Section
   ======================================== */
.showit {
  background: var(--enamel-white);
  padding: var(--section-padding-vertical) var(--section-padding-horizontal);
  text-align: center;
}

.showit__container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.showit__headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--portfolio-black);
}

.showit__cta {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--clean-blue);
  margin: 0;
}

/* ========================================
   Elevate Section
   ======================================== */
.elevate {
  background: var(--enamel-white);
  padding: var(--section-padding-vertical) var(--section-padding-horizontal);
  text-align: center;
}

.elevate__container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.elevate__headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--portfolio-black);
  margin-bottom: 48px;
  line-height: 1.3;
}

.elevate__image {
  max-width: 400px;
  margin: 0 auto;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots {
  background: var(--portfolio-black);
  padding: var(--section-padding-vertical) 0;
  overflow: hidden;
}

.screenshots__carousel {
  position: relative;
  width: 100%;
}

.carousel {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 16px;
}

.carousel__track img {
  flex: 0 0 auto;
  height: 350px;
  width: auto;
  border-radius: 16px;
}


/* ========================================
   Signup Section
   ======================================== */
.signup {
  background: var(--enamel-white);
  padding: var(--section-padding-vertical) var(--section-padding-horizontal);
  position: relative;
}

.signup__container {
  max-width: 600px;
  margin: 0 auto;
}

.signup__mascot {
  position: absolute;
  bottom: 24px;
  right: var(--section-padding-horizontal);
  width: 80px;
}

.signup__mascot img {
  width: 100%;
  height: auto;
}

.signup__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--portfolio-black);
}

.signup__description {
  text-align: center;
  font-size: 1.125rem;
  color: var(--portfolio-black);
  opacity: 0.7;
  margin-bottom: 32px;
}

.signup__form-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.signup__input {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--portfolio-black);
  border-radius: 4px;
  width: 250px;
  background: var(--enamel-white);
  color: var(--portfolio-black);
}

.signup__input::placeholder {
  color: var(--portfolio-black);
  opacity: 0.5;
}

.signup__input:focus {
  outline: none;
  border-color: var(--clean-blue);
}

.signup .btn--small {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.signup .app-store-badge {
  display: flex;
  align-items: center;
  height: 44px;
}

.signup .app-store-badge img {
  height: 100%;
  width: auto;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
  background: var(--portfolio-black);
  padding: var(--section-padding-vertical) var(--section-padding-horizontal);
}

.faq__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
}

.faq__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--enamel-white);
}

.faq__contact-text {
  font-size: 0.875rem;
  color: var(--enamel-white);
  opacity: 0.7;
  margin-bottom: 16px;
}

.faq__list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq__question {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--enamel-white);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--enamel-white);
  opacity: 0.5;
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  padding-bottom: 20px;
}

.faq__answer p {
  color: var(--enamel-white);
  opacity: 0.7;
  font-size: 0.9375rem;
}

.faq .btn--outline {
  border-color: var(--enamel-white);
  color: var(--enamel-white);
}

.faq .btn--outline:hover {
  background: var(--enamel-white);
  color: var(--portfolio-black);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--portfolio-black);
  color: var(--enamel-white);
  padding: 48px var(--section-padding-horizontal);
  text-align: center;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--enamel-white);
  opacity: 0.5;
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer__link {
  font-size: 0.75rem;
  color: var(--enamel-white);
  opacity: 0.5;
  border: 1px solid var(--enamel-white);
  padding: 8px 16px;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 0.8;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto 1fr auto auto 1fr;
  }

  .card:nth-child(n+3) {
    grid-row: 4 / span 3;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-vertical: 48px;
    --section-padding-horizontal: 48px;
  }

  .hero {
    min-height: max(100vh, 550px);
  }

  .logo {
    font-size: 2rem;
  }

  .hero__animations {
    gap: 24px;
  }

  .hero__animation-item {
    width: 70px;
    height: 70px;
  }

  .hero__headline {
    font-size: 1.75rem;
  }

  .workflow__container {
    flex-direction: column;
    gap: 32px;
  }

  .workflow__divider {
    width: 100%;
    height: 2px;
  }

  .workflow__headline {
    font-size: 1.75rem;
  }

  .cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 40px;
  }

  .card {
    grid-row: auto;
    display: block;
  }

  .card:nth-child(n+3) {
    grid-row: auto;
  }

  .section-title--right {
    text-align: left;
  }

  .showit__cta {
    font-size: 1.75rem;
  }

  .elevate__headline {
    font-size: 1.75rem;
  }

  .elevate__image {
    max-width: 280px;
  }

  .signup__form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .signup__input {
    width: 100%;
    max-width: 300px;
  }

  .signup__mascot {
    width: 60px;
    bottom: 16px;
  }

  .faq__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__title {
    font-size: 1.75rem;
  }

  .carousel__track img {
    height: 280px;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding-horizontal: 24px;
  }

  .hero {
    min-height: max(100vh, 500px);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .logo {
    font-size: 1.75rem;
  }

  .hero__animations {
    gap: 16px;
  }

  .hero__animation-item {
    width: 60px;
    height: 60px;
  }

  .hero__headline {
    font-size: 1.5rem;
  }

  .workflow__headline {
    font-size: 1.5rem;
  }

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

  .showit__headline {
    font-size: 1.5rem;
  }

  .showit__cta {
    font-size: 1.5rem;
  }

  .elevate__headline {
    font-size: 1.5rem;
  }

  .elevate__image {
    max-width: 200px;
  }

  .signup {
    padding-bottom: 120px;
  }

  .signup__title {
    font-size: 1.5rem;
  }

  .signup__mascot {
    width: 50px;
    bottom: 20px;
  }

  .faq__title {
    font-size: 1.5rem;
  }
}
