/* =====================================================
   Kuntalehti Activation Page – External CSS (v4)
   ===================================================== */

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

@font-face {
  font-family: 'Dinot Bold';
  src: url('Dinot-Bold.woff') format('woff'),
       url('Dinot-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* --- Color variables --- */
:root {
  --kl-dark-blue:   #19192d;  /* nav/header background */
  --kl-yellow:      #f47920;  /* primary CTA button    */
  --kl-dark:        #303042;  /* dark text / headings  */
  --kl-body-text:   #333333;  /* body copy             */
  --kl-medium-blue: #8ed8f8;  /* links / secondary     */
  --kl-bg:          #ffffff;
}

/* --- Base typography --- */
body {
  font-family: 'Dinot Regular', sans-serif !important;
  color: var(--kl-body-text) !important;
  background-color: var(--kl-bg) !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* --- Headings --- */
h1, h2, h3, h4,
.text-4xl, .text-5xl, .text-6xl,
#ingressHeader {
  font-family: 'Dinot Bold', serif !important;
  color: var(--kl-dark) !important;
  font-weight: 700 !important;
}

/* =====================================================
   NAV / HEADER – dark background extending to cover logo
   ===================================================== */
.relative.pt-6 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

nav.relative, nav {
  height: auto !important;
  min-height: 0 !important;
  background-color: var(--kl-dark-blue) !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  align-items: center !important;
}

nav > div,
nav > div > div {
  background-color: var(--kl-dark-blue) !important;
}

/* =====================================================
   LOGO
   ===================================================== */
img#logo {
  margin-top: 0 !important;
  margin-left: 20px;
  width: auto !important;
  max-width: 160px !important;
  height: auto !important;
  display: block !important;
}

/* =====================================================
   PRIMARY CTA BUTTON – Kuntalehti yellow
   ===================================================== */
button,
button[type="submit"],
.bg-amber-400,
.hover\:bg-amber-300:hover {
  background-color: var(--kl-yellow) !important;
  color: var(--kl-dark) !important;
  font-family: 'Dinot Regular', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: background-color 0.2s ease !important;
}

button:hover,
button[type="submit"]:hover {
  background-color: #e6be00 !important;
}

div.rounded-md a {
  background-color: var(--kl-yellow) !important;
  color: var(--kl-dark) !important;
}

/* --- Accent / teal overrides → Kuntalehti medium blue --- */
.text-teal-400,
.text-teal-500 {
  color: var(--kl-medium-blue) !important;
}

/* =====================================================
   INPUT FIELD
   ===================================================== */
input[type="email"],
#Email {
  font-family: 'Dinot Regular', sans-serif !important;
  border: 1px solid #cccccc !important;
  border-radius: 0 !important;
  background-color: #f5f5f5 !important;
  color: var(--kl-body-text) !important;
  font-size: 16px !important;
}

input[type="email"]:focus,
#Email:focus {
  border-color: var(--kl-dark-blue) !important;
  background-color: #ffffff !important;
  outline: 2px solid var(--kl-yellow) !important;
}

/* =====================================================
   BODY TEXT & PARAGRAPH
   ===================================================== */
#ingressBody,
.text-gray-500,
.text-base {
  color: var(--kl-body-text) !important;
  font-family: 'Dinot Regular', sans-serif !important;
}

/* =====================================================
   PROFILE / SIDE IMAGE
   ===================================================== */
#profileImage {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin-top: 0 !important;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.max-w-7xl {
  max-width: 80rem !important;
}

.xl\:pb-32 {
  padding-bottom: 4rem !important;
}

/* =====================================================
   RESPONSIVE – tablet (≤ 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  img#logo { max-width: 130px !important; }

  .max-w-7xl {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .xl\:pb-32 { padding-bottom: 2rem !important; }

  .lg\:absolute {
    position: relative !important;
    width: 100% !important;
    inset: auto !important;
  }

  .lg\:max-w-2xl { max-width: 100% !important; }
  .lg\:w-full    { width: 100% !important; }

  #profileImage {
    height: 300px !important;
    object-fit: cover !important;
  }
}

/* =====================================================
   RESPONSIVE – mobile (≤ 640px)
   ===================================================== */
@media (max-width: 640px) {
  img#logo { max-width: 110px !important; }

  body { font-size: 15px !important; }

  #ingressHeader,
  .text-4xl {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  .mt-10, .sm\:mt-12, .md\:mt-16,
  .lg\:mt-20, .xl\:mt-28 {
    margin-top: 1.5rem !important;
  }

  button,
  button[type="submit"] {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
  }

  #profileImage { height: 200px !important; }

  .xl\:pb-32 { padding-bottom: 1.5rem !important; }
}