/*
Theme Name: The Ranking Machine
Theme URI: https://therankingmachine.com/
Author: The Ranking Machine
Author URI: https://therankingmachine.com/
Description: A simple and minimal theme for The Ranking Machine. White background, clear typography, and straightforward pages for services, company information, and contact details.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: therankingmachine
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #000000;
}

h1,
h2,
h3 {
  color: #111827;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.3;
}

.site-brand:hover {
  color: #111827;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.main-nav a {
  text-decoration: none;
  color: #374151;
  font-size: 16px;
}

.main-nav a:hover {
  color: #111827;
  text-decoration: underline;
}

.site-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero {
  padding-top: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 48px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #374151;
  max-width: 760px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 16px;
  border: 1px solid #111827;
}

.btn:hover {
  color: #ffffff;
  background: #000000;
}

.btn-outline {
  background: #ffffff;
  color: #111827;
}

.btn-outline:hover {
  color: #111827;
  background: #f3f4f6;
}

.section {
  margin-bottom: 56px;
}

.section-intro {
  max-width: 760px;
  color: #374151;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.service-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.light-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding-top: 20px;
  padding-bottom: 20px;
}

.faq-item:first-of-type {
  border-top: 1px solid #e5e7eb;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.founder-layout {
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.founder-photo {
  width: 100%;
  max-width: 288px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.contact-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.contact-box p {
  margin-bottom: 0.25rem;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-form {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px;
  max-width: 720px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.form-field button {
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.form-notice {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: #f9fafb;
}

.form-notice.success {
  border-color: #15803d;
  background: #f0fdf4;
}

.form-notice.error {
  border-color: #b91c1c;
  background: #fef2f2;
}

.page-content {
  max-width: 800px;
}

.page-content h2 {
  margin-top: 2rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding-top: 40px;
  padding-bottom: 32px;
  color: #4b5563;
  font-size: 16px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-inner ul {
  list-style: none;
  padding-left: 0;
}

.footer-inner a {
  color: #374151;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  margin-top: 32px;
  padding-top: 20px;
}

.section-label {
  color: #1d4a7a;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.site-brand {
  display: flex;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #13294b;
  color: #ffffff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

.service-icon,
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.service-icon svg,
.contact-icon svg {
  width: 24px;
  height: 24px;
}

.icon-blue {
  background: #eef3fb;
  color: #1d4a7a;
}

.icon-green {
  background: #eaf5ee;
  color: #1e6b4a;
}

.icon-amber {
  background: #fdf3e3;
  color: #8a5a00;
}

.icon-purple {
  background: #f1eefb;
  color: #5b3fa8;
}

.icon-teal {
  background: #e6f4f1;
  color: #0f766e;
}

.service-card:hover {
  border-color: #cbd5e1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #13294b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.light-blue {
  background: #eef3fb;
  border-color: #dbe7f5;
}

.cta-dark {
  background: #13294b;
  border-color: #13294b;
  color: #e8eef5;
}

.cta-dark h2 {
  color: #ffffff;
}

.cta-dark p {
  color: #dbe4ee;
}

.cta-dark a {
  color: #ffffff;
}

.cta-dark .btn {
  background: #ffffff;
  color: #13294b;
  border-color: #ffffff;
}

.cta-dark .btn:hover {
  background: #eef3fb;
  color: #13294b;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-item:first-of-type {
  border-top: 1px solid #e5e7eb;
}

.site-footer {
  border-top: 3px solid #13294b;
}

@media (max-width: 800px) {
  h1 {
    font-size: 1.85rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid,
  .two-col,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .founder-layout {
    grid-template-columns: 1fr;
  }

  .site-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }
}
