/* Trevalenthia - Main Stylesheet */

/* CSS Variables for consistent spacing and colors */
:root {
  --primary: #3b1e54;
  --secondary: #9b7ebd;
  --tertiary: #d4bee4;
  --light: #eeeeee;
  --white: #ffffff;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Nunito', sans-serif;

  --transition: all 0.3s ease;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Nunito:wght@300;400;600;700&display=swap');

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

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

body {
  font-family: var(--font-secondary);
  color: var(--primary);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  color: var(--primary);
  text-shadow: 0 1px 1px rgba(59, 30, 84, 0.1);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.trevalenthia-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.trevalenthia-section {
  padding: var(--space-lg) 0;
  position: relative;
}

.trevalenthia-section-inner {
  position: relative;
  z-index: 2;
}

.trevalenthia-btn {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.trevalenthia-btn:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.trevalenthia-text-center {
  text-align: center;
}

.trevalenthia-mb-sm {
  margin-bottom: var(--space-sm);
}

.trevalenthia-mb-md {
  margin-bottom: var(--space-md);
}

.trevalenthia-mb-lg {
  margin-bottom: var(--space-lg);
}

/* Header Styles */
.trevalenthia-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.trevalenthia-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.trevalenthia-logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
  text-shadow: 1px 1px 0px var(--tertiary);
}

.trevalenthia-nav {
  display: flex;
  align-items: center;
}

.trevalenthia-nav-list {
  display: flex;
  list-style: none;
}

.trevalenthia-nav-item {
  margin-left: var(--space-md);
}

.trevalenthia-nav-link {
  position: relative;
  font-weight: 600;
  padding: var(--space-xs) 0;
}

.trevalenthia-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.trevalenthia-nav-link:hover::after {
  width: 100%;
}

.trevalenthia-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.trevalenthia-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  transition: var(--transition);
}

/* Hero Section */
.trevalenthia-hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--tertiary);
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.trevalenthia-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.trevalenthia-hero-title {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.trevalenthia-hero-text {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

/* About Section */
.trevalenthia-about {
  background-color: var(--white);
}

.trevalenthia-about-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.trevalenthia-about-text {
  flex: 1;
}

.trevalenthia-about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.trevalenthia-services {
  background-color: var(--light);
}

.trevalenthia-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.trevalenthia-service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.trevalenthia-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trevalenthia-service-image {
  height: 200px;
  background-position: center;
  background-size: cover;
  position: relative;
}

.trevalenthia-service-icon {
  position: absolute;
  bottom: -25px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.trevalenthia-service-content {
  padding: var(--space-md);
}

.trevalenthia-service-title {
  margin-bottom: var(--space-xs);
  font-size: 1.5rem;
}

/* Products Section */
.trevalenthia-products {
  background-color: var(--white);
}

.trevalenthia-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.trevalenthia-product-card {
  background-color: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
}

.trevalenthia-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trevalenthia-product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.trevalenthia-product-image {
  height: 200px;
  background-position: center;
  background-size: cover;
}

.trevalenthia-product-content {
  padding: var(--space-md);
}

.trevalenthia-product-title {
  margin-bottom: var(--space-xs);
  font-size: 1.5rem;
}

.trevalenthia-product-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

/* Testimonials Section */
.trevalenthia-testimonials {
  background-color: var(--tertiary);
}

.trevalenthia-testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.trevalenthia-testimonial {
  text-align: center;
  padding: var(--space-md);
}

.trevalenthia-testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.trevalenthia-testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

/* Gallery Section */
.trevalenthia-gallery {
  background-color: var(--white);
}

.trevalenthia-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.trevalenthia-gallery-item {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.trevalenthia-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.trevalenthia-gallery-item:hover .trevalenthia-gallery-image {
  transform: scale(1.05);
}

.trevalenthia-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 30, 84, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.trevalenthia-gallery-item:hover .trevalenthia-gallery-overlay {
  opacity: 1;
}

.trevalenthia-gallery-icon {
  color: var(--white);
  font-size: 2rem;
}

/* Modal for gallery */
.trevalenthia-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.trevalenthia-modal.active {
  opacity: 1;
  visibility: visible;
}

.trevalenthia-modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.trevalenthia-modal-image {
  max-width: 100%;
  max-height: 90vh;
  border: 5px solid var(--white);
}

.trevalenthia-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.trevalenthia-modal-prev,
.trevalenthia-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition);
}

.trevalenthia-modal-prev {
  left: -60px;
}

.trevalenthia-modal-next {
  right: -60px;
}

.trevalenthia-modal-prev:hover,
.trevalenthia-modal-next:hover {
  color: var(--tertiary);
}

/* Contact Section */
.trevalenthia-contact {
  background-color: var(--light);
}

.trevalenthia-contact-container {
  display: flex;
  gap: var(--space-lg);
}

.trevalenthia-contact-info {
  flex: 1;
}

.trevalenthia-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.trevalenthia-contact-text {
  flex: 1;
}

.trevalenthia-contact-label {
  font-weight: 600;
  margin-bottom: 5px;
}

.trevalenthia-form {
  flex: 1;
  background-color: var(--white);
  padding: var(--space-md);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.trevalenthia-form-group {
  margin-bottom: var(--space-sm);
}

.trevalenthia-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.trevalenthia-form-input,
.trevalenthia-form-textarea {
  width: 100%;
  padding: var(--space-xs);
  border: 1px solid var(--tertiary);
  border-radius: 4px;
  font-family: var(--font-secondary);
  transition: var(--transition);
}

.trevalenthia-form-input:focus,
.trevalenthia-form-textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(155, 126, 189, 0.2);
}

.trevalenthia-form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.trevalenthia-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
}

.trevalenthia-footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.trevalenthia-footer-logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.trevalenthia-footer-about {
  margin-bottom: var(--space-md);
}

.trevalenthia-footer-title {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.trevalenthia-footer-links {
  list-style: none;
}

.trevalenthia-footer-link {
  margin-bottom: var(--space-xs);
}

.trevalenthia-footer-link a {
  color: var(--tertiary);
}

.trevalenthia-footer-link a:hover {
  color: var(--white);
}

.trevalenthia-social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.trevalenthia-social-icon:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.trevalenthia-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  text-align: center;
}

/* Thank You Page */
.trevalenthia-thankyou {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tertiary);
  text-align: center;
}

