
/* ==================================
   GLOBAL STYLES
================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #0B1730;
  color: white;
  font-family: 'Inter', Arial, sans-serif;
}

/* ==================================
   HEADER AND NAVIGATION
================================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px 40px;
  border-bottom: 1px solid #374151;
}

header h2 {
  margin: 0;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

nav a:hover {
  color: #38BDF8;
}

/* ==================================
   HERO SECTION
================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.subtitle {
  color: #38BDF8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.description {
  color: #D1D5DB;
  font-size: 18px;
  line-height: 1.6;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ==================================
   BUTTONS
================================== */

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-block;
  background-color: #1479F6;
  color: white;
  padding: 14px 25px;
  text-decoration: none;
  border-radius: 18px;
  margin-top: 20px;
  font-weight: 600;
}

.button:hover {
  background-color: #1D4ED8;
}

.secondary-button {
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 14px 25px;
  border: 1px solid #475569;
  border-radius: 18px;
  margin-top: 20px;
}

.secondary-button:hover {
  background-color: #172944;
}

/* ==================================
   SERVICES SECTION
================================== */

.services {
  padding: 80px 40px;
  background-color: #101E38;
}

.services h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.section-description {
  color: #D1D5DB;
  font-size: 18px;
  margin-bottom: 35px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background-color: #172944;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #374151;

  transition: transform 0.2s ease,
              border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #38BDF8;
}

.service-card h3 {
  color: #38BDF8;
  font-size: 22px;
}

.service-card p {
  color: #D1D5DB;
  line-height: 1.6;
}

/* ==================================
   CONTACT SECTION
================================== */

.contact {
  text-align: center;
  padding: 80px 40px;
}

.contact h2 {
  font-size: 36px;
}

.contact p {
  color: #D1D5DB;
  font-size: 18px;
  line-height: 1.6;
}

/* ==================================
   CONTACT FORM
================================== */

#contact-form {
  max-width: 550px;
  margin: 30px auto 0;
  padding: 30px;
  background-color: #172944;
  border-radius: 12px;
  text-align: left;
}

#contact-form label {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-weight: 600;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  background-color: #0B1730;
  color: white;
  border: 1px solid #475569;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

#contact-form button {
  width: 100%;
  padding: 15px;
  background-color: #1479F6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#contact-form button:hover {
  background-color: #1D4ED8;
}

#form-status {
  max-width: 550px;
  margin: 15px auto;
  color: #93C5FD;
}

/* ==================================
   FOOTER
================================== */

footer {
  background-color: #0B1220;
  padding: 40px;
  border-top: 1px solid #374151;
}

footer h3 {
  color: white;
  font-size: 20px;
}

footer p {
  color: #9CA3AF;
  font-size: 14px;
}


/* PORTFOLIO SECTION */

.portfolio {
    padding: 100px 40px;
    background-color: #0B1730;
    text-align: center;
}

.portfolio h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.portfolio-card {
    min-width: 0;
    background-color: #172944;
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
}

/* IMAGE PREVIEW */

.portfolio-preview {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #1479F6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.portfolio-preview span {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
}

/* PROJECT DETAILS */

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.portfolio-info p {
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    background-color: #1e3a8a;
    padding: 7px 12px;
    border-radius: 20px;
}

.portfolio-link {
    display: block;
    width: fit-content;
    margin-top: 20px;
    color: #38BDF8;
    font-weight: 600;
    text-decoration: none;
}

.portfolio-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}




/* ==================================
   TABLET AND MOBILE
================================== */

@media (max-width: 768px) {

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    gap: 35px;
  }

  .hero h1 {
    font-size: 36px;
  }

}

/* ==================================
   SMALL MOBILE SCREENS
================================== */

@media (max-width: 600px) {

  header {
    padding: 20px;
  }

  nav {
    gap: 15px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .services {
    padding: 50px 20px;
  }

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

  .contact {
    padding: 50px 20px;
  }

  #contact-form {
    padding: 20px;
  }

  footer {
    padding: 30px 20px;
  }

}


/* PORTFOLIO RESPONSIVE DESIGN */

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .portfolio {
        padding: 70px 20px;
    }

    .portfolio h2 {
        font-size: 28px;
    }

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

    .portfolio-preview {
        height: 200px;
    }
}


/* PRICING SECTION */
.pricing {
  padding: 100px 40px;
  background: #101E38;
  text-align: center;
}
.pricing h2 { font-size: 36px; margin-bottom: 15px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 50px auto 0;
}
.pricing-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 35px 25px;
  text-align: left;
  background: #172944;
  border: 1px solid #374151;
  border-radius: 14px;
  transition: transform .3s ease;
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.featured { border: 2px solid #38BDF8; background: #1e293b; }
.popular-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 15px;
  background: #1479F6;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 25px; margin: 0 0 12px; }
.package-description { color: #d1d5db; line-height: 1.6; min-height: 52px; }
.price { font-size: 42px; font-weight: 800; margin: 20px 0 5px; }
.price-note { color: #9ca3af; font-size: 13px; margin-bottom: 25px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 30px; }
.pricing-card li {
  color: #d1d5db;
  padding: 12px 0;
  border-bottom: 1px solid #374151;
  line-height: 1.5;
}
.pricing-card li::before { content: "✓"; color: #38BDF8; font-weight: bold; margin-right: 10px; }
.pricing-button {
  display: block;
  margin-top: auto;
  padding: 15px 20px;
  background: #1479F6;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.pricing-button:hover { background: #1d4ed8; }
.pricing-disclaimer {
  max-width: 800px;
  margin: 35px auto 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pricing { padding: 70px 20px; }
  .pricing h2 { font-size: 28px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 35px; }
  .pricing-card { padding: 30px 22px; }
  .price { font-size: 36px; }
}

/* Keep the spam-trap field off screen while retaining it in the form. */
#contact-form .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#contact-form button:disabled { opacity: .7; cursor: wait; }

/* Crescera Design Group brand identity */
.brand,.footer-brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:#fff;min-width:0}
.brand img,.footer-brand img{flex:none;display:block}
.brand-name{display:flex;flex-direction:column;font-size:21px;font-weight:800;letter-spacing:.055em;line-height:1.15}
.brand-name small{font-size:10px;font-weight:700;letter-spacing:.31em;color:#38BDF8;margin-top:5px}
.footer-brand{margin-bottom:12px}
@media(max-width:600px){.brand-name{font-size:17px}.brand-name small{font-size:9px}.brand img{width:40px;height:40px}}
