/*
Theme Name: Tylo Technologies
Theme URI: https://tylotechnologies.com
Author: Tylo Technologies
Description: Custom "Deep Water" theme for Tylo Technologies — dark ink-teal ground with warm cream-gold accents, built around the Ageless Security brand framework.
Version: 1.0
Requires PHP: 7.4
Text Domain: tylo
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #123A44;
  --ink-deep: #0E2E36;
  --teal: #146575;
  --teal-light: #EAF6F8;
  --gold: #C98A3E;
  --gold-light: #F3D9AE;
  --gold-lighter: #F3ECDA;
  --cream: #FBFAF6;
  --gray: #5A6B69;
  --border: #DDE6E4;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'IBM Plex Sans', sans-serif; background: var(--cream); color: var(--ink); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; color: var(--ink); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 48px; background: var(--ink-deep); position: sticky; top: 0; z-index: 50; }
.navbar .brand { display: flex; align-items: center; gap: 12px; }
.navbar .brand img { height: 40px; width: auto; }
.navbar .brand span { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; color: #F3F0E8; }
.navbar .links { display: flex; gap: 26px; font-size: 13.5px; font-weight: 500; color: #C3D6D9; list-style: none; margin: 0; padding: 0; }
.navbar .links a:hover { color: var(--gold-light); }
.navbar .cta { background: var(--gold-light); color: var(--ink); border: none; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
@media (max-width: 760px) { .navbar { padding: 16px 20px; } .navbar .links { display: none; } }

/* ===== HERO ===== */
.hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%); padding: 72px 64px; position: relative; overflow: hidden; }
.moso-silhouette { position: absolute; right: -140px; top: -30px; width: 700px; height: auto; opacity: 0.4; filter: grayscale(100%) invert(100%) brightness(0.9) contrast(1.15); mix-blend-mode: screen; pointer-events: none; }
.hero .eyebrow { display: inline-block; background: rgba(243,217,174,0.12); color: var(--gold-light); font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; padding: 6px 14px; border-radius: 20px; margin-bottom: 22px; border: 1px solid rgba(243,217,174,0.25); position: relative; }
.hero h1 { font-size: 44px; font-weight: 500; line-height: 1.2; color: #F3F8F7; max-width: 620px; margin: 0 0 18px; position: relative; }
.hero h1 .accent { color: var(--gold-light); font-style: italic; font-weight: 600; }
.hero p.sub { font-size: 16px; line-height: 1.65; color: #A9C2C6; max-width: 460px; margin: 0 0 28px; position: relative; }
.hero .cta-row { display: flex; gap: 14px; position: relative; flex-wrap: wrap; }
.btn-bold { background: var(--gold-light); color: var(--ink); border: none; padding: 15px 28px; border-radius: 6px; font-size: 14.5px; font-weight: 700; cursor: pointer; display: inline-block; }
.btn-outline { background: transparent; border: 1.5px solid #2E5A61; color: #DCEDEF; padding: 14px 26px; border-radius: 6px; font-size: 14.5px; font-weight: 500; cursor: pointer; display: inline-block; }
@media (max-width: 760px) { .hero { padding: 48px 24px; } .hero h1 { font-size: 30px; } .moso-silhouette { width: 420px; opacity: 0.25; } }

/* ===== PAGE HERO (interior pages) ===== */
.page-hero { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%); padding: 52px 64px; position: relative; overflow: hidden; }
.page-hero .eyebrow { display: inline-block; background: rgba(243,217,174,0.12); color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; border: 1px solid rgba(243,217,174,0.25); }
.page-hero h1 { font-size: 34px; font-weight: 500; color: #F3F8F7; max-width: 640px; position: relative; margin: 0; }
.page-hero p.sub { font-size: 15px; color: #A9C2C6; max-width: 520px; margin-top: 12px; position: relative; }
@media (max-width: 760px) { .page-hero { padding: 36px 24px; } .page-hero h1 { font-size: 26px; } }

/* ===== PILLARS ===== */
.pillars { display: flex; background: #0A2429; }
.pillars div { flex: 1; padding: 20px 18px; text-align: center; border-right: 1px solid rgba(243,217,174,0.1); }
.pillars div:last-child { border-right: none; }
.pillars strong { display: block; font-family: 'Fraunces', serif; font-size: 14.5px; color: var(--gold-light); margin-bottom: 3px; }
.pillars span { font-size: 11.5px; color: #6E8A8E; }
@media (max-width: 760px) { .pillars { flex-wrap: wrap; } .pillars div { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(243,217,174,0.1); } }

/* ===== WHO WE HELP GRID ===== */
.who-section { background: var(--cream); padding: 56px 64px 64px; }
.who-section .heading { text-align: center; margin-bottom: 32px; }
.who-section .heading .label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.who-section .heading h2 { font-size: 28px; font-weight: 500; margin: 0; }
.niche-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.niche-card { background: #F3F0E6; border-radius: 12px; padding: 20px 20px 18px; border-left: 3px solid var(--teal); display: block; }
.niche-card.accent { border-left-color: var(--gold); }
.niche-card .icon { width: 32px; height: 32px; border-radius: 8px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 15px; }
.niche-card.accent .icon { background: var(--gold-lighter); }
.niche-card strong { display: block; font-family: 'Fraunces', serif; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.niche-card span.desc { font-size: 12.5px; color: var(--gray); line-height: 1.5; display: block; margin-bottom: 10px; }
.niche-card .link { font-size: 12px; font-weight: 600; color: var(--teal); }
.niche-card.accent .link { color: #B87A2E; }
@media (max-width: 900px) { .niche-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .niche-grid { grid-template-columns: 1fr; } .who-section { padding: 40px 20px; } }

/* ===== CONTENT SECTIONS ===== */
.section { padding: 56px 64px; }
.section.alt { background: #F3F0E6; }
.section h2 { font-size: 26px; font-weight: 500; margin: 0 0 16px; }
.section h3 { font-size: 18px; font-weight: 600; color: var(--teal); margin: 24px 0 8px; font-family: 'IBM Plex Sans', sans-serif; }
.section p { color: #3E4E4C; margin: 0 0 14px; max-width: 720px; }
.section ul { margin: 0 0 14px 20px; color: #3E4E4C; }
.section li { margin-bottom: 6px; }
@media (max-width: 760px) { .section { padding: 36px 22px; } }

.cta-block { background: var(--gold-lighter); border-radius: 14px; padding: 28px 32px; margin: 28px 0; }
.cta-block h3 { font-family: 'Fraunces', serif; font-size: 20px; margin: 0 0 6px; color: var(--ink); }
.cta-block p { color: #4A4A40; margin: 0 0 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ===== BLOG / RESOURCES ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.blog-card .thumb { height: 150px; background: linear-gradient(135deg, var(--teal), var(--ink)); background-size: cover; background-position: center; }
.blog-card .body { padding: 18px 20px 20px; }
.blog-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.blog-card h3 { font-size: 16.5px; margin: 0 0 8px; color: var(--ink); }
.blog-card p { font-size: 13px; color: var(--gray); margin: 0; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink-deep); color: #C3D6D9; padding: 44px 64px 28px; }
.site-footer .foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; margin-bottom: 28px; }
.site-footer .brand { display: flex; align-items: center; gap: 10px; }
.site-footer .brand img { height: 32px; }
.site-footer .brand span { font-family: 'Fraunces', serif; color: #F3F0E8; font-weight: 600; }
.site-footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer .cols div strong { display: block; color: #F3F0E8; font-size: 13px; margin-bottom: 10px; }
.site-footer .cols div a { display: block; font-size: 12.5px; color: #9BB4B8; margin-bottom: 7px; }
.site-footer .bottom { border-top: 1px solid rgba(243,217,174,0.1); padding-top: 18px; font-size: 12px; color: #6E8A8E; }
@media (max-width: 760px) { .site-footer { padding: 32px 24px 20px; } }

/* ===== FORMS ===== */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; background: #fff; }
.form-submit { background: var(--teal); color: #fff; border: none; padding: 14px 30px; border-radius: 6px; font-size: 14.5px; font-weight: 700; cursor: pointer; }

/* ===== WP DEFAULTS CLEANUP ===== */
.alignleft { float: left; margin-right: 16px; }
.alignright { float: right; margin-left: 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
