/*
Theme Name: Norte Vertical
Theme URI: https://nortevertical.com
Author: conceitoweb
Author URI: https://www.conceitoweb.pt
Description: Tema personalizado para Norte Vertical - Trabalhos em Altura com Acesso por Cordas
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: norte-vertical
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ==================== VARIABLES ==================== */
:root {
  --nv-bg: hsl(210, 25%, 97%);
  --nv-fg: hsl(215, 40%, 12%);
  --nv-primary: hsl(215, 60%, 18%);
  --nv-primary-fg: hsl(0, 0%, 100%);
  --nv-accent: hsl(42, 85%, 55%);
  --nv-accent-fg: hsl(215, 60%, 12%);
  --nv-muted: hsl(210, 20%, 92%);
  --nv-muted-fg: hsl(215, 15%, 45%);
  --nv-border: hsl(214, 25%, 88%);
  --nv-card: hsl(0, 0%, 100%);
  --nv-card-fg: hsl(215, 40%, 12%);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--nv-bg);
  color: var(--nv-fg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 30, 56, 0.8);
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 2.5rem 1.5rem 5rem;
}

.hero__logo {
  width: 10rem;
  margin: 0 auto 2.5rem;
  object-fit: contain;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--nv-primary-fg);
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--nv-accent);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.hero__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--nv-bg), transparent);
}

/* ==================== BUTTONS ==================== */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--nv-accent);
  color: var(--nv-accent-fg);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: filter 0.3s, color 0.3s;
}

.btn-accent:hover {
  filter: brightness(1.1);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--nv-primary-fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 5rem 0;
}

.section--dark {
  background-color: var(--nv-primary);
}

.section__heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nv-fg);
  text-align: center;
  margin-bottom: 1rem;
}

.section__heading span {
  color: var(--nv-accent);
}

.section__heading--light {
  color: var(--nv-primary-fg);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--nv-muted-fg);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

.section__subtitle--light {
  color: rgba(255, 255, 255, 0.75);
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--nv-card);
  border: 1px solid var(--nv-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: hsla(42, 85%, 55%, 0.4);
}

.service-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background: var(--nv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--nv-primary-fg);
  transition: background 0.3s;
}

.service-card:hover .service-card__icon {
  background: var(--nv-accent);
  color: var(--nv-accent-fg);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nv-card-fg);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-family: var(--font-body);
  color: var(--nv-muted-fg);
  line-height: 1.7;
}

/* ==================== WHY US ==================== */
.whyus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.whyus-item__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--nv-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--nv-accent-fg);
}

.whyus-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--nv-primary-fg);
  margin-bottom: 0.5rem;
}

.whyus-item__desc {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.contact-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--nv-fg);
  margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--nv-border);
  border-radius: 0.375rem;
  background: hsla(210, 20%, 92%, 0.5);
  color: var(--nv-fg);
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--nv-accent);
  box-shadow: 0 0 0 3px hsla(42, 85%, 55%, 0.2);
}

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

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--nv-fg);
  transition: color 0.3s;
}

.contact-links a:hover {
  color: var(--nv-accent);
}

.contact-links svg {
  color: var(--nv-accent);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--nv-primary);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer__logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.site-footer__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__text a {
  text-decoration: underline;
  transition: color 0.3s;
}

.site-footer__text a:hover {
  color: var(--nv-accent);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--nv-accent);
  color: var(--nv-accent-fg);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: none;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s;
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  filter: brightness(1.1);
}

/* ==================== STICKY PHONE (MOBILE) ==================== */
.sticky-phone {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--nv-accent);
  color: var(--nv-accent-fg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
  transition: filter 0.3s;
}

.sticky-phone:hover {
  filter: brightness(1.1);
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
  .contact-links { flex-direction: row; }
  .whyus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero__title { font-size: 3.5rem; }
  .section { padding: 7rem 0; }
  .section__heading { font-size: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__logo { width: 11rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 4.5rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .whyus-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .sticky-phone { display: flex; }
  .scroll-top { bottom: 5rem; }
}
