/* =========================================================================
   Aline CMS — visual overrides
   Layered on top of Bootstrap 3 + aline_cms_desktop.css. Keeps the brand
   palette (#174950) and existing background images; modernizes the parts
   that look 2015 (hard-edged buttons, cramped type, fixed-height quotes,
   floating service icons, h3-wrapped social links).
   ========================================================================= */

:root {
  --brand: #174950;
  --brand-dark: #0f3338;
  --brand-soft: #1f6068;
  --ink: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 51, 56, 0.06), 0 2px 8px rgba(15, 51, 56, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 51, 56, 0.08), 0 12px 32px rgba(15, 51, 56, 0.06);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- typography ---------------------------------------------------------- */
body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5 {
  letter-spacing: -0.01em;   /* dial back the harsh -1px */
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: 2.5rem; font-weight: 600; }
h2 { font-size: 2rem;   font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }

h1.green, h2.green, h3.green, h4.green { color: var(--brand); }

.title { margin-bottom: 1.25rem; }
.title.light { font-weight: 300; }

.justified-text-body > * {
  text-align: left;          /* kill the rivers from text-align: justify */
  font-size: 1.4rem;
  line-height: 1.65;
}
@media (max-width: 767px) {
  .justified-text-body > * { font-size: 1.15rem; line-height: 1.6; }
}

a { color: var(--brand); transition: color 0.2s var(--ease); }
a:hover, a:focus { color: var(--brand-soft); text-decoration: none; }
a.green.bold { font-weight: 600; }

/* --- buttons ------------------------------------------------------------- */
.btn-green {
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-green:hover,
.btn-green:focus {
  background: var(--brand-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* --- header / nav -------------------------------------------------------- */
.header {
  box-shadow: 0 1px 0 rgba(15, 51, 56, 0.06);
}
.header .navbar ul.nav li a {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 24px;
  position: relative;
}
.header .navbar ul.nav li a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.header .navbar ul.nav li a:hover::after,
.header .navbar ul.nav li.active a::after {
  transform: scaleX(1);
}

/* --- language switcher pinned to bottom-right of the header ------------- */
#lang.lang-floating {
  position: absolute;
  top: auto;             /* clear top:110px from aline_cms_desktop.css */
  left: auto;            /* clear any inherited left */
  right: 20px;
  bottom: 16px;
  z-index: 1040;
  background: var(--brand);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 51, 56, 0.25);
  font-family: 'Open Sans', Arial, Helvetica, Verdana, sans-serif;
}
#lang.lang-floating ul {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
#lang.lang-floating ul li {
  list-style: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
#lang.lang-floating ul li a {
  color: inherit !important;
  text-decoration: none;
  display: block;
  margin: -6px -11px;
  padding: 6px 11px;
  border-radius: 999px;
}
#lang.lang-floating ul li:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
#lang.lang-floating ul li.lang-current {
  background: #fff;
  color: var(--brand) !important;   /* beat !important from aline_cms_desktop.css */
  cursor: default;
}
#lang.lang-floating ul li.lang-current:hover {
  background: #fff;
  color: var(--brand) !important;
}
@media (max-width: 767px) {
  #lang.lang-floating {
    top: auto;
    left: auto;
    right: 12px;
    bottom: 10px;
    padding: 4px;
  }
  #lang.lang-floating ul li {
    font-size: 10px;
    padding: 5px 9px;
  }
  #lang.lang-floating ul li a {
    margin: -5px -9px;
    padding: 5px 9px;
  }
}
#lang.lang-inline ul li a {
  color: inherit !important;
  text-decoration: none;
}

/* --- hero ---------------------------------------------------------------- */
section#slider {
  padding: 32px 16px 16px;
}
section#slider .default-slider .slider .item {
  position: relative;
  max-width: 1170px;
  margin: 0 auto;
  background-size: contain !important;
  background-position: right center !important;
  background-color: #f9fafc !important;
  min-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}
