/* ----------------------------------------------------------------------
Global Styles
------------------------------------------------------------------------- */
:root {
  --pale-orange: #FFF0E5;
  --peach: #FFD7BA;
  --orange: #FF8C42;
  --dark-orange: #E85D04;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #555555;
  --sage-green: #87A96B;
  --black: #000000;
  --light-gray: #F5F5F5;
  --charcoal: #333333;
  --medium-gray: #777777;
  --grey-gradient: #5c5c5c;
  
  /* Responsive spacing scale */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2rem);
  --space-xl: clamp(2rem, 4vw, 3rem);
  --space-xxl: clamp(3rem, 6vw, 4rem);
  
  /* Responsive font scale */
  --text-xs: clamp(0.75rem, 1vw, 0.875rem);
  --text-sm: clamp(0.875rem, 1.5vw, 1rem);
  --text-base: clamp(1rem, 2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 2.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 3vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 4vw, 2rem);
  --text-3xl: clamp(1.75rem, 5vw, 2.5rem);
  --text-4xl: clamp(2rem, 6vw, 3rem);
  --text-5xl: clamp(2.5rem, 7vw, 3.5rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--pale-orange);
  font-size: var(--text-sm);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.brand-text {
  color: var(--dark-orange);
  font-weight: 700;
}

.brand-text-blk {
  color: var(--black);
  font-weight: 700;
}

/* Bootstrap-style button styling */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: var(--space-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: var(--orange);
  border-color: var(--orange);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--dark-orange);
  border-color: var(--dark-orange);
}

.btn-outline-primary {
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--orange);
  border-color: var(--orange);
}

/* Adjust scroll margin for anchored sections */
[id] {
  scroll-margin-top: 80px;
}

html {
  scroll-behavior: smooth;
}

/* ----------------------------------------------------------------------
Hero Section Styles
------------------------------------------------------------------------- */

.hero {
  min-height: clamp(60vh, 90vh, 92vh);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://res.cloudinary.com/ddj2rpxcb/image/upload/v1765300771/home-hero_y7jl0c.jpg?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  filter: grayscale(40%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(143 126 115 / 70%) 0%, rgb(0 0 0 / 90%) 100%);
  z-index: -1;
}

.hero-content {
  max-width: min(90%, 1000px);
  padding: 0 var(--space-md);
  z-index: 1;
}

.hero-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  font-weight: 700;
  letter-spacing: clamp(1px, 0.1vw, 2px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  line-height: 1.2;
}

.coming-soon {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  letter-spacing: clamp(1px, 0.1vw, 2px);
  text-transform: uppercase;
}

.hero p {
  font-size: var(--text-base);
  max-width: min(90%, 700px);
  margin: 0 auto var(--space-xl);
  font-weight: 300;
  line-height: 1.8;
}

/* ----------------------------------------------------------------------
Colour Bouncing Text Effect
------------------------------------------------------------------------- */

/* Intro text fade-out animation */
.intro-text {
  display: inline-block;
  animation: fadeOut 5.9s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  83.33% { /* 5 seconds out of 6 seconds */
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Adjust the hero title to handle the disappearing text */
.hero-title {
  position: relative;
  min-height: 1.2em; /* Prevent layout shift when text disappears */
}

/* Add a smooth transition for the brand text when it moves up */
.brand-text {
  display: inline-block;
  transition: transform 0.5s ease;
}

/* When the intro text is hidden, move the brand text up */
.hero-title:has(.intro-text[style*="hidden"]) .brand-text {
  transform: translateY(-1.2em);
}

.text {
  display: inline-block;
  padding: var(--space-md);
  white-space: nowrap;
}

.text span {
  padding: 0 clamp(0.5px, 0.3vw, 2px);
  text-transform: uppercase;
  color: var(--white); /* Changed from black for better contrast */
  font-size: 1em;
  animation: zoomup 15s linear infinite;
  animation-delay: calc(400ms * var(--i));
}

@keyframes zoomup {
  0%, 100% {
    color: var(--black);
    filter: blur(0.5px);
    text-shadow: 0 0 10px var(--orange), 0 0 20px var(--dark-orange), 0 0 30px var(--orange),
      0 0 40px var(--dark-orange), 0 0 60px var(--orange), 0 0 80px var(--dark-orange), 0 0 100px var(--orange),
      0 0 120px var(--dark-orange);
  }
  5%, 95% {
    color: var(--black);
    filter: blur(0);
    text-shadow: 0 0 10px var(--dark-orange);
  }
}

/* ----------------------------------------------------------------------
Scrolling Text Styles
------------------------------------------------------------------------- */

#scroll-container {
  border-bottom: 3px groove var(--orange);
  width: 100%;
  padding: var(--space-xs);
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--dark-orange);
}

#scroll-text {
  transform: translateX(100%);
  animation: my-animation 27s linear infinite;
  display: inline-block;
  white-space: nowrap;
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: clamp(1px, 0.2vw, 2px);
  text-transform: uppercase;
}