.trevalenthia-thankyou-content {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
}

.trevalenthia-thankyou-icon {
  width: 80px;
  height: 80px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--white);
  font-size: 2.5rem;
}

/* Policy Pages */
.trevalenthia-policy {
  padding-top: 120px;
  padding-bottom: var(--space-xl);
}

.trevalenthia-policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.trevalenthia-policy-section {
  margin-bottom: var(--space-lg);
}

.trevalenthia-policy-title {
  margin-bottom: var(--space-md);
}

.trevalenthia-policy-list {
  list-style-position: inside;
  margin-bottom: var(--space-md);
  padding-left: var(--space-sm);
}

.trevalenthia-policy-item {
  margin-bottom: var(--space-xs);
}

/* Custom Icons */
.trevalenthia-icon {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 24px;
}

.trevalenthia-icon-phone::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.trevalenthia-icon-phone::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.trevalenthia-icon-email::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 20px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.trevalenthia-icon-email::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 20px;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: top left;
}

.trevalenthia-icon-location::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
}

.trevalenthia-icon-location::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 4px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.trevalenthia-icon-expand::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
  background-color: currentColor;
}

.trevalenthia-icon-expand::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
  background-color: currentColor;
}

.trevalenthia-icon-arrow-left::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 4px;
  width: 16px;
  height: 2px;
  background-color: currentColor;
}

.trevalenthia-icon-arrow-left::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: bottom left;
}

.trevalenthia-icon-arrow-right::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
  background-color: currentColor;
}

.trevalenthia-icon-arrow-right::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: top right;
}

.trevalenthia-icon-check::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-80%, -20%);
  width: 25px;
  height: 25px;
  -webkit-transform: rotate(45deg) translate(-80%, -20%);
  -moz-transform: rotate(45deg) translate(-80%, -20%);
  -ms-transform: rotate(45deg) translate(-80%, -20%);
  -o-transform: rotate(45deg) translate(-80%, -20%);
}

.trevalenthia-icon-close::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: transparent;
}

.trevalenthia-icon-close::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transform: rotate(45deg);
}

.trevalenthia-icon-close::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transform: rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 991px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  .trevalenthia-hero-title {
    font-size: 2.5rem;
  }

  .trevalenthia-section {
    padding: var(--space-md) 0;
  }

  .trevalenthia-about-content {
    flex-direction: column;
    gap: var(--space-md);
  }

  .trevalenthia-contact-container {
    flex-direction: column;
  }

  .trevalenthia-modal-prev {
    left: -40px;
  }

  .trevalenthia-modal-next {
    right: -40px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .trevalenthia-menu-toggle {
    display: flex;
  }

  .trevalenthia-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .trevalenthia-nav.active {
    height: auto;
  }

  .trevalenthia-nav-list {
    flex-direction: column;
    padding: var(--space-md) 40px;
  }

  .trevalenthia-nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .trevalenthia-nav-link {
    display: block;
    padding: var(--space-xs) 0;
  }

  .trevalenthia-nav-link::after {
    display: none;
  }

  .trevalenthia-hero {
    min-height: 500px;
    margin-top: 60px;
  }

  .trevalenthia-hero-content {
    text-align: center;
    max-width: 100%;
  }

  .trevalenthia-hero-title {
    font-size: 2.2rem;
  }

  .trevalenthia-modal-prev,
  .trevalenthia-modal-next {
    font-size: 2rem;
  }

  .trevalenthia-modal-prev {
    left: -30px;
  }

  .trevalenthia-modal-next {
    right: -30px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 13px;
  }

  .trevalenthia-section {
    padding: var(--space-sm) 0;
  }

  .trevalenthia-hero {
    min-height: 400px;
  }

  .trevalenthia-hero-title {
    font-size: 2rem;
  }

  .trevalenthia-services-grid,
  .trevalenthia-products-grid,
  .trevalenthia-gallery-grid {
    grid-template-columns: 1fr;
  }

  .trevalenthia-modal-prev,
  .trevalenthia-modal-next {
    display: none;
  }

  .trevalenthia-footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }

  .trevalenthia-container {
    padding: 0 var(--space-xs);
  }

  .trevalenthia-hero {
    min-height: 350px;
  }

  .trevalenthia-hero-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
  }

  .trevalenthia-hero-text {
    font-size: 1rem;
  }

  .trevalenthia-btn {
    padding: var(--space-xs) var(--space-sm);
  }

  .trevalenthia-service-image,
  .trevalenthia-product-image {
    height: 150px;
  }
}
