/* style.css - Apple-Inspired Premium Design System */

/* ========================================
   CSS VARIABLES - Refined Minimal Palette
   ======================================== */
:root {
  /* Primary Brand Colors - Refined Dark */
  --color-primary: #1d1d1f;
  --color-primary-dark: #000000;
  --color-primary-light: #424245;

  /* Accent Colors - Sophisticated Blue */
  --color-accent: #0071e3;
  --color-accent-dark: #0077ed;
  --color-accent-light: #2997ff;

  /* Secondary Accent - Premium Gold */
  --color-secondary: #f5a623;
  --color-secondary-light: #ffb340;

  /* Neutral Colors - Clean & Minimal */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #fbfbfd;
  --color-bg-tertiary: #f5f5f7;
  --color-surface: #ffffff;
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;

  /* Border & Divider */
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;

  /* Shadows - Subtle & Refined */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px 0 rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 12px 40px 0 rgba(0, 0, 0, 0.15);

  /* Gradients - Clean & Minimal */
  --gradient-primary: linear-gradient(135deg, #1d1d1f 0%, #424245 100%);
  --gradient-accent: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
  --gradient-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);

  /* Border Radius - Apple Style */
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.5rem;

  /* Spacing - Generous & Breathable */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  --spacing-3xl: 8rem;
}

/* Custom styles for the body and fonts */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  min-height: 100vh;
  padding-top: 88px;
  padding-bottom: 0;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
}

/* ========================================
   BUTTON STYLES - Apple Inspired
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 980px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  position: relative;
  letter-spacing: -0.022em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  min-width: 28px;
  padding: 0.75rem 1.75rem;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: calc(0.75rem - 1px) calc(1.75rem - 1px);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.02);
}

.btn-cta {
  background: var(--color-accent);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 21px;
  font-weight: 500;
}

.btn-cta:hover {
  background: var(--color-accent-dark);
  transform: scale(1.02);
}

/* ========================================
   HERO SECTION - Apple Inspired
   ======================================== */
.hero-section {
  position: relative;
  background: var(--color-bg-primary);
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  background: transparent;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  border-radius: 980px;
  border: 1px solid var(--color-border);
  margin-bottom: var(--spacing-md);
  animation: slideInUp 0.6s ease-out 0.2s backwards;
}

.hero-main-title {
  font-size: 48px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.0834933333;
  letter-spacing: -0.003em;
  animation: slideInUp 0.6s ease-out 0.3s backwards;
}

@media (min-width: 768px) {
  .hero-main-title {
    font-size: 64px;
    letter-spacing: -0.009em;
  }
}

@media (min-width: 1024px) {
  .hero-main-title {
    font-size: 80px;
    letter-spacing: -0.015em;
  }
}

.hero-description {
  font-size: 21px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.381002381;
  letter-spacing: 0.011em;
  font-weight: 400;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  animation: slideInUp 0.6s ease-out 0.4s backwards;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 24px;
    line-height: 1.33349;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  animation: slideInUp 0.6s ease-out 0.5s backwards;
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-border-light);
  position: relative;
  z-index: 2;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: transparent;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  animation: scaleIn 0.6s ease-out backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.6s; }
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.8s; }

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-size: 56px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.07143;
  letter-spacing: -0.005em;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-transform: none;
  letter-spacing: -0.016em;
  font-weight: 400;
  line-height: 1.42859;
}

/* ========================================
   SECTION STYLES - Apple Inspired
   ======================================== */
.services-section {
  margin-bottom: var(--spacing-3xl);
  animation: fadeIn 0.8s ease-out 0.3s backwards;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .services-section {
    padding: 0 var(--spacing-lg);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

.section-subtitle {
  font-size: 21px;
  color: var(--color-text-secondary);
  max-width: 45rem;
  margin: 0 auto;
  line-height: 1.381;
  letter-spacing: 0.011em;
  font-weight: 400;
}

/* ========================================
   CALL TO ACTION SECTION - Apple Inspired
   ======================================== */
.cta-section {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: var(--spacing-3xl) var(--spacing-md);
  animation: fadeIn 0.8s ease-out 0.5s backwards;
}

@media (min-width: 768px) {
  .cta-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
    margin: var(--spacing-3xl) var(--spacing-lg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  margin: 0 auto;
}

.cta-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 48px;
  }
}

.cta-description {
  font-size: 21px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.381;
  letter-spacing: 0.011em;
  font-weight: 400;
}

@media (min-width: 768px) {
  .cta-description {
    font-size: 24px;
    line-height: 1.33349;
  }
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from bottom animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* This is used to hide pages that are not active */
.hidden {
  display: none !important;
}

/* Main content container */
.main-container {
  max-width: 84rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 0;
  animation: fadeIn 0.5s ease-in;
}

/* Company Logo */
.logo-container {
  position: absolute;
  top: 2rem;
  left: 2rem;
  animation: slideInLeft 0.6s ease-out;
}

@media (min-width: 640px) {
  .logo-container {
    top: 3rem;
    left: 3rem;
  }
}

.company-logo {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.company-logo:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Hero section and title */
.header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  animation: slideInUp 0.7s ease-out;
}

@media (min-width: 640px) {
  .header {
    margin-bottom: var(--spacing-2xl);
  }
}

.hero-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  opacity: 0;
  animation: fadeIn 0.8s ease-in 0.2s forwards;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }
}