section#slider .default-slider .slider .item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
section#slider .caption {
  position: relative;
  z-index: 1;
}
section#slider .content {
  background: rgba(255, 255, 255, 0.94);
  padding: 30px 34px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin: 16px 0;
}
section#slider .content h3 {
  color: var(--brand);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  text-shadow: none;
}
@media (min-width: 768px) {
  /* slider .item: explicit height; everything inside fills via absolute positioning */
  section#slider .default-slider {
    height: 540px !important;
  }
  section#slider .default-slider .slider {
    height: 540px !important;
  }
  section#slider .default-slider .slider .item {
    height: 540px !important;
    min-height: 540px !important;
    position: relative !important;
    display: block !important;
  }
  /* hide the empty placeholder col */
  section#slider .caption > .col-sm-3 {
    display: none !important;
  }
  /* caption: absolutely fills .item, keeps BS3 max-width 1170 centered */
  section#slider .caption {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  /* col-sm-9: absolutely fills left 75% of caption, flex column shell */
  section#slider .caption > .col-sm-9 {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 75% !important;
    float: none !important;
    padding: 100px 15px 56px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* .content: flex column. h3 stays at top; p+btn cluster at the bottom. */
  section#slider .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
  section#slider .content h3 {
    font-size: 4rem;
    margin: 0 0 1rem;
  }
  /* subtitle sits right under the title */
  section#slider .content p {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.5;
    color: var(--brand-dark);
  }
  /* margin-top: auto pushes the button alone to the bottom of the col */
  section#slider .content .btn {
    align-self: flex-start;
    margin-top: auto;
  }
}
@media (max-width: 767px) {
  section#slider { padding: 16px 12px; }

  /* card sizing — single explicit height makes the absolute positioning predictable */
  section#slider .default-slider { height: 480px !important; margin-top: 0; }
  section#slider .default-slider .slider { height: 480px !important; }
  section#slider .default-slider .slider .item {
    display: block !important;
    position: relative !important;
    height: 480px !important;
    min-height: 480px !important;
    border-radius: 10px;
    background-size: cover !important;
    background-position: right center !important;
    background-color: #f9fafc !important;
    color: var(--ink) !important;
  }
  /* drop the dark gradient overlay (was there for white-text legibility) */
  section#slider .default-slider .slider .item::before {
    background: none !important;
  }

  /* hide the empty col placeholder */
  section#slider .caption > .col-xs-12:last-child:empty { display: none !important; }

  /* caption fills .item, like desktop */
  section#slider .caption {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--ink) !important;
    text-align: left !important;
  }
  /* the visible col: takes the left ~55% so texts sit over the studio backdrop,
     leaving Aline (right side of photo) clear */
  section#slider .caption > .col-xs-12 {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 55% !important;
    float: none !important;
    padding: 32px 16px 24px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* drop the white panel */
  section#slider .content {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  section#slider .content h3 {
    font-size: 1.85rem;
    color: var(--brand);
    margin: 0 0 1.5rem;
    line-height: 1.2;
  }
  section#slider .content p {
    font-size: 0.95rem;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.4;
  }
  /* button stays at bottom of the col via margin-top: auto */
  section#slider .content .btn {
    align-self: flex-start;
    margin-top: auto;
  }
}

/* --- services section (home) -------------------------------------------- */
#servicos { padding: 48px 0 16px; }
#servicos .container.servicos > p:empty { display: none; }   /* drop the empty <p></p> spacer */
#servicos .servicos .servico {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  margin-bottom: 0;
  text-align: center;
}
#servicos .servicos .servico:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
#servicos .servicos .servico .icone {
  display: inline-block;
  margin-bottom: 18px;
}
#servicos .servicos .servico h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--brand);
}
#servicos .servicos .servico a.green.bold {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
#servicos .servicos .servico a.green.bold:hover {
  border-bottom-color: var(--brand);
}

/* services index page (list view) */
.entry .servicos .row.servicos {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin: 18px 0;
  align-items: center;
}
.entry .servicos hr { display: none; }
.entry .servicos .row.servicos .servico { padding: 0; }
.entry .servicos .row.servicos h3 {
  color: var(--brand);
  margin-bottom: 12px;
}

/* related services on detail page */
.related .servico {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.related .servico:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- about section (home) ------------------------------------------------ */
#sobre { padding: 48px 0; }
#sobre .sobre {
  line-height: 1.8;
  padding-top: 0;            /* override desktop.css 10px */
}
#sobre .sobre img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
#sobre .sobre .col-sm-8 { padding-left: 40px; }
#sobre .sobre h1.light.green {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
@media (max-width: 767px) {
  #sobre .sobre .col-sm-8 { padding-left: 15px; padding-top: 24px; }
}

