/*
 * Global stylesheet for the premium business website.
 *
 * The design uses a neutral colour palette and generous white space to
 * communicate sophistication and trust. The typography favours a clean
 * sans‑serif font and consistent hierarchy across headings and paragraphs.
 */

/* Import the Inter font with fallback fonts for performance. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette inspired by Kokowa Field Labs.
     Primary colour anchors the dark blue used in the logo.
     Secondary colour provides a warm accent derived from the flame mark.
     Background adopts a soft beige tone to echo the light backdrop of the brand assets. */
  --color-primary: #233E5B;    /* deep navy for headings and navigation */
  --color-secondary: #C96A6A;  /* warm coral accent for buttons and highlights */
  --color-background: #F7F4F3; /* light beige background for a premium feel */
  --color-text: #374151;       /* dark grey for body copy */
  --color-muted: #6B7280;      /* muted grey for secondary text */
  --font-base: 'Inter', sans-serif;
  --max-width: 1200px;
}

/* Reset some default browser styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.2s ease;
}
a:hover {
  color: darken(var(--color-secondary), 10%);
}

/* Container utility class to centre content and limit width */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header and navigation styles */
header {
  background-color: var(--color-background);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* Logo image displayed in navigation */
/*
 * Navigation logo styling
 * On larger screens we want the horizontal Kokowa logo to be clearly legible,
 * so we bump its height up and allow it to take up more horizontal space.
 * The width auto ensures the image scales proportionally. The nav
 * container will flex and wrap the remaining items accordingly.
 */
.logo-img {
/* Enlarge the logo by approximately another 30% to make the header logo more prominent.
   Previously we increased the height to 104 px (around a 30 % bump from 80 px).
   User feedback calls for a further 30 % increase, so we set the height to
   roughly 135 px. The width remains auto so the aspect ratio is preserved. */
  height: 135px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Subhero text style used on home page hero */
.subhero {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* Tagline style
   The tagline emphasises the competitive edge and should complement the
   hero heading without overpowering it. We set a semi‑bold weight and
   primary colour for contrast, with responsive font sizing for smaller
   viewports. */
/*
 * Tagline styling
 *
 * The tagline communicates your unique competitive edge. To position it
 * harmoniously beneath the hero subhead we set a semi–bold weight and
 * adjust the font size relative to the heading and subtitle. A subtle
 * letter spacing and increased top margin give the line breathing room.
 * Responsive rules ensure the tagline scales appropriately on smaller
 * viewports.
 */
.tagline {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1.25rem;
  text-align: center;
}

@media (max-width: 768px) {
  .tagline {
    font-size: 1.1rem;
    margin-top: 1rem;
  }
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav li a {
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s ease;
}
.nav li a:hover {
  color: var(--color-secondary);
}

/* Descriptor text under the logo image. This small line sits beneath the horizontal logo and provides context without overwhelming the header. */
.logo-descriptor {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

/* Intro line styling placed at the top of the hero section. It provides a succinct mission statement and should harmonise with the rest of the hero copy. */
.intro-line {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Hero section */
.hero {
  /* Reduce vertical padding to create a shorter banner.
     The hero should occupy less vertical space while still feeling spacious.
     This change aligns the hero height with the provided design reference. */
  padding: 3rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F4F6 100%);
  text-align: center;
}

.hero h1 {
  /* Slightly reduce hero headline size to harmonise with tagline */
  /* Moderate the headline size so it does not overpower the tagline */
  /* Adjust the headline size slightly so it doesn't overpower the tagline.
     This value keeps the heading prominent but balances better with the subtitle. */
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero p {
  /* Reduce the subheading size to better balance with the headline */
  /* Increase the paragraph size modestly for improved readability and to harmonise
     with the larger tagline size below. */
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* Increase font size for the hero subheading to create a better balance with the main headline */
.hero .section-subtitle {
  /* Bring the hero subtitle closer in size to the headline so the two lines
     feel harmonious. A slightly smaller size maintains hierarchy without
     overpowering the main headline. */
  /* Increase the tagline (subtitle) size relative to the headline so the two lines
     feel more balanced. */
  font-size: 1.3rem;
}

.btn {
  display: inline-block;
  background-color: var(--color-secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background-color: #1d4ed8; /* slightly darker blue */
}

/* Container for multiple hero buttons. Ensures the calls‑to‑action are
   displayed side by side with consistent spacing and wrap gracefully on
   narrow viewports. */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Sections */
/*
 * Section base styling
 * We add a scroll-margin-top to each section so that anchored navigation
 * offsets the height of the sticky header. Without this, clicking a menu
 * link results in the section title being hidden behind the fixed header.
 */
section {
  padding: 4rem 0;
  /* Offset to account for the sticky header (approx 7rem = ~112px). This ensures
     that anchored sections are fully visible when navigated via the menu. */
  scroll-margin-top: 7rem;
}

@media (max-width: 768px) {
  section {
    /* On smaller screens the header is shorter, so we reduce the margin. */
    scroll-margin-top: 6rem;
  }
}

section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-align: center;
}

section p.section-subtitle {
  /* Slightly enlarge the subhero text to maintain hierarchy with the updated tagline. */
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 3rem;
  text-align: center;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  fill: var(--color-secondary);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.service-description {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* About page specific */
.about-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-intro img {
  flex: 1 1 40%;
  border-radius: 0.5rem;
}

.about-intro .text {
  flex: 1 1 50%;
}
.about-intro h2 {
  text-align: left;
}

/* Contact page */
.contact-info {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-form button {
  cursor: pointer;
}

/* Footer */
footer {
  background-color: var(--color-background);
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
}

/* Checklist styling used for bullet sections on the home page */
.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto 2rem;
  max-width: 800px;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--color-text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: 600;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

footer p {
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .about-intro {
    flex-direction: column;
  }
  .nav ul {
    gap: 1rem;
  }
}

/* Gallery grid for Experience & Training section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.gallery-item iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 0.5rem;
}

/*
 * Additional responsive rules for small screens
 * These tweaks ensure the site remains readable and navigable on
 * narrow viewports such as smartphones. We reduce padding, shrink
 * headings and restructure navigation and grids for a vertical flow.
 */
@media (max-width: 480px) {
  /* Reduce section padding on extra‑small screens */
  section {
    padding: 3rem 0;
  }
  /* Hero adjustments */
  .hero {
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  /* Stack navigation items vertically on very small screens */
  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding-top: 0.5rem;
  }
  /* Adjust container width for tiny devices */
  .container {
    width: 95%;
  }
  /* Ensure service cards display one per row */
  .services-grid {
    grid-template-columns: 1fr;
  }
  /* Reduce button padding */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  /*
   * Mobile navigation adjustments
   * Keep the header height close to the natural logo height on very small screens.
   * We stack the elements vertically but avoid expanding the logo to full width
   * or increasing the font size excessively. This preserves a normal‑sized header
   * while maintaining readability and navigation accessibility.
   */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .nav .logo {
    width: auto;
    margin-bottom: 0.25rem;
    justify-content: flex-start;
  }
  .logo-img {
    /* Increase logo height on small screens by roughly 30 %. Previously 48 px,
       now bumped to 62 px to maintain legibility while keeping the header compact. */
    height: 62px;
    max-width: none;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .nav ul {
    width: auto;
    align-items: flex-start;
  }
}

/* Full-width logo and centred navigation on very small screens. These overrides ensure
   the new horizontal logo spans the entire header, with menu items centered below. */
@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: center;
  }
  .nav .logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  .nav .logo img {
    max-width: 100%;
    height: auto;
  }
  .nav ul {
    width: 100%;
    align-items: center;
    justify-content: center;
  }
}