/* ==========================
   VARIABLES
========================== */
:root {
  --primary: #FE7C00;
  --accent: #1E88E5;
  --light: #F4F6F8;
  --dark: #A35000; /* Fixed double ## issue */
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ==========================
   GLOBAL
========================== */
// <weight>: Use a value from 300 to 900
// <uniquifier>: Use a unique and descriptive class name

.alan-sans-<uniquifier> {
  font-family: "Alan Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Alan Sans', sans-serif; }
body { color: var(--dark); line-height: 1.6; background: var(--light); }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ==========================
   HEADER & NAVIGATION
========================== */
header {
  background: var(--primary);
  color: white;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  font-size: 14px;
  color: white;
}

nav h2 {
  font-size: 22px;
  font-weight: bold;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}


/* ==========================
   MOBILE MENU
========================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 10;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav-links li {
    border-top: 2px solid rgba(255,255,255,0.15);
  }

  .nav-links a {
    display: block;
    padding: 15px 20px;
  }

  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  nav ul li a:active {
    background: rgba(255,255,255,0.1);
  }
}

/* ==========================
   HERO SECTION
========================== */
/* ==========================
   HERO MAIN
========================== */
.hero-main {
  background: url('../images/hero.jpg') center/cover no-repeat;
  color: white;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: center; /* center text inside section */
}

.hero-main .container {
  position: relative;
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  align-items: stretch; /* make boxes equal height */
  flex-wrap: wrap;
}

/* Hero boxes */
.hero-box {
  padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: 2rem;
	padding-right: 2rem;
	border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #719611;
  text-align: center;   /* center text horizontally */
  width: 100%;          /* full width on small screens */
  max-width: 500px;
  display: flex;         /* enable vertical centering */
  flex-direction: column;
  justify-content: center; /* vertical centering */
  box-sizing: border-box;
  overflow-wrap: normal; /* prevents breaking words */
  word-break: normal;    /* prevents breaking words */
	 /* Shadow added */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);  /* x-offset, y-offset, blur, color */
  box-sizing: border-box;
}

.hero-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .hero-main .container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center; /* center boxes horizontally */
  }

  .hero-box {
    flex: none;         /* prevent stretching */
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    font-size: 0.75rem; /* slightly smaller text to fit */
  }
}

.hero-main p { font-size: 22px; font-weight: normal; line-height: 24px; margin-bottom: 20px; }

.hero-main h1 { font-size: clamp(1.8rem, 5vw, 2.5rem);  line-height: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 20px; }

.hero-main h2 { font-size: clamp(1rem, 3vw, 1.5rem); font-weight: normal; line-height: clamp(1rem, 3vw, 1.5rem); margin-bottom: 20px; }

.hero-main h3 { font-size: 16px; font-weight: normal; line-height: 22px; margin-bottom: 20px; margin-top: 20px;}

/* ==========================
   CONTAINER & SECTIONS
========================== */
.container { max-width: 1200px; margin: auto; padding: 20px 20px; background: eeeeee;}
.section-title { font-size: 32px; line-height: 30px; margin-bottom: 10px; color: var(--primary); }
.section-body { font-size: 16px; line-height: 18px; margin-bottom: 10px; color: black; }


/* ==========================
   GRID & CARDS
========================== */
.grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.email-card { background: white; padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.email-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.email-card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 15px; border-radius: var(--radius); }

/* ==========================
   BUTTONS
========================== */
.btn { display: inline-block; background: var(--primary); color: white; padding: 14px 28px; border-radius: var(--radius); font-weight: bold; text-align: center; transition: background 0.3s; }
.btn.secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }

/* ==========================
   FORM
========================== */
form input, form textarea, form select { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: var(--radius); border: 1px solid #ccc; }
form button { background: var(--dark); color: white; border: none; padding: 14px; font-weight: bold; cursor: pointer; border-radius: var(--radius); }

/* ==========================
   FOOTER
========================== */
footer {
  background: var(--primary);
  color: white;
  padding: 20px 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-col h3 {
  margin-bottom: 1px;
  color: white;
}

.footer-col p, .footer-col a {
  color: white;
  font-size: 12px;
  line-height: 1.5;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-col p, .footer-col a { font-size: 12px; }
}

/* ==========================
   SCROLL REVEAL
========================== */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================
   COOKIE CONSENT
========================== */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10,37,64,0.95);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 14px;
  gap: 10px;
}

