/*
Theme Name: Tendy AI
Theme URI: https://tendy.ai
Author: Tendy AI
Version: 1.4
Description: A custom WordPress theme built with ACF. Homepage text sourced from a Google Doc titled "Tendy AI Website Content Document", last edited on April 5 but shared for viewing on April 17, 2025.
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 20250423-tendyai
*/

:root {
  /* Colors */
  --primary-background: var(--wp--preset--color--primary-background);
  --primary-color: var(--wp--preset--color--primary);
  --accent-color: var(--wp--preset--color--accent);
  --text-color: var(--wp--preset--color--text);
  --white: var(--wp--preset--color--white);
  --white-3: var(--wp--preset--color--white-3);
  --linear-gradient: linear-gradient(
    92deg,
    var(--primary-color) 30%,
    var(--accent-color) 100%
  );
  --linear-stroke: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );

  /* Fonts */
  --primary-font: var(--wp--preset--font-family--syne);
  --secondary-font: var(--wp--preset--font-family--inter);
  --subtext-font: var(--wp--preset--font-family--epilogue);

  /* Sizing */
  --full-border-radius: var(--wp--preset--spacing--border-radius-full);
  --border-radius-element-spacing: var(--wp--preset--spacing--20-border-radius);
  --section-spacing: var(--wp--preset--spacing--section-spacing);
  --side-padding: var(--wp--preset--spacing--side-padding);
  --elements-spacing: var(--wp--preset--spacing--elements-spacing);
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--secondary-font);
  color: var(--text-color);
}

body {
  background-color: var(--primary-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Navbar Styles */

.header {
  width: 100vw;
  padding: 0 2.5rem;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background-color: var(--primary-background);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

nav {
  width: 100%;
  max-width: 96.875rem;
  margin: 0 auto;
  padding: 1.5625rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar-left {
  display: inline-flex;
  white-space: nowrap;
  width: fit-content;
}

.home-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.home-link:hover .static-logo {
  display: none;
}

.home-link:hover .lottie-logo {
  display: block;
}

.line-divider {
  display: inline-flex;
  width: 0.0625rem;
  height: 1.3125rem;
  background: var(--white);
  z-index: 1;
  flex-shrink: 0;
  flex-grow: 0;
}

.wordmark {
  padding-top: 0.6rem;
}

.ai-text {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 1.6875rem;
  font-weight: 400;
}

.logo-wrapper {
  position: relative;
  width: 2.625rem;
  height: 2.625rem;
  pointer-events: auto;
}

.logo {
  width: 2.625rem;
  height: 2.625rem;
  object-fit: cover;
}

.static-logo,
.lottie-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.625rem;
  height: 2.625rem;
  z-index: 1;
  user-select: none;
}

.static-logo {
  display: block;
}

.lottie-logo {
  display: none;
  transform: scale(1.2);
  transform-origin: center center;
}

.home-link:hover .static-logo {
  display: none;
}

.home-link:hover .lottie-logo {
  display: block;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 3.75rem;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin-bottom: 4px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  right: var(--side-padding);
  top: 100%;
  background: var(--primary-background);
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  z-index: 1001;
}

.mobile-menu a,
.mobile-menu button {
  padding: 0.5rem 0;
  text-align: left;
}

.mobile-menu.active {
  display: flex;
}

@media only screen and (max-width: 1024px) {
  .navbar-right {
    display: none;
  }
  .hamburger-menu {
    display: flex;
  }
}

/* Typography */

h1 {
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: 3.75rem;
  line-height: 1.2;
  color: var(--white);
}

h2 {
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: 2.75rem;
  color: var(--white);
}

h3 {
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: 2rem;
  color: var(--white);
}

h4 {
  font-family: var(--primary-font);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--white);
}

.subheading {
  font-family: var(--secondary-font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--text-color);
}

p {
  font-family: var(--subtext-font);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.p2 {
  font-family: var(--secondary-font);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--text-color);
}

.p3 {
  font-family: var(--secondary-font);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-color);
}

a {
  text-decoration: none;
  font-family: var(--secondary-font);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-color);
}

a:hover {
  color: var(--primary-color);
}

span {
  color: var(--primary-color);
}

/* Buttons */

.solid-button {
  font-family: var(--secondary-font);
  font-weight: 300;
  font-size: 1rem;
  color: var(--white);
  display: flex;
  padding: 0.9375rem 1.875rem;
  justify-content: center;
  align-items: center;
  border-radius: var(--full-border-radius);
  background: linear-gradient(
    92deg,
    var(--primary-color) 0%,
    var(--primary-color) 100%
  );
  border: none;
  cursor: pointer;
}

.solid-button:hover {
  background: var(--linear-gradient);
}

.solid-button:active {
  background: var(--linear-gradient);
}

.outline-button {
  display: flex;
  padding: 0.9375rem 1.875rem;
  justify-content: center;
  align-items: center;
  font-family: var(--secondary-font);
  font-weight: 300;
  font-size: 1rem;
  color: var(--white);
  border-radius: var(--full-border-radius);
  position: relative;
  z-index: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.8s ease, border 0.4s ease;
}

