/*
Theme Name: Dominic Thiem Custom
Theme URI: https://dominicthiem.com/
Author: Custom
Author URI: https://dominicthiem.com/
Description: Custom WordPress theme for the Dominic Thiem website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: dominic-thiem-custom
*/

/* Theme base */
html, body {
  margin: 0;
  padding: 0;
}

:root {
  --dt-font-primary: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --dt-weight-primary: 500;
  --dt-weight-text: 400;
  --dt-weight-accent: 500;
  --dt-accent: #00f3ff;
  --dt-secondary: #ffffff;
  --dt-bg: #171717;
}

html {
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--dt-font-primary);
  font-weight: var(--dt-weight-text);
  background: var(--dt-bg);
  color: var(--dt-secondary);
}

p {
  font-family: var(--dt-font-primary);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--dt-weight-primary);
}

.dt-page {
  background: var(--dt-bg) !important;
  color: rgba(255, 255, 255, 0.9);
}

.dt-nav__dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.dt-contact,
.dt-imprint,
.dt-policy {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 70px;
  color: rgba(255, 255, 255, 0.88);
}

.dt-imprint__title,
.dt-policy__title,
.dt-contact__title {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
}

.dt-imprint__title,
.dt-policy__title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}

.dt-contact__title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.dt-imprint,
.dt-policy {
  display: grid;
  gap: 14px;
}

.dt-imprint__title,
.dt-policy__title {
  margin-bottom: 8px;
}

.dt-imprint__section,
.dt-policy__section {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  padding: 18px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dt-imprint__label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dt-imprint__text,
.dt-policy__text,
.dt-policy__intro {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.dt-policy__intro {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  padding: 16px 20px;
  margin: 0;
}

.dt-policy__num {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.25;
}

.dt-policy__list {
  margin: 0 0 14px 20px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
}

.dt-policy__list li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.dt-imprint__text:last-child,
.dt-policy__text:last-child,
.dt-policy__list:last-child {
  margin-bottom: 0;
}

.dt-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #171717;
  padding: 26px 0;
}

.dt-footer__wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dt-footer__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.dt-footer__logo img {
  width: 76px;
  height: auto;
  display: block;
  border-radius: 0 !important;
}

.dt-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.dt-footer__links a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.dt-footer__social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dt-footer__social a {
  color: rgba(255, 255, 255, 0.92) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dt-footer__social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

@media (max-width: 960px) {
  .dt-imprint,
  .dt-policy,
  .dt-contact {
    width: min(1120px, calc(100% - 30px));
    padding-top: 136px;
  }

  .dt-footer__wrap {
    width: min(1120px, calc(100% - 30px));
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Contact hard override (ensures WPForms output is consistent) */
.dt-contact {
  width: min(1120px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 150px 0 70px !important;
}

.dt-contact__title {
  margin: 0 0 12px !important;
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.dt-contact__sub {
  margin: 0 !important;
  font-size: clamp(15px, 1.15vw, 18px) !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.68) !important;
}

.dt-contact__formWrap {
  margin-top: 22px !important;
}

.dt-contact__formEmbed .wpforms-container,
.dt-contact__formEmbed .wpforms-form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.dt-contact__formEmbed .wpforms-field-container {
  width: 100% !important;
  max-width: none !important;
}

.dt-contact__formEmbed .wpforms-field-row {
  display: flex !important;
  gap: 16px !important;
  margin: 0 0 16px !important;
}

.dt-contact__formEmbed .wpforms-field-row-block {
  flex: 1 1 0 !important;
  width: auto !important;
  margin: 0 !important;
  max-width: none !important;
}

.dt-contact__formEmbed .wpforms-field {
  margin: 0 0 16px !important;
  width: 100% !important;
  max-width: none !important;
}

.dt-contact__formEmbed .wpforms-field label {
  display: none !important;
}

.dt-contact__formEmbed .wpforms-field input,
.dt-contact__formEmbed .wpforms-field textarea {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  background: rgba(0, 0, 0, 0.16) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.dt-contact__formEmbed .wpforms-field input {
  height: 56px !important;
  padding: 0 16px !important;
}

.dt-contact__formEmbed .wpforms-field textarea {
  min-height: 180px !important;
  padding: 14px 16px !important;
  resize: vertical !important;
}

.dt-contact__formEmbed .wpforms-field input::placeholder,
.dt-contact__formEmbed .wpforms-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.58) !important;
  opacity: 1 !important;
}

.dt-contact__formEmbed .wpforms-submit-container {
  margin-top: 2px !important;
  padding: 0 !important;
}

.dt-contact__formEmbed button.wpforms-submit,
.dt-contact__formEmbed .wpforms-submit {
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: rgba(0, 0, 0, 0.92) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.dt-contact__formEmbed button.wpforms-submit:hover,
.dt-contact__formEmbed .wpforms-submit:hover {
  transform: translateY(-1px) !important;
  opacity: 0.96 !important;
}

@media (max-width: 960px) {
  .dt-contact {
    width: min(1120px, calc(100% - 30px)) !important;
    padding-top: 136px !important;
  }

  .dt-contact__formEmbed .wpforms-field-row {
    display: block !important;
    margin: 0 !important;
  }

  .dt-contact__formEmbed .wpforms-field-row-block {
    width: 100% !important;
    margin: 0 0 16px !important;
  }
}
