/*Table of Contents
  1. Variables
  2. Reset & Base
  3. Utilities
  4. Buttons
  5. Header
  6. Mobile Menu
  7. Hero
  8. Hero Search
  9. Enquiry Form
  10. Footer
  11. Reduced Motion
*/


/*Variables*/

:root {
  --color-primary: #E8492A;
  --color-primary-dark: #CC3A1D;
  --color-navy: #1B2641;
  --color-navy-text: #1B2A4A;
  --color-text: #1F2433;
  --color-muted: #8A8F9C;
  --color-border: #D6D9E0;
  --color-light-bg: #F2F3F5;
  --color-white: #FFFFFF;

  --font-main: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --header-h: 80px;
  --container: 1460px;
  --gutter: 24px;
}

@media (max-width: 899px) {
  :root {
    --header-h: 60px;
    --gutter: 16px;
  }
}


/*Reset & Base*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(232, 73, 42, 0.55);
  outline-offset: 2px;
}


/*Utilities*/
.container {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}


/*Buttons*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


/*Header*/
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: var(--color-white);
}

.site-header {
  position: relative;
  background: var(--color-white);
  border-bottom: 1px solid #E3E5EA;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.header-cta {
  height: 44px;
  padding: 0 30px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
}


/*Mobile Menu*/
@media (max-width: 899px) {
  .header-logo img {
    height: 36px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--color-white);
    border-bottom: 1px solid #E3E5EA;
    box-shadow: 0 12px 24px rgba(27, 38, 65, 0.08);
  }

  .header-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #EEF0F3;
  }

  .header-cta {
    margin-top: 16px;
    height: 46px;
  }
}


/*Hero*/
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(13, 27, 62, 0.65) 0%,
    rgba(13, 27, 62, 0.40) 40%,
    rgba(13, 27, 62, 0.10) 75%,
    rgba(13, 27, 62, 0) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  min-height: clamp(600px, calc(100vh - var(--header-h)), 820px);
  padding-block: 64px;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.1rem, 1.2rem + 2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-text {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 40px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 899px) {
  .hero {
    background: var(--color-white);
  }

  .hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }

  .hero-media::after {
    display: none;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    padding: 0;
    max-width: none;
  }

  .hero-content {
    max-width: none;
    padding: 28px var(--gutter) 32px;
    background: var(--color-light-bg);
    text-align: center;
  }

  .hero-content > * {
    max-width: 560px;
    margin-inline: auto;
  }

  .hero-title {
    font-size: clamp(1.4rem, 1rem + 1.8vw, 1.9rem);
    line-height: 1.35;
    color: var(--color-navy-text);
    margin-bottom: 14px;
    text-shadow: none;
  }

  .hero-text {
    font-size: 15.5px;
    color: var(--color-text);
    margin-bottom: 24px;
    text-shadow: none;
  }
}


/*Hero Search*/
.hero-search {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  max-width: 508px;
  height: 64px;
  padding: 0 22px;
  font-size: 17px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 6px;
}

.hero-search-input::placeholder {
  color: var(--color-muted);
}

.hero-search-btn {
  flex-shrink: 0;
  height: 64px;
  padding: 0 30px;
  font-size: 18px;
}

@media (max-width: 899px) {
  .hero-search-input {
    max-width: none;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border: 1.5px solid #7C8395;
    border-radius: 8px;
  }

  .hero-search-input::placeholder {
    font-size: 13.5px;
  }

  .hero-search-btn {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}


/*Enquiry Form*/
.enquiry-card {
  width: 100%;
  padding: 22px 18px 18px;
  background: rgba(27, 38, 65, 0.9);
  border-radius: 12px;
  color: var(--color-white);
}

.enquiry-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.enquiry-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid transparent;
  border-radius: 3px;
}

.form-input::placeholder {
  color: var(--color-muted);
}

.form-input:user-invalid {
  border-color: #F87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A8F9C' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-select:invalid {
  color: var(--color-muted);
}

.form-select option {
  color: var(--color-text);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 16px;
}

.form-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-consent label {
  font-size: 11.5px;
  line-height: 1.55;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  height: 50px;
  font-size: 16px;
}

.form-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #9B1C1C;
  background: #FDECEA;
  border-radius: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 899px) {
  .enquiry-card {
    width: calc(100% - (var(--gutter) * 2));
    max-width: 560px;
    margin: 28px auto 36px;
    padding: 20px 16px;
    background: var(--color-navy);
    border-radius: 14px;
  }

  .enquiry-title {
    font-size: 26px;
  }

  .form-input {
    font-size: 16px; /*16px stops iPhone auto-zoom*/
  }
}


/*Footer*/
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 48px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
}

.footer-text {
  max-width: 460px;
  line-height: 1.7;
}

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 899px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 36px;
  }
}


/*Reduced Motion*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/*Header WhatsApp*/
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;                    /* gap between WhatsApp and Apply Now */
}

.header-wa {
  gap: 8px;
  color: #FFFFFF;
  background: #1DA851;
}

.header-wa:hover { background: #178F44; }
.header-wa svg { flex-shrink: 0; }

.header-right { display: none; }

@media (max-width: 899px) {
  .header-actions { display: contents; }   /* keeps Apply Now full-width in the mobile menu */
  .header-wa { display: none; }

  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;                  /* gap between WhatsApp icon and hamburger */
    flex-shrink: 0;
    margin-left: auto;
  }

  .header-wa-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #FFFFFF;
    background: #1DA851;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }
}