/* Contact page ("Contact us" layout) — scoped styles.
 * Enqueued on the contact / contact-us page (see todo_enqueue_contact_assets in functions.php).
 */

/* Align content width + gutters with the header nav bar
 * (a 1050px centered box with 24px side padding). The Flatsome row
 * defaults to 1160px + an extra 15px col padding — cap it to 1050 and
 * drop the col padding so the edges line up with the header. Scoped:
 * this stylesheet only loads on the contact page. */
.row.row-main{max-width:1050px}
.row.row-main>.col{padding-left:0;padding-right:0}

.ttc-eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#9ca3af;margin:50px 0 10px}
.ttc-title{font-size:40px;color:#111827;line-height:1.1;margin:0 0 18px}
.ttc-lead{font-size:18px;line-height:1.6;color:#64748b;max-width:520px;margin:0 0 40px;position:relative;padding-bottom:26px}
.ttc-lead::after{content:"";position:absolute;left:0;bottom:0;width:48px;height:4px;background:#f59e0b;border-radius:2px}

/* Card grid — matches the Todo.Today Guides "Browse by Category" cards */
.ttc-cards{gap:1.5rem;margin-bottom:44px}
.ttc-cards .ttc-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:32px;box-shadow:0 1px 2px rgba(15,23,42,.05);position:relative;overflow:hidden;cursor:pointer;transition:border-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1)}
.ttc-cards .ttc-card::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(243,244,246,.6) 0%,rgba(243,244,246,0) 100%);opacity:0;transition:opacity .2s cubic-bezier(.4,0,.2,1);pointer-events:none}
.ttc-cards .ttc-card:hover{border-color:#d1d5db;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.ttc-cards .ttc-card:hover::before{opacity:1}
.ttc-ic{position:relative;z-index:1;width:64px;height:64px;border-radius:18px;background:#f3f4f6 center / 32px 32px no-repeat;margin:0 auto 24px;font-size:0;transition:background-color .25s cubic-bezier(.4,0,.2,1),transform .25s cubic-bezier(.4,0,.2,1)}
.ttc-card:hover .ttc-ic{background-color:#111827;transform:scale(1.08)}
.ttc-card--email .ttc-ic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E")}
.ttc-card--locations .ttc-ic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.ttc-card--guide .ttc-ic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E")}
.ttc-card--email:hover .ttc-ic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E")}
.ttc-card--locations:hover .ttc-ic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.ttc-card--guide:hover .ttc-ic{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E")}
.ttc-card__title{position:relative;z-index:1;font-size:20px;line-height:1.3;font-weight:600;color:#111827;margin:0 0 12px}
.ttc-card__desc{position:relative;z-index:1;font-size:14px;line-height:1.6;color:#6b7280;margin:0 0 auto}
.ttc-cta{position:relative;z-index:1;margin:20px 0 0;font-size:14px;font-weight:500;color:#6b7280;pointer-events:none;transition:color .15s cubic-bezier(.4,0,.2,1)}
.ttc-card:hover .ttc-cta{color:#111827}
.ttc-cta-arrow{display:inline-block;transition:transform .2s cubic-bezier(.4,0,.2,1)}
.ttc-card:hover .ttc-cta-arrow{transform:translateX(4px)}
.ttc-cardlink{margin:0}
.ttc-cardlink a{position:absolute;inset:0;z-index:3;font-size:0;line-height:0;color:transparent;text-decoration:none}

/* Reveal-on-click message form */
.ttc-formwrap{display:none;max-width:640px;margin:36px 0 0;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:28px;box-shadow:0 8px 30px rgba(17,24,39,.07);scroll-margin-top:90px}
.ttc-formwrap.is-open{display:block}
.ttc-formwrap__title{font-size:20px;color:#111827;margin:0 0 16px}
.ttc-formwrap label{display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:16px}
.ttc-formwrap .wpcf7-form-control-wrap{display:block;margin-top:6px}
.ttc-formwrap input[type=text],.ttc-formwrap input[type=email],.ttc-formwrap textarea{width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;font-size:15px;font-family:inherit;color:#111827;background:#fff}
.ttc-formwrap input[type=text]:focus,.ttc-formwrap input[type=email]:focus,.ttc-formwrap textarea:focus{outline:none;border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.15)}
.ttc-formwrap textarea{min-height:130px;resize:vertical}
.ttc-formwrap .wpcf7-submit{color:#fff;background:#171717; border:none;padding:13px 28px;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;width:auto}

@media(max-width:781px){.ttc-title{font-size:32px}}
