/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   SONO Grow Styles
   ========================================================================== */

/* Variables */
:root {
  /* Colors as per design guidelines */
  /*--primary-color: #1a2942; !* Deep navy blue *!*/
  --primary-color: #0066CC;
  --primary-color-rgb: 0, 102, 204;
  /*--secondary-color: #d4af37; !* Subtle gold accent *!*/
  --secondary-color: #FFDD00;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #333333;

  /* Typography */
  --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --body-font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  padding: var(--section-padding);
}

section:nth-child(even) {
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--heading-font);
  border: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #c9a530;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-lg {
  padding: 15px 35px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Header & Navigation */
.main-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;
  padding: 15px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 50px;
}

.contact-info {
  display: flex;
  gap: 20px;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 30px;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-size: 0.9rem;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  gap: 25px;
  white-space: nowrap;
}

.nav-menu a {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active:not(.btn) {
  color: var(--secondary-color);
}

.nav-menu a.active:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
}

/* Ensure the CTA button text remains visible even when active */
.nav-menu .cta-button .btn.active,
.nav-menu .cta-button .btn:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 120px 0 80px;
  margin-top: 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/hero.png') no-repeat center top; /* Make sure path is correct */
  background-size: 100% 250%; /* Shows approximately top 40% */
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3; /* Higher than background and overlay */
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 3rem;
}

.hero-section .subheading {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-cta {
  margin-bottom: 30px;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge i {
  color: var(--secondary-color);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.service-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon i {
  font-size: 30px;
  color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-list {
  list-style-type: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.service-card .btn-secondary {
  align-self: center;
}

/* Why Choose Us Section */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-prop {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.value-icon {
  width: 80px;
  height: 80px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-icon i {
  font-size: 35px;
  color: var(--secondary-color);
}

.value-prop h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  margin-top: 60px;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-box {
  text-align: center;
  padding: 20px 40px;
  background-color: var(--primary-color);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: var(--heading-font);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}

/* FAQ Section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--medium-gray);
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 0;
}

.faq-question h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.faq-toggle {
  color: var(--secondary-color);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Contact Form Section */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a3f61 100%);
  color: var(--white);
}

.contact-section .section-title h2,
.contact-section .section-title p {
  color: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 16px;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info-box {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
}

.contact-info-box h3 {
  color: var(--white);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.contact-info-box p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.phone-link {
  display: block;
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
}

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

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Social Proof Section */
.social-proof-section {
  text-align: center;
}

.certifications,
.featured-in,
.client-logos {
  margin-bottom: 50px;
}

.cert-logos,
.featured-logos,
.client-logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 20px auto 0;
}

.cert-logos img,
.featured-logos img,
.client-logo-grid img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cert-logos img:hover,
.featured-logos img:hover,
.client-logo-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Footer */
.main-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 0;
}

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}
.footer-col a:hover {
  color: var(--secondary-color);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px;
  display: flex;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Privacy Policy Page Styles */
.page-title-section {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a3f61 100%);
  color: var(--white);
  text-align: center;
}

.page-title-content h1 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 3rem;
}

.page-title-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.policy-content-section {
  padding: 80px 0;
  background-color: var(--white);
}

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

.policy-info {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

.effective-date {
  font-size: 1rem;
  margin-bottom: 30px;
  color: var(--dark-grey);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--dark-grey);
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaeaea;
}

.policy-section h2 i {
  color: var(--secondary-color);
  margin-right: 10px;
}

.policy-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.policy-section ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-details {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-top: 15px;
}

.contact-details p {
  margin-bottom: 10px;
}

.contact-details i {
  color: var(--secondary-color);
  width: 20px;
  text-align: center;
  margin-right: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .header-content {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .contact-info.desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    order: 3;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .hero-section {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .subheading {
    font-size: 1.1rem;
  }

  .trust-indicators {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  .stat-box {
    width: 100%;
    max-width: 300px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .service-card,
  .value-prop {
    padding: 20px;
  }

  .contact-form {
    padding: 25px;
  }
}