/* --- testimonials carousel (home) --------------------------------------- */
#depoimentos .container { padding: 56px 0; max-width: 760px; }
#depoimentos .overlay {
  background: linear-gradient(
    180deg,
    rgba(15, 51, 56, 0.78),
    rgba(15, 51, 56, 0.62)
  );
  opacity: 1;
}
.depoimentos .depoimento .text {
  position: relative;
  height: auto !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 40px 36px 28px !important;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #fff;
  backdrop-filter: blur(2px);
}
.depoimentos .depoimento .text::before {
  content: "\201C";              /* big opening quote */
  position: absolute;
  top: -18px;
  left: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 1;
  color: #fff;
  opacity: 0.35;
}
.depoimentos .depoimento .text:after { display: none !important; }   /* kill seta.jpg arrow */
.depoimentos .depoimento .text .aspas { display: none; }              /* hide old quote images */
.depoimentos .depoimento .text a.green {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
}
.depoimentos .depoimento .text a.green:hover {
  border-bottom-color: #fff;
}
.depoimentos .depoimento .author {
  color: #fff;
  padding-top: 24px;
}
.depoimentos .depoimento .author img {
  border: 3px solid rgba(255, 255, 255, 0.35);
}

/* testimonies index page — quote cards on light background */
.entry .depoimentos .depoimento {
  margin-bottom: 28px;
}
.entry .depoimentos .depoimento .text {
  position: relative;
  background: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px 24px !important;
}
.entry .depoimentos .depoimento .text::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.25;
}
.entry .depoimentos .depoimento .text .aspas { display: none; }
.entry .depoimentos .depoimento .author { padding: 16px 0 0; }

/* --- carousel indicators ------------------------------------------------- */
.carousel-indicators li {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border: 1px solid #fff;
  background: transparent;
  opacity: 0.65;
}
.carousel-indicators li.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
  opacity: 1;
}

/* --- blog list (home) --------------------------------------------------- */
#blog-depoimentos { padding: 48px 0; }
#blog-depoimentos h2.uppercase {
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}
#blog-depoimentos .blog {
  margin-bottom: 28px;
}
#blog-depoimentos .blog .media {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
#blog-depoimentos .blog .media:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
#blog-depoimentos .blog .media-left img { border-radius: 8px; }
#blog-depoimentos .blog .media-heading {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
#blog-depoimentos hr { display: none; }

/* --- portfolio (clippings grid) ----------------------------------------- */
.entry.clippings .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  float: none;
}
.entry.clippings .grid-item {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  text-align: center;
}
.entry.clippings .grid-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.entry.clippings .grid-item img { margin: 0 auto 8px; }

/* --- contact form -------------------------------------------------------- */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 73, 80, 0.12);
}
.contact-form p { margin-bottom: 14px; }
.contact-form label { font-weight: 600; color: var(--ink); }

/* --- footer -------------------------------------------------------------- */
footer { padding: 40px 0 28px; }
footer ul.list-inline { margin: 0; }
footer ul.list-inline > li {
  line-height: 1;
  padding: 0 6px;
}
footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 18px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
footer .social-link:hover,
footer .social-link:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}
footer .social-link i { font-size: 18px !important; }   /* override the 2em rule */
footer ul li { line-height: 1; }                         /* override the 61px rule */

/* --- breadcrumb --------------------------------------------------------- */
.breadcrumb {
  margin-top: 40px;
  font-size: 0.85rem;
}

/* --- entry pages (about, service detail, contact) ----------------------- */
.container.entry { padding-top: 40px; padding-bottom: 60px; }
.container.entry .title { margin-bottom: 28px; }
.container.entry img.attachment-post-thumbnail {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* --- section spacing rhythm --------------------------------------------- */
section { padding: 48px 0; }

/* --- mobile tweaks ------------------------------------------------------- */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 32px 0; }
  #servicos .servicos .servico { padding: 28px 20px; }
  .depoimentos .depoimento .text { padding: 32px 22px 22px !important; }
}
