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

:root {
  --navy: #1B3A5C;
  --navy-dark: #122840;
  --gold: #C4993B;
  --gold-light: #D4AD5A;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #E0E0E0;
  --text: #333333;
  --text-light: #666666;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== Utilities ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.section-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* ===== Header / Nav ===== */
header {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--gold);
}

.header-phone {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: auto;
  margin-right: 2rem;
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--gold-light);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--white);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(rgba(27, 58, 92, 0.7), rgba(18, 40, 64, 0.8)),
              url('../images/logo_make_11_06_2023_41.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Services Preview (Home) ===== */
.services-preview {
  padding: 4rem 0;
  text-align: center;
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== About Page ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

.about-content {
  padding: 4rem 0;
}

.about-content h2 {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.credentials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.credential-item {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.credential-item h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.credential-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== Services Page ===== */
.services-content {
  padding: 4rem 0;
}

.service-detail {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

.service-detail:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-detail h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-detail p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Contact Page ===== */
.contact-content {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form h2,
.contact-info h2 {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-group .error-msg {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #c0392b;
}

.form-group.error .error-msg {
  display: block;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: none;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

footer a {
  color: var(--gold);
}

footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 0;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  nav ul.open {
    display: flex;
  }

  nav li {
    text-align: center;
    padding: 0.75rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