.hero-subtitle {
  font-size: 21px;
  color: var(--color-text-secondary);
  max-width: 45rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeIn 0.8s ease-in 0.4s forwards;
  line-height: 1.381;
  letter-spacing: 0.011em;
  font-weight: 400;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 24px;
    line-height: 1.33349;
  }
}

/* Business sectors container */
.business-sectors-grid {
  display: grid;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .business-sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .business-sectors-grid {
    gap: var(--spacing-xl);
  }
}

/* Business sector cards */
.business-sector-link {
  display: block;
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
  text-decoration: none;
}

/* Staggered animation delays for cards */
.business-sector-link:nth-child(1) {
  animation-delay: 0.1s;
}
.business-sector-link:nth-child(2) {
  animation-delay: 0.2s;
}
.business-sector-link:nth-child(3) {
  animation-delay: 0.3s;
}
.business-sector-link:nth-child(4) {
  animation-delay: 0.4s;
}
.business-sector-link:nth-child(5) {
  animation-delay: 0.5s;
}
.business-sector-link:nth-child(6) {
  animation-delay: 0.6s;
}

.business-sector-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--color-border-light);
  position: relative;
  height: 100%;
}

.business-sector-link:hover .business-sector-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card image and overlay */
.card-image-container {
  position: relative;
  width: 100%;
  height: 18rem;
  border-radius: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .card-image-container {
    height: 22rem;
  }
}

@media (min-width: 1024px) {
  .card-image-container {
    height: 26rem;
  }
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.business-sector-card:hover .card-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
  transition: all 0.3s ease;
  z-index: 1;
}

.business-sector-card:hover .image-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%);
}

/* Card text content */
.card-content {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  right: var(--spacing-md);
  color: #ffffff;
  transition: all 0.4s ease;
  z-index: 2;
}

@media (min-width: 640px) {
  .card-content {
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    right: var(--spacing-lg);
  }
}

.card-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 0;
  transition: all 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.003em;
  line-height: 1.14286;
}

.business-sector-card:hover .card-title {
  transform: translateY(-2px);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  .card-title {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .card-title {
    font-size: 36px;
  }
}

/* Back Button Style */
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: none;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: slideInLeft 0.5s ease-out;
  box-shadow: var(--shadow-md);
}

.back-button:hover {
  transform: scale(1.05) translateX(-3px);
  box-shadow: var(--shadow-xl);
}

.back-button:active {
  transform: scale(0.95) translateX(-3px);
}

.contact-details {
  background: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-primary);
  animation: scaleIn 0.6s ease-out 0.3s backwards;
  border: 1px solid var(--color-border-light);
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* Adds space between paragraphs in the main text areas */
.text-content p,
.contact-details p {
  margin-bottom: 1rem;
}

/* Removes the extra space after the very last paragraph in a container */
.text-content p:last-of-type,
.contact-details p:last-of-type {
  margin-bottom: 0;
}

.contact-details a {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-details a:hover {
  color: #1d4ed8;
}

/*
=========================================
CONTACT FORM STYLES
=========================================
*/

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-2xl);
  }
}

/* Contact Form Container */
.contact-form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border-light);
  animation: slideInUp 0.7s ease-out 0.2s backwards;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .contact-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.required {
  color: #ef4444;
  font-weight: 700;
}

/* Form Inputs */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--color-text-primary);
  background: var(--color-surface);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Spinner */
.button-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}

