/* ==========================
   Base Styles
========================== */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #000;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 10px;
  font-weight: normal;
}

section {
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

a {
  color: #004080;
  text-decoration: underline;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: none;
  opacity: 1;
}

a:hover {
  color: #002244;
}

/* ==========================
   Forms
========================== */
label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

input, textarea, select, button {
  width: 60%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ff6600;
}

textarea {
  resize: vertical;
}

button {
  background: #ff6600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #0f4503;
  color: #ff6600;
}

.result {
  margin-top: 15px;
  font-weight: bold;
  color: #004080;
}

/* ==========================
   Landing Header
========================== */
.landing-header {
  position: relative;
  background: #ff6600;
  height: 60px;
  padding: 5px 20px;
  color: #fff;
}

.landing-header .top-left {
  position: absolute;
  top: 5px;
  left: 20px;
  font-size: 1.3rem;
  font-weight: bold;
}

.landing-header .top-left img.logo-small {
  max-height: 50px;
  height: auto;
  vertical-align: middle;
}

.landing-header .top-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.landing-header .top-center h1 {
  font-size: 1.2rem;
  margin: 0;
}

.landing-header .top-center h2 {
  font-size: 0.85rem;
  margin: 0;
  font-weight: normal;
}

.landing-header .header-contact {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 0.7rem;
}

.landing-header .header-contact a {
  color: #fff;
  text-decoration: underline;
  margin: 0 5px;
}

/* Mobile */
@media (max-width: 600px) {
  .landing-header {
    height: auto;
    padding: 10px 20px;
  }

  .landing-header .top-left,
  .landing-header .top-center,
  .landing-header .header-contact {
    position: static;
    text-align: center;
    width: 100%;
    margin-bottom: 5px;
  }

  .landing-header .top-left img.logo-small {
    max-height: 40px;
  }

  .landing-header .top-center h1 { font-size: 1.1rem; }
  .landing-header .top-center h2 { font-size: 0.9rem; }
  .landing-header .header-contact a { font-size: 0.8rem; }
}

/* ==========================
   Navigation
========================== */
.landing-nav {
  background: #000;
  width: 100%;
  text-align: center;
}

.landing-nav .main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-nav .main-nav li { margin: 0 10px; }

.landing-nav .main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.landing-nav .main-nav a:hover,
.landing-nav .main-nav a.active {
  color: #ff6600;
}

/* ==========================
   Footer
========================== */
.site-footer,
.landing-site-footer {
  background: #222;
  color: #fff;
  padding: 30px 20px;
  font-family: Arial, sans-serif;
}

.footer-top,
.landing-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
  border-top: 1px solid #444;
  padding-top: 10px;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-contact a,
.footer-social a {
  color: #ff6600;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-social a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social .social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.footer-social .social-icons a {
  font-size: 1.2rem;
}

/* Arrow icon */
.arrow-right {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid #ff6600;
  vertical-align: middle;
  margin-left: 3px;
}

/* ==========================
   Contact & Calculator Forms
========================== */
.contact-form,
.calculator {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-form h2,
.calculator h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #222;
}

.contact-form form,
.calculator form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  width: 60%;
}

.contact-form label,
.calculator label {
  text-align: left;
  font-weight: bold;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.calculator input,
.calculator select,
.calculator button {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ff6600;
}

.contact-form textarea { min-height: 100px; resize: vertical; }

.contact-form button,
.calculator button {
  width: 50%;
  max-width: 200px;
  margin: 20px auto 0;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 4px;
  background: #ff6600;
  color: #fff;
  border: 2px solid #ff6600;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.contact-form button:hover,
.calculator button:hover {
  background: #0f4503;
  border-color: #0f4503;
}

.calculator a {
  display: block;
  margin: 10px 0;
  font-weight: bold;
  color: #ff6600;
  text-decoration: none;
  transition: color 0.3s;
}

.calculator a:hover { color: #0f4503; }

/* Compact forms */
@media (max-width: 768px) {
  .contact-form,
  .calculator {
    max-width: 450px;
    padding: 10px;
  }

  .contact-form h2,
  .calculator h2 { font-size: 1.25rem; margin-bottom: 12px; }

  .contact-form textarea { min-height: 70px; }

  .contact-form button,
  .calculator button {
    width: 40%;
    max-width: 150px;
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* ==========================
   Breadcrumbs
========================== */
.breadcrumbs {
  font-size: 10px;
  margin: 2px;
}

.breadcrumbs a {
  text-decoration: none;
  color: #949494;
}

.breadcrumbs a:hover { color: #ff6600; }

/* ==========================
   Utilities
========================== */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* ==========================
   Tooltips
========================== */
.tooltip {
  display: inline-block;
  position: relative;
  cursor: help;
  font-weight: bold;
  margin-left: 4px;
  color: #ff6600;
}

.tooltip::after {
  content: attr(title);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: normal;
  max-width: 220px;
  font-size: 0.85em;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 9999;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

/* ==========================
   Edit Type Links
========================== */
.edit-type-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.edit-type-links a {
  display: block;
  padding: 0.1rem;
  text-align: center;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: bold;
  font-style: italic;
  transition: background-color 0.2s, border-color 0.2s;
}

.edit-type-links a:hover {
  background: #e6e6e6;
  border-color: #999;
}

@media (min-width: 768px) {
  .edit-type-links {
    flex-direction: row;
    justify-content: flex-start;
  }

  .edit-type-links a { flex: 1; }
}

/* ------------------ Buttons ------------------ */
button,
a.button,
.btn {
  background-color: #FF6600;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover,
a.button:hover,
.btn:hover {
  background-color: #0f4503;
  transform: scale(1.05);
}
