/* AXiOM Reference Checking — Static Site
   Color Palette:
   #4580b0 - Primary blue (highlight text, buttons)
   #A2BFD7 - Light blue (backgrounds)
   #6A99C0 - Accent blue (cards, headings)
   #427FB2 - Dark blue (active nav, emphasis)
   #FFFFFF - White
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #4580b0; text-decoration: none; transition: color 0.2s; }
a:hover { color: #427FB2; }

h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.3;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }

p { margin-bottom: 1em; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
.site-header {
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo img {
  max-width: 250px;
  height: auto;
}

/* === NAVIGATION === */
.main-nav { display: flex; align-items: center; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.main-nav li {
  border-top: 2px solid #000;
  width: 120px;
  margin-right: 30px;
}

.main-nav li:last-child { margin-right: 0; }

.main-nav a {
  display: block;
  padding: 8px 0;
  color: #000;
  font-size: 1em;
  font-weight: 400;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav li:hover { border-top-color: #4580b0; }
.main-nav li:hover a { color: #4580b0; }

.main-nav li.active { border-top: 3px solid #427FB2; }
.main-nav li.active a { color: #427FB2; font-weight: 500; font-size: 1.05em; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2em;
}

/* === HERO / ATTENTION === */
.hero {
  padding: 60px 0;
  color: #4580b0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text { flex: 1; }
.hero-text h2 { font-size: 1.8em; line-height: 1.4; color: #4580b0; }

.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; border-radius: 4px; }

/* === ABOUT SECTION (Home) === */
.about-section {
  background: #A2BFD7;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.about-section h2 { font-size: 2.5em; color: #fff; margin-bottom: 20px; }
.about-section p { font-size: 1.3em; max-width: 700px; margin: 0 auto 30px; }

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #fff;
  color: #4580b0;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.btn:hover { background: #f0f0f0; color: #427FB2; transform: translateY(-1px); }

.btn-primary {
  background: #4580b0;
  color: #fff;
}
.btn-primary:hover { background: #427FB2; color: #fff; }

.btn-accent {
  background: #6A99C0;
  color: #fff;
}
.btn-accent:hover { background: #5a89b0; color: #fff; }

/* === SERVICES CARDS === */
.services-section {
  padding: 60px 0;
  text-align: center;
}

.services-section h2 {
  font-size: 2.5em;
  color: #427FB2;
  margin-bottom: 30px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  background: #6A99C0;
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-3px); }

.service-card-body {
  padding: 25px 20px;
  flex: 1;
}

.service-card h4 { font-size: 1.15em; margin-bottom: 15px; color: #fff; }
.service-card p { font-size: 0.95em; line-height: 1.5; }

.service-card-footer {
  padding: 15px 20px 25px;
  text-align: center;
}

.service-card .btn { background: #fff; color: #427FB2; padding: 10px 20px; }
.service-card .btn:hover { background: #f0f0f0; }

/* === PAGE CONTENT (Inner pages) === */
.page-hero {
  padding: 50px 0 40px;
}

.page-heading {
  display: inline-block;
  padding: 8px 20px;
  background: #6A99C0;
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 20px;
}

.page-content {
  padding: 0 0 60px;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-block p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 1.2em;
}

/* === TWO COLUMN LAYOUT === */
.two-col {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.two-col .col-sidebar { flex: 0 0 250px; }
.two-col .col-main { flex: 1; }

/* === PHILOSOPHY PAGE === */
.philosophy-intro {
  font-size: 1.1em;
  color: #555;
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.7;
}

.philosophy-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.philosophy-section:last-child { border-bottom: none; }

.philosophy-section h3 {
  color: #427FB2;
  margin-bottom: 8px;
}

.philosophy-section h4 {
  color: #666;
  font-weight: 400;
  font-size: 1em;
  margin-bottom: 15px;
}

.philosophy-section ul {
  list-style: disc;
  padding-left: 25px;
}

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

/* === SERVICES PAGE === */
.service-detail {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.service-detail:last-child { border-bottom: none; }

.service-detail h3 {
  color: #427FB2;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.service-detail p {
  color: #555;
  line-height: 1.7;
}

/* === CONTACT PAGE === */
.contact-intro {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4580b0;
  box-shadow: 0 0 0 3px rgba(69, 128, 176, 0.1);
}

.form-group textarea { min-height: 150px; resize: vertical; }

/* === FOOTER === */
.site-footer {
  background: #333;
  color: #aaa;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9em;
}

.site-footer a { color: #A2BFD7; }
.site-footer a:hover { color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-image img { max-width: 400px; margin: 0 auto; }
  .two-col { flex-direction: column; }
  .two-col .col-sidebar { flex: none; }
  .service-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 15px;
  }

  .main-nav.open ul { display: flex; }

  .main-nav li {
    border-top: none;
    border-left: 3px solid transparent;
    width: 100%;
    margin-right: 0;
  }

  .main-nav li.active { border-left-color: #427FB2; border-top: none; }

  .main-nav a { padding: 10px 15px; }

  .header-inner { flex-wrap: wrap; }

  .hero-text h2 { font-size: 1.4em; }
  .hero-image img { max-width: 300px; }
  .about-section h2 { font-size: 2em; }
  .about-section p { font-size: 1.1em; }
  .services-section h2 { font-size: 2em; }
  .logo img { max-width: 200px; }
}

@media (max-width: 480px) {
  .hero-image img { max-width: 250px; }
  .logo img { max-width: 180px; }
  h1 { font-size: 2em; }
  h2 { font-size: 1.6em; }
}