.spinner .path {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Form Messages */
.form-message {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  animation: slideInUp 0.3s ease-out;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Contact Info Cards */
.contact-info-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .contact-info-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-info-container {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  text-align: center;
  transition: all 0.3s ease;
  animation: scaleIn 0.6s ease-out backwards;
}

.contact-info-card:nth-child(1) {
  animation-delay: 0.3s;
}
.contact-info-card:nth-child(2) {
  animation-delay: 0.4s;
}
.contact-info-card:nth-child(3) {
  animation-delay: 0.5s;
}
.contact-info-card:nth-child(4) {
  animation-delay: 0.6s;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.info-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--spacing-sm);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.info-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.contact-info-card a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-info-card a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Message box styling for JavaScript feedback */
#message-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 90%;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border-light);
  backdrop-filter: blur(12px);
}

#message-box.show {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#message-text {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

#close-message {
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

#close-message:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

#close-message:active {
  transform: scale(0.95);
}

/*
=========================================
STYLES FOR BACKGROUND IMAGES
=========================================
*/

/* Base class for pages with a background image */
.page-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 2rem;
  min-height: 100vh;
  box-sizing: border-box;
  color: #ffffff;
}

/* Creates the dark overlay so text is readable */
.page-with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.7);
  z-index: 1;
  animation: fadeIn 0.5s ease-in;
}

/* Ensure the actual content sits on top of the overlay */
.page-with-bg .back-button,
.page-with-bg .header,
.page-with-bg .text-content,
.page-with-bg .logo-container,
.page-with-bg .contact-details,
.page-with-bg .contact-wrapper,
.page-with-bg .contact-form-container,
.page-with-bg .contact-info-container {
  position: relative;
  z-index: 2;
}

/* Override title color for readability on dark backgrounds */
.page-with-bg .hero-title {
  color: #ffffff;
}

/* Styling for the main content box on these pages */
.text-content {
  background: rgba(15, 23, 42, 0.75);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  max-width: 56rem;
  margin: var(--spacing-2xl) auto 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-2xl);
  animation: slideInUp 0.7s ease-out 0.2s backwards;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.text-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.text-content ul,
.text-content ol {
  list-style-position: inside;
  margin-left: 1rem;
  line-height: 1.8;
  font-size: 1.125rem;
}

/* Specific background images for each page - Using optimized WebP with JPG fallbacks */

/* WebP support detection and fallback */
#kitchen-overview-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_design_9.jpg");
}
@supports (background-image: url("test.webp")) {
  #kitchen-overview-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_design_9.webp");
  }
}

#kitchen-services-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_design_2.jpg");
}
@supports (background-image: url("test.webp")) {
  #kitchen-services-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_design_2.webp");
  }
}

#kitchen-approach-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_design_3.jpg");
}
@supports (background-image: url("test.webp")) {
  #kitchen-approach-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_design_3.webp");
  }
}

#kitchen-why-us-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_design_5.jpg");
}
@supports (background-image: url("test.webp")) {
  #kitchen-why-us-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_design_5.webp");
  }
}

#about-kitchens-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_design_1.jpg");
}
@supports (background-image: url("test.webp")) {
  #about-kitchens-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_design_1.webp");
  }
}

#about-petroleum-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_environmental-pollution-industry-exterior-daylight.jpg");
}
@supports (background-image: url("test.webp")) {
  #about-petroleum-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_environmental-pollution-industry-exterior-daylight.webp");
  }
}

/* Petroleum pages */
#overview-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_overview.jpg");
}
@supports (background-image: url("test.webp")) {
  #overview-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_overview.webp");
  }
}

#mission-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_mission statement.jpg");
}
@supports (background-image: url("test.webp")) {
  #mission-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_mission statement.webp");
  }
}

#portfolio-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_product portfolio.jpg");
}
@supports (background-image: url("test.webp")) {
  #portfolio-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_product portfolio.webp");
  }
}

#strategic-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_strategic.jpg");
}
@supports (background-image: url("test.webp")) {
  #strategic-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_strategic.webp");
  }
}

/* Construction pages */
#construction-services-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_core_services.jpg");
}
@supports (background-image: url("test.webp")) {
  #construction-services-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_core_services.webp");
  }
}

#construction-why-us-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_why_choose.jpg");
}
@supports (background-image: url("test.webp")) {
  #construction-why-us-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_why_choose.webp");
  }
}

#construction-team-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_construction_meet.jpg");
}
@supports (background-image: url("test.webp")) {
  #construction-team-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_construction_meet.webp");
  }
}

#construction-mission-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_construction_mission.jpg");
}
@supports (background-image: url("test.webp")) {
  #construction-mission-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_construction_mission.webp");
  }
}

#contact-us-page.page-with-bg {
  background-image: url("assets/the_new_assets/new_contact-us.jpg");
}
@supports (background-image: url("test.webp")) {
  #contact-us-page.page-with-bg {
    background-image: url("assets/the_new_assets/new_contact-us.webp");
  }
}