@keyframes my-animation {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ----------------------------------------------------------------------
Button Styles
------------------------------------------------------------------------- */

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--dark-orange);
  padding: var(--space-md);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 var(--space-sm);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  font-size: var(--text-3xl);
  color: var(--dark-orange);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: clamp(60px, 5vw, 80px);
  height: clamp(3px, 0.5vw, 4px);
  background-color: var(--orange);
  bottom: clamp(-10px, -1.5vw, -15px);
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  font-size: var(--text-base);
  color: var(--text-light);
  max-width: min(90%, 600px);
  margin: var(--space-lg) auto 0;
}

/* ----------------------------------------------------------------------
Services Section Styles
------------------------------------------------------------------------- */

.services {
  padding: var(--space-xxl) 0;
  background-color: var(--white);
}

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

.service-card {
  position: relative;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
}

.card-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.card-action {
  margin-top: var(--space-sm);
}

.btn-learn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--orange);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all 0.3s ease;
}

.btn-learn:hover {
  background-color: var(--dark-orange);
  transform: translateY(-3px);
}

/* ----------------------------------------------------------------------
Notification Styles
------------------------------------------------------------------------- */

.notification {
  padding: var(--space-xxl);
  background: linear-gradient(135deg, var(--peach) 0%, var(--pale-orange) 100%);
  text-align: center;
}

.notification-form {
  max-width: min(90%, 600px);
  margin: 0 auto;
}

.notification-form h2 {
  font-size: var(--text-3xl);
  color: var(--dark-orange);
  margin-bottom: var(--space-md);
}

.notification-form p {
  font-size: var(--text-base);
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  max-width: min(90%, 500px);
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------------------
Form Styles
------------------------------------------------------------------------- */

.form-container {
  background-color: var(--white);
  border-radius: 50px;
  padding: var(--space-sm);
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-md);
}

.form-container input {
  flex: 1;
  padding: var(--space-md);
  border: none;
  border-radius: 50px;
  font-size: var(--text-base);
  background-color: transparent;
  outline: none;
}

.form-container button {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  padding: var(--space-md);
  border-radius: 50px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all 0.3s;
}

.form-container button:hover {
  background-color: var(--dark-orange);
}

.success-message {
  display: none;
  background-color: #4CAF50;
  color: white;
  padding: var(--space-md);
  border-radius: 50px;
  margin-top: var(--space-md);
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* ----------------------------------------------------------------------
Footer Styles
------------------------------------------------------------------------- */

footer {
  background-color: var(--black);
  color: var(--white);
  padding: var(--space-xxl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-column h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-column p {
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--dark-orange);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 4vw, 3rem);
  height: clamp(2.5rem, 4vw, 3rem);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--dark-orange);
}

.copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
}

/* Legal links container */
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Individual legal link styling */
.footer-legal-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.875rem;
    position: relative;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* Separator between links (using pseudo-elements) */
.footer-legal-links a:not(:last-child)::after {
    content: "|";
    margin-left: 1rem;
    color: #7f8c8d;
    font-weight: bold;
}

/* Underline effect on hover */
.footer-legal-links.underline-style a {
    border-bottom: 2px solid transparent;
}

.footer-legal-links.underline-style a:hover {
    border-bottom-color: #667eea;
}

/* Box style with background */
.footer-legal-links.box-style a {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.footer-legal-links.box-style a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
}

.footer-legal-links.box-style a:not(:last-child)::after {
    display: none; /* Remove separators for box style */
}

