/* ==========================================================================
   Gulia Brothers Pty Ltd — styles.css
   Corporate static site for Western Australian commercial & trade services.
   ========================================================================== */

/* ---- Colour palette / custom properties ----------------------------------- */
:root {
  --primary: #2C3E50;            /* midnight blue — corporate trust */
  --primary-dark: #1A252F;       /* deeper accent for hover/focus */
  --accent: #E67E22;             /* warm amber — Australian earth */
  --accent-dark: #C96500;
  --bg: #F5F6F7;                 /* page background */
  --surface: #FFFFFF;            /* cards, sections */
  --text-dark: #1A202C;          /* headings */
  --text-light: #4A5568;         /* body copy */
  --text-lighter: #718096;
  --border: #D1D5DB;             /* form fields, dividers */
  --border-soft: #E2E8F0;
  --footer-bg: #1A202C;          /* dark footer */
  --footer-text: #CBD5E1;
  --footer-text-dim: #94A3B8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
  --transition: 0.2s ease;
}

/* ---- Reset & base --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding: 0 1rem;
}

/* ---- Typography helpers --------------------------------------------------- */
.hero-sub { color: var(--text-light); font-size: 1.125rem; max-width: 640px; }
.section-sub { color: var(--text-light); max-width: 640px; margin-inline: auto; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ---- Navbar ---------------------------------------------------------------- */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo:hover, .logo:focus { color: var(--primary-dark); text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.cta-btn {
  background: var(--primary);
  color: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary-dark);
}

/* Hamburger toggle (mobile only) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px; height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--surface);
  padding: 5.5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: var(--surface); font-size: 2.4rem; margin-bottom: 1rem; }
.hero .hero-sub { color: var(--surface); opacity: 0.92; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.hero-inner { background: var(--primary); padding: 4rem 0; }
.hero-inner h1 { font-size: 2.25rem; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--surface);
  border-color: var(--surface);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--surface);
  color: var(--primary);
}
.btn-outline.btn-light-text {
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-outline.btn-light-text:hover,
.btn-outline.btn-light-text:focus { background: var(--text-dark); color: var(--surface); }

/* ---- Sections ---------------------------------------------------------------- */
section { padding: 4rem 0; }
.alt { background: var(--surface); }
.content-section { padding: 3.5rem 0; }
.section-cta { text-align: center; margin-top: 3rem; }
.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.checklist li {
  padding-left: 1.7rem;
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Value props / props-grid ------------------------------------------------ */
.value-props { text-align: center; padding: 4rem 0; }
.value-props h2 { font-size: 2rem; }
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.prop-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.prop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.prop-icon { font-size: 2rem; margin-bottom: 1rem; }

/* ---- Services grid ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* ---- About strip ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2.5rem;
  align-items: center;
}
.about-content { display: flex; align-items: center; gap: 2.5rem; }
.about-text h2 { font-size: 1.75rem; }
.about-visual { display: grid; place-items: center; }
.visual-icon { font-size: 3.5rem; opacity: 0.25; }

/* ---- Credentials ------------------------------------------------------------ */
.credentials {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.cred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem 0;
}
.cred-label {
  font-weight: 600;
  color: var(--text-light);
  opacity: 0.7;
  margin-right: 0.5rem;
}
.cred-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* ---- CTA strip -------------------------------------------------------------- */
.cta-strip {
  background: var(--primary);
  color: var(--surface);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.cta-strip h2 { font-size: 1.85rem; }
.cta-strip p { opacity: 0.9; }

/* ---- Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-details h2,
.contact-form h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--text-light); margin-top: 1rem; }

/* ---- Steps ------------------------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ---- Legals ----------------------------------------------------------------- */
.legals h2 { font-size: 1.25rem; margin-top: 2rem; }
.legals h2:first-child { margin-top: 0; }
.legals p { color: var(--text-light); }
.updated {
  font-size: 0.82rem;
  color: var(--text-lighter);
  margin-bottom: 1.5rem;
}

/* ---- Credentials card (about side) ------------------------------------------ */
.credentials-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ---- Footer ----------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.footer-col h4 {
  color: var(--surface);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--footer-text); }
.footer-col a:hover, .footer-col a:focus { color: var(--accent); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-text-dim);
}

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border-soft); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { padding: 0.4rem 0; display: block; }
  .nav-links a.active::after { background: var(--accent); }
  .cta-btn { display: none; }
  .menu-toggle { display: flex; }

  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 4rem 0 3rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-content, .about-visual { display: none; }
  .about-grid > :first-child { display: block; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .props-grid, .steps-grid { grid-template-columns: 1fr; }
  .cred-list { flex-direction: column; gap: 0.75rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
