/*
Theme Name: SK Marketer
Theme URI: https://surajkofficial.com/
Author: Suraj K
Author URI: https://surajkofficial.com/
Description: A fast, lightweight one-page theme for a freelance digital marketer. Hero styled as a Google search result, services, certifications, FAQ, blog, portfolio, testimonials and a built-in contact form. No page builder or plugins required. Edit contact details, social links and the hero photo under Appearance > Customize.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sk-marketer
*/

:root {
  --ink: #0e2f2e;
  --ink-2: #1c4a48;
  --paper: #f5f8f4;
  --white: #ffffff;
  --line: #d6e0da;
  --muted: #55706d;
  --gold: #f2b01e;
  --gold-deep: #c98a00;
  --link: #1a5fd0;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--dark { background: var(--ink); color: #e9f2ee; }
.section--dark p { color: #bcd2cb; }
.section--white { background: var(--white); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: #bcd2cb; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ffc441; }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ink { background: var(--ink); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,248,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.brand img { height: 40px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--gold); font-size: 1rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--gold); }
.main-nav .nav-cta a { background: var(--ink); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; border: 0; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 10px; padding: .45rem .7rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--gold) 62% 92%, transparent 92%); }
.hero-lede { font-size: 1.2rem; color: var(--ink-2); margin: 1.2rem 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.social { list-style: none; display: flex; gap: .6rem; margin: 0; padding: 0; flex-wrap: wrap; }
.social a { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .9rem; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--white); }
.social a:hover { border-color: var(--ink); }
.section--dark .social a { background: transparent; border-color: #3b6561; }
.section--dark .social a:hover { border-color: var(--gold); }

/* Search result mock */
.serp { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; box-shadow: 0 24px 60px -30px rgba(14,47,46,.45); font-family: Arial, Helvetica, sans-serif; }
.serp-bar { display: flex; align-items: center; gap: .6rem; border: 1px solid #dfe1e5; border-radius: 999px; padding: .6rem 1rem; font-size: .95rem; margin-bottom: 1rem; color: #202124; }
.serp-bar svg { flex: none; }
.serp-meta { font-size: .78rem; color: #70757a; margin-bottom: .9rem; }
.serp-result { padding: .7rem .8rem; border-radius: 12px; }
.serp-result--top { background: #fff8e3; border: 2px solid var(--gold); position: relative; display: grid; grid-template-columns: 88px 1fr; gap: .9rem; align-items: start; }
.serp-badge { position: absolute; top: -.8rem; right: .9rem; background: var(--ink); color: var(--gold); font-weight: 700; font-size: .75rem; padding: .2rem .7rem; border-radius: 999px; }
.serp-photo { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--ink); }
.serp-url { font-size: .78rem; color: #3c4043; }
.serp-title { color: var(--link); font-size: 1.15rem; margin: .1rem 0 .2rem; line-height: 1.3; }
.serp-desc { font-size: .88rem; color: #4d5156; line-height: 1.5; margin: 0; }
.serp-stars { color: #e7a500; font-size: .85rem; }
.serp-result--dim { opacity: .5; padding-top: .9rem; }
.serp-result--dim .serp-title { font-size: 1rem; }

/* Trust / certs */
.certs { padding: 2.5rem 0; background: var(--white); border-block: 1px solid var(--line); }
.certs h2 { font-size: 1.3rem; text-align: center; margin-bottom: 1.4rem; }
.cert-row { display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; align-items: center; justify-content: center; }
.cert-row img { height: 38px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.cert-row img:hover { filter: none; opacity: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-photo { border-radius: 24px; overflow: hidden; background: var(--ink); aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.fact { border-left: 4px solid var(--gold); padding: .2rem 0 .2rem .9rem; font-size: .98rem; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }

/* Services */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.8rem, 4vw, 3rem) 0; border-top: 1px solid #2f5a56; }
.service:first-of-type { border-top: 0; }
.service:nth-of-type(even) .service-img { order: 2; }
.service-img img { border-radius: 18px; background: #fff; width: 100%; }
.service h3 { font-size: 1.7rem; color: #fff; }
.service ul { padding-left: 1.2rem; margin: 0 0 1.2rem; color: #cfe1da; }
.service li { margin-bottom: .35rem; }
.service li::marker { color: var(--gold); }
.service-link { color: var(--gold); font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--gold-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--ink); }
.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq .answer p { margin: 0; }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--line); }
.post-card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.post-card p { color: var(--muted); font-size: .98rem; }
.post-card .more { margin-top: auto; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); align-self: flex-start; }

/* Portfolio */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.work a { display: block; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.work img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.work a:hover img { transform: scale(1.04); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.quote { background: var(--white); border-radius: 18px; padding: 1.7rem; border: 1px solid var(--line); display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0 0 1.4rem; font-size: 1.02rem; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-head); font-size: 3.4rem; line-height: .6; color: var(--gold-deep); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); flex: none; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote small { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.1rem; }
.contact-list small { display: block; color: #9dbcb4; }
.contact-list a, .contact-list span { font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.map { margin-top: 1.5rem; border-radius: 16px; overflow: hidden; border: 0; width: 100%; height: 220px; }
.form { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.form label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--paper); color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(242,176,30,.5); }
.form textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 600; }
.notice--ok { background: #e1f5e5; color: #14532d; }
.notice--err { background: #fde4e1; color: #7a1d12; }

/* Footer */
.site-footer { background: #091f1e; color: #a9c4bd; padding: 2rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* Inner pages / posts */
.page-hero { padding: 3rem 0 1rem; }
.entry { max-width: 760px; margin-inline: auto; padding: 1rem 0 4rem; }
.entry img { border-radius: 14px; margin: 1.5rem 0; }
.entry h2 { margin-top: 2rem; font-size: 1.8rem; }
.entry a { color: var(--link); }
.entry-meta { color: var(--muted); margin-bottom: 1.5rem; }
.pagination { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; }
.pagination .current { background: var(--ink); color: #fff; }
.floating-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; background: #25d366; color: #063; font-weight: 800; padding: .8rem 1.2rem; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption, .gallery-caption, .sticky, .bypostauthor { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Single entrance for the search result card */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.serp { animation: rise .7s ease both; }
.serp-result--top { animation: rise .7s .35s ease both; }

@media (max-width: 880px) {
  .hero .wrap, .about-grid, .contact-grid, .service { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service-img { order: 0; }
  .about-photo { max-width: 360px; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .serp-result--top { grid-template-columns: 64px 1fr; }
  .serp-photo { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