/* Gradient accent style */
.footer-legal-links.gradient-style a {
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-legal-links.gradient-style a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-legal-links.gradient-style a:not(:last-child)::after {
    display: none;
}

/* Icon style (if you want to add icons) */
.footer-legal-links.icon-style a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-legal-links.icon-style a::before {
    content: "📄";
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-legal-links a:not(:last-child)::after {
        display: none; /* Remove separators on mobile for cleaner look */
    }
    
    .footer-legal-links a {
        padding: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .footer-copyright {
        padding: 1rem 0.5rem;
    }
    
    .footer-legal-links a {
        font-size: 0.8rem;
    }
}

/* ----------------------------------------------------------------------
Media Queries for Specific Breakpoints
------------------------------------------------------------------------- */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .form-container {
    flex-direction: row;
    border-radius: 50px;
  }

  .form-container input {
    border-radius: 50px 0 0 50px;
    margin-bottom: 0;
    margin-right: 10px;
  }

  .form-container button {
    border-radius: 0 50px 50px 0;
    min-width: 120px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .section-title h2 {
    font-size: 36px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: var(--text-5xl);
  }

  .coming-soon {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 42px;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: var(--text-5xl);
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: var(--text-2xl);
    line-height: 1.1;
  }

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

  .text span {
    padding: 0 0.5px;
    font-size: 0.9em;
  }

  .cta-button {
    display: block;
    width: 80%;
    margin: var(--space-sm) auto;
  }
  
  .social-links {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column h3 {
    margin-top: var(--space-md);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    height: 250px;
  }

  /* Adjust scroll margin for anchored sections */
  [id] {
    scroll-margin-top: 140px;
  }
}

/* Support for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .text span {
    animation: none;
    color: var(--white) !important;
  }
  
  #scroll-text {
    animation: none;
  }
}

/* Add this specific media query for the 768px to 946px range */
@media (min-width: 768px) and (max-width: 946px) {
  /* Hero Section Adjustments */
  .hero {
    min-height: 70vh; /* Adjust height for this range */
  }
  
  .hero-content {
    padding: 0 var(--space-lg); /* Increase padding for better spacing */
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem); /* More controlled font size */
    line-height: 1.1; /* Tighter line height */
    margin-bottom: var(--space-md);
  }
  
  /* Animated Text Adjustments */
  .text {
    padding: var(--space-sm) var(--space-xs); /* Reduce padding */
    display: inline-block;
    max-width: 100%; /* Ensure it doesn't overflow */
  }
  
  .text span {
    padding: 0 1px; /* Consistent spacing between letters */
    font-size: 0.85em; /* Slightly smaller font size */
  }
  
  /* Coming Soon Text */
  .coming-soon {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
  }
  
  /* Hero Paragraph */
  .hero p {
    font-size: var(--text-base);
    max-width: 90%;
    margin: 0 auto var(--space-lg);
  }
  
  /* CTA Button */
  .cta-button {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
  }
  
  /* Ensure the animated text doesn't wrap */
  .brand-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}


/* Add this media query specifically for screens 531px and below */
@media (max-width: 531px) {
  /* Hero Section Adjustments */
  .hero {
    min-height: 80vh; /* Increase height to accommodate content */
    padding: var(--space-md) 0; /* Add vertical padding */
  }
  
  .hero-content {
    padding: 0 var(--space-sm); /* Reduce horizontal padding */
    max-width: 95%; /* Ensure content doesn't touch edges */
  }
  
  .hero-title {
    font-size: var(--text-md); /* Smaller font size */
    line-height: 1.1; /* Tighter line height */
    margin-bottom: var(--space-sm); /* Reduced margin */
    letter-spacing: 0.5px; /* Reduced letter spacing */
  }
  
  /* Animated Text Adjustments */
  .text {
    padding: var(--space-xs) 0; /* Minimal padding */
    display: block; /* Change to block to control wrapping */
    white-space: normal; /* Allow text to wrap */
    text-align: center; /* Center the text */
    line-height: 1.2; /* Tighter line height */
    font-size: 24px;
  }
  
  .text span {
    padding: 0 1px; /* Minimal spacing between letters */
    font-size: 0.8em; /* Smaller font size */
    display: inline-block; /* Keep letters inline */
  }
  
  /* Coming Soon Text */
  .coming-soon {
    font-size: var(--text-md); /* Smaller font size */
    margin-bottom: var(--space-sm); /* Reduced margin */
    letter-spacing: 0.5px; /* Reduced letter spacing */
  }
  
  /* Hero Paragraph */
  .hero p {
    font-size: var(--text-sm); /* Smaller font size */
    max-width: 95%; /* Slightly wider */
    margin: 0 auto var(--space-md); /* Reduced margin */
    line-height: 1.5; /* Tighter line height */
  }
  
  /* CTA Button */
  .cta-button {
    display: block; /* Full width button */
    width: 90%; /* Almost full width */
    margin: var(--space-sm) auto; /* Center with margin */
    padding: var(--space-sm) var(--space-md); /* Adjust padding */
    font-size: var(--text-sm); /* Smaller font size */
  }
  
  /* Notification Section Adjustments */
  .notification {
    padding: var(--space-lg) var(--space-md); /* Reduced padding */
  }
  
  .notification-form {
    max-width: 95%; /* Almost full width */
  }
  
  .notification-form h2 {
    font-size: var(--text-xl); /* Smaller font size */
    margin-bottom: var(--space-sm); /* Reduced margin */
  }
  
  .notification-form p {
    font-size: var(--text-sm); /* Smaller font size */
    margin-bottom: var(--space-md); /* Reduced margin */
    max-width: 95%; /* Slightly wider */
  }
  
  /* Form Adjustments */
  .form-container {
    flex-direction: column; /* Stack vertically */
    padding: var(--space-xs); /* Reduced padding */
    border-radius: 30px; /* Slightly smaller border radius */
  }
  
  .form-container input {
    padding: var(--space-sm); /* Reduced padding */
    font-size: var(--text-sm); /* Smaller font size */
    margin-bottom: var(--space-xs); /* Small space between elements */
    border-radius: 30px; /* Match container */
    text-align: center;
  }
  
  .form-container button {
    padding: var(--space-sm); /* Reduced padding */
    font-size: var(--text-sm); /* Smaller font size */
    border-radius: 30px; /* Match container */
  }
  
  /* Success Message */
  .success-message {
    padding: var(--space-sm); /* Reduced padding */
    font-size: var(--text-sm); /* Smaller font size */
    border-radius: 30px; /* Match form */
  }
  
  /* Scrolling Text Adjustments */
  #scroll-container {
    padding: var(--space-xs); /* Reduced padding */
  }
  
  #scroll-text {
    font-size: var(--text-xs); /* Smaller font size */
    letter-spacing: 0.5px; /* Reduced letter spacing */
  }
}