/**
 * ==============================================================================
 * Instituto de Fadiga - Estilos da Página de Contato
 * ==============================================================================
 */

@import url('global.css');

:root {
      --ink: #13262a;
      --ink-soft: #40565a;
      --brand: #0f4f56;
      --brand-2: #1f6b70;
      --green: #6f8f55;
      --green-soft: #eaf1e5;
      --blue-soft: #e8f2f4;
      --paper: #f8f7f2;
      --white: #ffffff;
      --line: #d8e1df;
      --warm: #e5a45d;
      --shadow: 0 20px 60px rgba(15, 79, 86, .12);
      --radius: 22px;
      --radius-sm: 14px;
      --container: 1180px;
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      overflow-x: hidden;
      max-width: 100%;
    }
    body {
      margin: 0;
      font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
      max-width: 100%;
      width: 100%;
    }
    img, video, iframe, svg { max-width: 100%; }
    img { height: auto; display: block; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; max-width: 100%; }
    button { cursor: pointer; }

    .container {
      width: min(calc(100% - 36px), var(--container));
      margin-inline: auto;
      max-width: 100%;
    }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      transform: translateY(-150%);
      z-index: 9999;
      background: var(--ink);
      color: white;
      padding: 10px 14px;
      border-radius: 8px;
    }
    .skip-link:focus { transform: translateY(0); }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 14px;
      color: var(--brand);
      font-size: .8rem;
      font-weight: 800;
      letter-spacing: .11em;
      text-transform: uppercase;
      max-width: 100%;
    }
    .eyebrow::before {
      content: "";
      width: 24px;
      height: 2px;
      background: var(--warm);
      border-radius: 99px;
      flex-shrink: 0;
    }

    h1, h2, h3 {
      margin-top: 0;
      line-height: 1.1;
      letter-spacing: -.035em;
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
    h1, h2 { font-family: "Source Serif 4", Georgia, serif; }
    h1 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); margin-bottom: 18px; word-break: break-word; }
    h2 { font-size: clamp(1.75rem, 3.8vw, 3.2rem); margin-bottom: 20px; word-break: break-word; }
    h3 { font-size: 1.15rem; letter-spacing: -.02em; }
    p { margin-top: 0; overflow-wrap: break-word; word-wrap: break-word; }

    .section {
      padding: 80px 0;
      position: relative;
    }
    .section-sm { padding: 50px 0; }
    .section-white { background: var(--white); }
    .section-blue { background: var(--blue-soft); }
    .section-green { background: var(--green-soft); }
    .section-dark { background: var(--brand); color: white; }

    .header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(248, 247, 242, .93);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(216,225,223,.85);
    }
    .nav {
      min-height: 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 180px;
    }
    .brand img { width: 172px; height: auto; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 26px;
      font-size: .92rem;
      font-weight: 700;
      color: #334b4f;
    }
    .nav-links a:hover, .nav-links a:focus-visible { color: var(--brand); }
    .nav-links a.active { color: var(--brand); border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
    .nav-toggle { display: none; background: transparent; border: 0; padding: 9px; }
    .nav-toggle svg { width: 26px; height: 26px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 50px;
      padding: 13px 20px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-weight: 800;
      transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
      outline: 3px solid rgba(229,164,93,.65);
      outline-offset: 3px;
    }
    .btn-primary { background: var(--brand); color: white; }
    .btn-primary:hover { background: #0a444a; }
    .btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
    .btn-light { background: white; color: var(--brand); }
    .btn-ghost-light { border-color: rgba(255,255,255,.55); color: white; }
    .btn-small { min-height: 44px; padding: 10px 17px; font-size: .9rem; }

    .page-hero {
      padding: 64px 0 44px;
      background: linear-gradient(180deg, rgba(232,242,244,.65) 0%, var(--paper) 100%);
      border-bottom: 1px solid var(--line);
    }
    .page-hero .container {
      max-width: 860px;
      text-align: center;
    }
    .page-hero .eyebrow {
      justify-content: center;
    }
    .page-hero h1 {
      color: var(--ink);
    }
    .page-hero p {
      color: var(--ink-soft);
      font-size: 1.15rem;
      line-height: 1.6;
      margin: 0 auto;
    }

    .contact-card {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 52px;
      padding: 50px;
      border-radius: 28px;
      background: white;
      box-shadow: var(--shadow);
    }
    .contact-card .lead { color: var(--ink-soft); font-size: 1.05rem; }
    .contact-points { display: grid; gap: 16px; margin-top: 28px; }
    .contact-point { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
    .contact-point svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }
    
    .form-grid { display: grid; gap: 15px; }
    .field label { display: block; font-size: .82rem; font-weight: 800; margin-bottom: 7px; color: var(--ink); }
    .field input, .field select, .field textarea {
      width: 100%;
      padding: 13px 15px;
      background: #fbfcfb;
      border: 1px solid var(--line);
      border-radius: 12px;
      color: var(--ink);
      font-size: .92rem;
      font-family: inherit;
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .field select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2340565a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 40px;
      cursor: pointer;
    }
    .field input:focus, .field select:focus, .field textarea:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 3px rgba(15, 79, 86, .12);
      background: white;
    }
    .phone-row {
      display: grid;
      grid-template-columns: 85px 1fr;
      gap: 10px;
    }
    .field textarea { min-height: 110px; resize: vertical; }
    .form-privacy { font-size: .76rem; color: #5c7175; margin: 0; line-height: 1.45; }
    .form-note { font-size: .76rem; color: #687b7e; margin: 0; }

    .location-grid {
      display: grid;
      grid-template-columns: .72fr 1.28fr;
      gap: 20px;
      align-items: stretch;
    }
    .address-card {
      padding: 34px;
      border-radius: 20px;
      background: var(--brand);
      color: white;
    }
    .address-card p { color: rgba(255,255,255,.82); }
    .address-card a:not(.btn) { text-decoration: underline; text-underline-offset: 4px; }
    .map-frame {
      min-height: 390px;
      border: 0;
      border-radius: 20px;
      overflow: hidden;
      background: #dfe9e6;
    }
    .map-frame iframe { width: 100%; height: 100%; min-height: 390px; border: 0; display: block; }

    footer {
      background: #0b363b;
      color: white;
      padding: 58px 0 28px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.1fr .7fr .7fr 1fr;
      gap: 32px;
    }
    .footer-logo img { width: 185px; filter: brightness(0) invert(1); opacity: .95; }
    .footer-copy { color: rgba(255,255,255,.68); font-size: .86rem; max-width: 360px; margin-top: 18px; }
    .footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #cce2df; margin-bottom: 14px; }
    .footer-links { display: grid; gap: 9px; color: rgba(255,255,255,.78); font-size: .88rem; }
    .footer-links a:hover { color: white; }
    .footer-bottom {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      gap: 12px;
      border-top: 1px solid rgba(255,255,255,.12);
      margin-top: 42px;
      padding-top: 24px;
      color: rgba(255,255,255,.65);
      font-size: .84rem;
      width: 100%;
    }
    .footer-copyright {
      color: rgba(255,255,255,.65);
      text-align: center;
      width: 100%;
    }
    .footer-creator {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: rgba(255,255,255,.75);
      text-align: center;
      width: 100%;
    }
    .footer-creator a {
      display: inline-flex;
      align-items: center;
    }
    .footer-creator img {
      height: 22px;
      width: auto;
      display: inline-block;
      vertical-align: middle;
    }

    .mobile-wa {
      display: none;
      position: fixed;
      z-index: 998;
      left: 14px; right: 14px; bottom: 14px;
      min-height: 52px;
      border-radius: 999px;
      background: #0f4f56;
      color: white;
      align-items: center;
      justify-content: center;
      gap: 9px;
      font-weight: 800;
      box-shadow: 0 16px 40px rgba(15,79,86,.3);
    }

    @media (max-width: 1020px) {
      .nav-links { display: none; }
      .nav-toggle { display: inline-flex; }
      .nav.open .nav-links {
        display: flex;
        position: absolute;
        top: 80px;
        left: 20px; right: 20px;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
      }
      .nav.open .nav-links .btn { width: 100%; }
      .contact-card, .location-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 720px) {
      .container { width: min(calc(100% - 28px), var(--container)); }
      .section { padding: 48px 0; }
      .header .nav { min-height: 68px; }
      .brand img { width: 140px; }
      .nav.open .nav-links { top: 68px; left: 14px; right: 14px; }
      .contact-card { padding: 22px 18px; gap: 28px; }
      .map-frame, .map-frame iframe { min-height: 300px; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer { padding-bottom: 84px; }
      .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
      .mobile-wa { display: flex; }
      .desktop-wa { display: none; }
    }

    /* Social Media Section */
    .social-section {
      padding: 68px 0;
      background: linear-gradient(180deg, var(--white) 0%, var(--blue-soft) 100%);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .social-section .section-head {
      margin-inline: auto;
      margin-bottom: 32px;
      text-align: center;
    }
    .social-grid {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      max-width: 760px;
      margin-inline: auto;
    }
    .social-card {
      flex: 1;
      min-width: 280px;
      max-width: 360px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 22px 26px;
      display: flex;
      align-items: center;
      gap: 18px;
      text-align: left;
      box-shadow: 0 4px 20px rgba(15, 79, 86, 0.05);
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
      color: var(--ink);
      text-decoration: none;
    }
    .social-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow);
      border-color: rgba(15, 79, 86, 0.25);
    }
    .social-icon-box {
      width: 54px;
      height: 54px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: white;
      transition: transform .2s ease;
    }
    .social-card:hover .social-icon-box {
      transform: scale(1.08);
    }
    .social-icon-insta {
      background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
      box-shadow: 0 6px 16px rgba(220, 39, 67, 0.3);
    }
    .social-icon-fb {
      background: #1877F2;
      box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
    }
    .social-icon-box svg {
      width: 28px;
      height: 28px;
      fill: currentColor;
    }
    .social-info strong {
      display: block;
      font-size: 1.1rem;
      color: var(--brand);
      margin-bottom: 2px;
      font-family: "Source Serif 4", Georgia, serif;
    }
    .social-info span {
      display: block;
      font-size: .85rem;
      color: var(--ink-soft);
      line-height: 1.35;
    }
    .social-arrow {
      margin-left: auto;
      color: var(--brand);
      font-size: 1.25rem;
      font-weight: 800;
      transition: transform .2s ease;
    }
    .social-card:hover .social-arrow {
      transform: translateX(4px);
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