.cookie-consent a { color: var(--accent); text-decoration: underline; }

.cookie-consent button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 480px) {
  .cookie-consent {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}



/* ==========================
   WHATSAPP FLOAT BUTTON
========================== */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; background: #25D366; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; color: white; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  nav ul { gap: 10px; }
  .card img { height: 180px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .container { padding: 40px 15px; }
  .card img { height: 150px; }
}

/* ==========================
   ANIMATED DOWNLOAD BUTTON
========================== */
/* General form styling */

/* Body & form styling */

.email-card {
  background: f5f5f7;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.email-card input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.email-card button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-card button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  margin-left: 10px;
  animation: spin 1s linear infinite;
}

button.loading .spinner {
  display: inline-block;
}

button.loading .button-text {
  opacity: 0.6;
}

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

/* Checkmark */
.checkmark {
  display: none;
  color: white;
  font-size: 18px;
  margin-left: 10px;
  transform: scale(0);
}

button.success .checkmark {
  display: inline-block;
  animation: bounce 0.4s ease-out forwards;
}

@keyframes bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.4); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

button.success .button-text {
  opacity: 1;
}

/* Thank-you message */
#thankYouMessage {
  opacity: 0;
  color: green;
  margin-top: 10px;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
  font-size: 15px;
}

#thankYouMessage.visible {
  opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  .card input,
  .card button {
    font-size: 14px;
    padding: 10px;
  }

  .spinner {
    width: 14px;
    height: 14px;
  }

  #thankYouMessage {
    font-size: 14px;
  }
}

/* 2 column */

.hero {
  display: flex;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop styling to stack side by side */

/* Optional styling to visually separate boxes */
.hero-text {
  background: #719611;
}

.hero-cta {
 background: #719611;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* ==========================
  CARD SECTIONS
========================== */
.cards-section {
  padding: 4rem 1rem;
  background: #f9f9f9;
  text-align: center;
}

.cards-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background: #eeeeee;
  border-radius: 12px;
  padding: 2rem;
  flex: 1 1 250px; /* flexible width, min 250px */
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.card-icon {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 1rem;
  color: #FE7C00; /* icon color */
}

.card h3 {
  font-size: 1.25rem;
	line-height: 1.35rem;
  margin-bottom: 1rem;
}

.card p {
  flex-grow: 1; /* push button to bottom */
  margin-bottom: 1.5rem;
	line-height: 1.1rem;
	color: #000000;
}

.card .btn {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.card .btn:hover {
  background: #333;
}
/* Value Propositions Section */
#value-propositions {
  padding: 2rem 1rem;
  background: white; /* light gray / bluish */
  text-align: center;
}

/* Services Preview Section */
#services-preview {
  padding: 2rem 1rem;
  background: white; /* pure white */
  text-align: center;
}
#services-preview .card {
  background: #eeeeee; /* coloured card */
}

/* Headings for sections */
#value-propositions h2 {
  font-size: 2rem;
  line-height: 2rem;
  margin-bottom: 2rem;
  color: #000;
}

#value-propositions h3 {
  font-size: 2rem;
	font-weight: 800;
	line-height: 1.9rem;
  margin-bottom: 1rem;
	  color: black;
}

#value-propositions p {
  flex-grow: 1; /* push button to bottom */
  margin-bottom: 1.5rem;
  line-height: 1.1rem;
  font-weight: 200;
  color: #000;
}

/* Headings for sections */
#services-preview h2 {
  font-size: 2rem;
  line-height: 2rem;
  margin-bottom: 2rem;
  color: #000;
}
#services-preview h3 {
  font-size: 2rem;
  line-height: 1.9rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: black;
}

#services-preview p {
  flex-grow: 1; /* push button to bottom */
  margin-bottom: 1.5rem;
  line-height: 1.1rem;
  font-weight: 200;
  color: #000;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    flex: none;          /* prevent stretching */
    width: 100%;
    max-width: 90%;
    padding: 1.5rem; /* smaller padding on mobile */
    text-align: center;
  }
 .card-icon {
    font-size: 1.8rem; /* slightly smaller on mobile */
  }
	.card p {
  flex-grow: 1; /* push button to bottom */
	line-height: 1.1rem;
}
	
  .card .btn {
    align-self: center;
  }
}