.outline-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--linear-gradient);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  transition: background 0.8s ease;
}

.outline-button:hover::before {
  background: transparent;
  border: 1px solid var(--primary-color);
}

/* Footer */

footer {
  padding: 0 var(--side-padding) 6.25rem var(--side-padding);
  position: relative;
}

.contact-us {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--section-spacing);
  position: relative;
  z-index: 3;
}

.left p {
  max-width: 40ch;
}

.contact-us .left {
  max-width: 50%;
  display: flex;
  gap: var(--border-radius-element-spacing);
  flex-direction: column;
  justify-content: left;
}

.contact-us .left button {
  align-self: flex-start;
  width: auto;
}

.contact-us .right {
  max-width: 50%;
  position: relative;
}

.footer-logo {
  width: 50rem;
  height: 50rem;
  aspect-ratio: 1;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: -40%;
  right: 0%;
  transform: translateX(15%);
  z-index: 3;
}

.footer-content {
  height: 100%;
  padding: 6.25rem;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: rgba(88, 10, 255, 0.1);
  border-radius: var(--border-radius-element-spacing);
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 5;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--border-radius-element-spacing);
}

.footer-home-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.62rem;
}

.brand-left {
  display: flex;
  flex-direction: column;
}

.brand-line-1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.62rem;
}

.footer-wordmark {
  margin-top: 0.5rem;
  width: 5.65463rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.slogan {
  color: var(--white);
  font-family: var(--secondary-font);
  font-size: 0.65625rem;
  font-weight: 400;
  letter-spacing: 2%;
}

.footer-logo-wrapper {
  position: relative;
  width: 2.625rem;
  height: 2.625rem;
  pointer-events: auto;
}

.footer-brand-logo {
  width: 2.625rem;
  height: 2.625rem;
  object-fit: cover;
}

.footer-static-logo,
.footer-lottie-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.625rem;
  height: 2.625rem;
  z-index: 1;
  user-select: none;
}

.footer-static-logo {
  display: block;
}

.footer-lottie-logo {
  display: none;
  transform: scale(1.2);
  transform-origin: center center;
}

.footer-logo-wrapper:hover .footer-static-logo {
  display: none;
}

.footer-logo-wrapper:hover .footer-lottie-logo {
  display: block;
}

.email-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.62rem;
  cursor: pointer;
}

.socials {
  display: flex;
  flex-direction: row;;
  align-items: center;
  gap: var(--border-radius-element-spacing);
}

.socials svg {
  display: block;
}

.socials .p3 {
  display: inline-block;
  line-height: 1;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-right p {
  max-width: 50ch;
}

#newsletter-form {
  margin-top: 1.5rem;
}

.form-input {
  display: flex;
  align-items: stretch;
  border-radius: var(--full-border-radius);
  overflow: hidden;
  background: white;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.25) inset;
}

.form-input input {
  flex: 1;
  padding: 0.625rem 1.5rem;
  border: none;
  outline: none;
  font-family: var(--secondary-font);
  color: var(--primary-background);
  background: transparent;
}

.form-input button {
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--primary-background) 0%,
    rgba(1, 3, 13, 0) 100%
  );
  z-index: 2;
}

.footer-bg-pattern {
  position: absolute;
  inset: 0;
  stroke-width: 1px;
  stroke: var(--primary-color);
  opacity: 0.1;
  z-index: 1;
}

/* Media Queries */

@media only screen and (max-width: 1270px) {
  :root {
    --border-radius-element-spacing: 0.625rem;
    --section-spacing: 6.25rem;
    --side-padding: 3.75rem;
  }

  /* Navbar Styles */

  .navbar-right {
    gap: 2.25rem;
  }

  /* Typography */

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

@media only screen and (max-width: 810px) {
  :root {
    --border-radius-element-spacing: 0.625rem;
    --section-spacing: 6.25rem;
    --side-padding: 3.75rem;
  }

  /* Typography */

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1.4rem;
  }

  .p2 {
    font-size: 1.125rem;
  }

  /* Buttons */

  .solid-button {
    font-size: 0.875rem;
  }

  .outline-button {
    font-size: 0.875rem;
  }
}

@media only screen and (min-width: 480px) and (max-width: 768px) {
  :root {
    --border-radius-element-spacing: 0.625rem;
    --section-spacing: 3.75rem;
    --side-padding: 2.5rem;
  }

  /* Typography */

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1.25rem;
  }

  .p2 {
    font-size: 1rem;
  }
}

@media only screen and (min-width: 320px) and (max-width: 480px) {
  :root {
    --border-radius-element-spacing: 0.625rem;
    --section-spacing: 3.75rem;
    --side-padding: 1.25rem;
  }

  /* Typography */

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1.1rem;
  }

  .p2 {
    font-size: 0.875rem;
  }
}

@media only screen and (max-width: 320px) {
  :root {
    --border-radius-element-spacing: 0.625rem;
    --section-spacing: 3.75rem;
    --side-padding: 1.25rem;
  }

  /* Typography */

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1.1rem;
  }

  .p2 {
    font-size: 0.875rem;
  }
}
