/*
Theme Name: Mathieu Duplessis
Theme URI: https://mathieuduplessis.com
Author: Etienne
Author URI: https://mathieuduplessis.com
Description: Custom WordPress theme converted from Astro landing page
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mathieuduplessis
Tags: custom, modern, portfolio

This theme was built for Mathieu Duplessis.
*/

/* Design System CSS Variables */
:root {
  --font-size: 16px;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --background: #fffef7;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #000000;
  --primary-foreground: #fffef7;
  --secondary: #00ffd1;
  --secondary-foreground: #000000;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #ff00ff;
  --accent-foreground: #000000;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: #000000;
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0rem;
  --neo-cyan: #00ffd1;
  --neo-magenta: #ff00ff;
  --neo-yellow: #ffed4e;
  --neo-orange: #ff6b35;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

*:focus-visible {
  outline-color: var(--ring);
  outline-width: 2px;
  outline-offset: 2px;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  font-family: Poppins, sans-serif;
  font-size: var(--font-size);
}

html {
  font-family: Poppins, sans-serif;
  font-size: var(--font-size);
}

main {
  min-height: 100vh;
}

img {
  object-fit: cover;
}

/* Base Typography */
h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

label {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

button {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

input {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

/* Hero Container */
.hero-container {
  position: relative;
}

/* About Section */
.about-section {
  position: relative;
}

/* Gallery Section */
.gallery-section {
  position: relative;
}

/* Testimonials Section */
.testimonials-section {
  position: relative;
}

.testimonial-card {
  position: relative;
}

/* Pricing Section */
.pricing-section {
  position: relative;
}

.pricing-card {
  position: relative;
}

/* FAQ Section */
.faq-section {
  position: relative;
}

/* Contact Section */
.contact-section {
  position: relative;
}

/* Header Language Switcher */
.header-language-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

.header-language-switcher li {
  list-style-type: none;
}

.language-picker {
  position: relative;
}

.lang-button:active {
  transform: translate(3px, 3px) !important;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 1) !important;
}

.lang-list {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  opacity: 1;
  transform: translateY(0);
}

.lang-list a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Footer Section */
.footer-section {
  position: relative;
}

.footer-section a {
  text-decoration: none;
  color: inherit;
}

.footer-section a:hover {
  color: var(--neo-cyan);
}

.contact-form-wrapper .form-field {
  position: relative;
}

/* Contact Form 7 Styling */
.contact-form-wrapper .wpcf7-form p {
  margin-bottom: 0;
}

/* Remove automatic br tags from CF7 */
.contact-form-wrapper .wpcf7-form br {
  display: none;
}

.contact-form-wrapper .form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Custom CF7 input classes */
.contact-form-wrapper .cf7-input,
.contact-form-wrapper .cf7-select,
.contact-form-wrapper .cf7-textarea {
  width: 100%;
  border: 4px solid #000;
  background: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
  font-family: Poppins, sans-serif;
}

.contact-form-wrapper .cf7-input {
  height: 3rem;
}

.contact-form-wrapper .cf7-select {
  height: 3rem;
  line-height: normal;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.contact-form-wrapper .cf7-textarea {
  resize: none;
  min-height: 150px;
  padding: 0.75rem 1rem;
}

.contact-form-wrapper .cf7-input:focus,
.contact-form-wrapper .cf7-textarea:focus,
.contact-form-wrapper .cf7-select:focus {
  outline: none;
  border-color: #000;
}

.contact-form-wrapper .cf7-submit {
  width: 100%;
  background-color: #00ffd1;
  color: #000;
  border: 4px solid #000;
  padding: 1.5rem 2rem;
  font-weight: 500;
  font-family: Poppins, sans-serif;
  box-shadow: 6px 6px 0px rgba(0,0,0,1);
  cursor: pointer;
  transition: transform 0.2s;
}

.contact-form-wrapper .cf7-submit:hover {
  transform: translate(0.5rem, 0.5rem);
}

/* Fallback for default CF7 styles */
.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form input[type="url"],
.contact-form-wrapper .wpcf7-form textarea,
.contact-form-wrapper .wpcf7-form select {
  width: 100%;
  border: 4px solid #000;
  background: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
  font-family: Poppins, sans-serif;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form input[type="url"] {
  height: 3rem;
}

.contact-form-wrapper .wpcf7-form select {
  height: 3rem;
  line-height: normal;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.contact-form-wrapper .wpcf7-form textarea {
  resize: none;
  min-height: 150px;
}

.contact-form-wrapper .wpcf7-form input:focus,
.contact-form-wrapper .wpcf7-form textarea:focus,
.contact-form-wrapper .wpcf7-form select:focus {
  outline: none;
  border-color: #000;
}

.contact-form-wrapper .wpcf7-form input[type="submit"] {
  width: 100%;
  background-color: #00ffd1;
  color: #000;
  border: 4px solid #000;
  padding: 1.5rem 2rem;
  font-weight: 500;
  font-family: Poppins, sans-serif;
  box-shadow: 6px 6px 0px rgba(0,0,0,1);
  cursor: pointer;
  transition: transform 0.2s;
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover {
  transform: translate(0.5rem, 0.5rem);
}

.contact-form-wrapper .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 4px solid;
  box-shadow: 4px 4px 0px rgba(0,0,0,1);
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
  border-color: #10b981;
  background-color: #d1fae5;
  color: #065f46;
}

.contact-form-wrapper .wpcf7-validation-errors,
.contact-form-wrapper .wpcf7-mail-sent-ng {
  border-color: #ef4444;
  background-color: #fee2e2;
  color: #991b1b;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
  color: #991b1b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contact-form-wrapper .wpcf7-spinner {
  margin-left: 0.5rem;
}

.faq-item {
  position: relative;
}

.faq-trigger {
  position: relative;
}

.faq-trigger:hover {
  background-color: rgba(255, 237, 78, 0.2);
}

.faq-content {
  overflow: hidden;
}

.gallery-item {
  position: relative;
}

/* Lightbox arrow hover effect */
.lightbox-arrow:hover {
  transform: translate(0.25rem, calc(-50% + 0.25rem)) !important;
}

/* Lightbox animations */
#gallery-lightbox {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#gallery-lightbox > div {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive adjustments for Hero */
@media (max-width: 768px) {
  .hero-shape-1 {
    top: 2rem !important;
    right: 1rem !important;
    width: 6rem !important;
    height: 6rem !important;
  }

  .hero-shape-2 {
    bottom: 8rem !important;
    left: 1rem !important;
    width: 4rem !important;
    height: 4rem !important;
  }
}

/* Responsive adjustments for About */
@media (max-width: 768px) {
  .about-decor-1 {
    top: 1rem !important;
    right: 1rem !important;
    width: 3rem !important;
    height: 3rem !important;
  }

  .about-decor-2 {
    bottom: 1rem !important;
    left: 1rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .about-image img {
    height: 300px !important;
  }

  .about-text h2 {
    font-size: 2rem !important;
  }
}

/* Responsive adjustments for Footer */
@media (max-width: 768px) {
  .footer-section {
    padding: 3rem 1rem !important;
  }

  .footer-section h3 {
    font-size: 1.5rem !important;
  }
}

/* Responsive adjustments for Contact */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2.5rem !important;
  }
}

/* Responsive adjustments for FAQ */
@media (max-width: 768px) {
  .faq-title {
    font-size: 2.5rem !important;
  }

  .faq-decor {
    top: 1rem !important;
    right: 1rem !important;
    width: 6rem !important;
    height: 6rem !important;
  }
}

/* Responsive adjustments for Pricing */
@media (max-width: 768px) {
  .pricing-title {
    font-size: 2.5rem !important;
  }

  .pricing-card {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
  }

  .pricing-cards {
    gap: 1.5rem !important;
  }
}

/* Responsive adjustments for Testimonials */
@media (max-width: 768px) {
  .testimonials-title {
    font-size: 2.5rem !important;
  }

  .testimonials-decor-1 {
    top: 1rem !important;
    right: 1rem !important;
    width: 4rem !important;
    height: 4rem !important;
  }

  .testimonials-decor-2 {
    bottom: 1rem !important;
    left: 1rem !important;
    width: 3rem !important;
    height: 3rem !important;
  }
}

/* Responsive adjustments for Gallery */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 2.5rem !important;
  }
  
  #lightbox-prev,
  #lightbox-next {
    padding: 0.5rem !important;
  }
  
  #lightbox-prev svg,
  #lightbox-next svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  #lightbox-prev {
    left: 0.5rem !important;
  }
  
  #lightbox-next {
    right: 0.5rem !important;
  }
}