/*
=========================================
NAVIGATION BAR STYLES
=========================================
*/
.main-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
  padding: 0 var(--spacing-md);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 88px;
  opacity: 0;
  animation: slideInUp 0.5s ease-out forwards;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .main-nav {
    padding: 0 var(--spacing-lg);
  }
}

.nav-content-wrapper {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding-right: 10%;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo-link:hover {
  transform: scale(1.05);
}

.nav-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nav-logo-link:hover .nav-logo-img {
  transform: rotate(5deg);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 400;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
  position: relative;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.nav-links li a:hover {
  color: var(--color-text-secondary);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xs) 0;
  list-style: none;
  min-width: 220px;
  z-index: 110;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--color-border-light);
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  position: relative;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu li a:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
  color: var(--color-primary);
  padding-left: 2rem;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-accent);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-links li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  color: #1f2937;
  transition: transform 0.3s ease;
}

.mobile-menu-button:hover {
  transform: scale(1.1);
}

.mobile-menu-button:active {
  transform: scale(0.9);
}

@media (min-width: 640px) {
  .main-nav {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
  .mobile-menu-button {
    display: none;
  }
}

.nav-links.mobile-menu-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #e5e7eb;
  animation: slideInUp 0.3s ease-out;
}

.nav-links.mobile-menu-open .dropdown-menu {
  position: static;
  box-shadow: none;
  padding-left: 1rem;
  border-left: 2px solid #e5e7eb;
  margin-top: 0.5rem;
  opacity: 1;
  transform: translateY(0);
}

.nav-links.mobile-menu-open .dropdown:hover .dropdown-menu {
  display: none;
}

.nav-links.mobile-menu-open .dropdown.active .dropdown-menu {
  display: block;
  animation: slideInLeft 0.3s ease-out;
}

.main-footer {
  position: relative;
  width: 100%;
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  padding: var(--spacing-xl) 0;
  z-index: 99;
  box-sizing: border-box;
  opacity: 0;
  animation: slideInUp 0.6s ease-out 0.3s forwards;
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--spacing-3xl);
}

.footer-container {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .footer-container {
    padding: 0 var(--spacing-lg);
  }
}

/* Footer Links Grid */
.footer-links-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border-light);
}

@media (min-width: 640px) {
  .footer-links-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-links-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
  text-transform: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin: 0;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.footer-legal-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer-legal-link {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.footer-legal-link:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   COOKIE CONSENT BANNER - Apple Inspired
   ======================================== */
.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--spacing-md);
}

.cookie-banner.hidden {
  display: none;
}

/* Blurred backdrop overlay */
.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.4s ease-out;
  z-index: -1;
}

.cookie-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 28rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border-light);
  padding: var(--spacing-xl);
  animation: slideInRight 0.5s ease-out;
  z-index: 1;
}

@media (max-width: 767px) {
  .cookie-content {
    max-width: 100%;
    margin: 0 auto;
    animation: slideInUp 0.5s ease-out;
  }

  .cookie-banner {
    justify-content: center;
  }
}

.cookie-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin: 0 auto var(--spacing-sm) auto;
}

.cookie-icon svg {
  width: 40px;
  height: 40px;
}

.cookie-text {
  flex: 1;
  text-align: center;
}

.cookie-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.29412;
  letter-spacing: -0.022em;
}

.cookie-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.cookie-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.cookie-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-direction: column;
  margin-top: var(--spacing-sm);
}

.cookie-btn {
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

/* ========================================
   COOKIE SETTINGS MODAL
   ======================================== */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.cookie-modal.hidden {
  display: none;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.cookie-modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 40rem;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.3s ease-out;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.cookie-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.16667;
  letter-spacing: 0.009em;
}

.cookie-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close:hover {
  color: var(--color-text-primary);
}

.cookie-modal-close svg {
  width: 24px;
  height: 24px;
}

.cookie-modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.cookie-modal-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.cookie-category {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.29412;
  letter-spacing: -0.022em;
}

.cookie-category-description {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.cookie-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-label {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 400;
}

/* iOS-style Toggle Switch */
.toggle-checkbox {
  display: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  background: var(--color-border);
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 27px;
  height: 27px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16);
}

.toggle-checkbox:checked + .toggle-switch {
  background: #34c759;
}

.toggle-checkbox:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.cookie-modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: flex-end;
}

/* Smooth page transitions */
.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Loading spinner (optional enhancement) */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #1f2937;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}
