
/*
Theme Name: Sleepy Little Fish Blank
Author: Flora
Version: 1.0
*/

/* ========================================
   RESET
======================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #eef7fd;
  color: #102040;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ========================================
   COLOR VARIABLES
======================================== */

:root {

  /* Main */
  --bg-color: #eef7fd;
  --text-color: #102040;
  --text-light: #5d708f;

  /* Brand */
  --primary: #57b7ff;
  --primary-dark: #2196f3;

  /* Cards */
  --card-blue: #dff3ff;
  --card-purple: #efe8ff;
  --card-cyan: #e3f7f7;
  --card-beige: #fdf1e3;

  /* White */
  --white: #ffffff;

  /* Shadow */
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);

  /* Radius */
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;

  /* Width */
  --container-width: 1180px;
}

/* ========================================
   GLOBAL CONTAINER
======================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-color);
}

h1 {
  font-size: 72px;
}

h2 {
  font-size: 48px;
}

h3 {
  font-size: 28px;
}

p {
  color: var(--text-light);
  font-size: 18px;
}

/* ========================================
   BUTTONS
======================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 16px 32px;

  background: var(--primary);
  color: var(--white);

  border-radius: 999px;

  font-weight: 600;
  font-size: 16px;

  transition: 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;

  border: 2px solid var(--primary);
  border-radius: 999px;

  color: var(--primary);

  font-weight: 600;

  transition: 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ========================================
   HEADER
======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  z-index: 999;

  background: rgba(7, 18, 44, 0.75);
  backdrop-filter: blur(10px);

  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.main-nav a:hover {
  opacity: 0.7;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  padding-top: 120px;
  padding-bottom: 120px;

  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(7,18,44,0.65),
    rgba(7,18,44,0.2)
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 620px;
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  margin-bottom: 40px;
}

/* ========================================
   SECTION
======================================== */

.section {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 70px;
}

/* ========================================
   CARD GRID
======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.sleep-card {
  padding: 42px 30px;

  border-radius: var(--radius-lg);

  text-align: center;

  transition: 0.3s ease;
  display: block;
}

.sleep-card:hover {
  transform: translateY(-8px);
}

.sleep-card img {
  width: 140px;
  margin: 0 auto 30px;
}

.sleep-card h3 {
  margin-bottom: 18px;
}

.sleep-card p {
  margin-bottom: 28px;
}

.card-blue {
  background: var(--card-blue);
}

.card-purple {
  background: var(--card-purple);
}

.card-cyan {
  background: var(--card-cyan);
}

.card-beige {
  background: var(--card-beige);
}

.card-arrow {
  width: 54px;
  height: 54px;

  margin: 0 auto;

  border-radius: 50%;

  background: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  color: var(--primary);
  text-decoration: none;
}

/* ========================================
   STORY CARDS
======================================== */

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.story-card {
  background: white;

  border-radius: 22px;
  overflow: hidden;

  box-shadow: var(--shadow-soft);

  transition: 0.3s ease;
}

.story-card:hover {
  transform: translateY(-8px);
}

.story-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.story-content {
  padding: 24px;
}

.story-content h4 {
  margin-bottom: 12px;
}

/* ========================================
   FEATURE SECTION
======================================== */

.feature-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-video {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.feature-content h2 {
  margin-bottom: 20px;
}

.feature-content p {
  margin-bottom: 30px;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: #08172f;
  color: rgba(255,255,255,0.8);

  padding-top: 90px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-title {
  color: white;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-subscribe {
  display: flex;
  margin-top: 20px;
}

.footer-subscribe input {
  flex: 1;

  padding: 16px 20px;

  border-radius: 999px 0 0 999px;

  border: none;
}

.footer-subscribe button {
  padding: 16px 24px;

  border-radius: 0 999px 999px 0;

  background: var(--primary);
  color: white;

  cursor: pointer;
}

.footer-bottom {
  margin-top: 60px;

  text-align: center;

  font-size: 14px;
  opacity: 0.7;
}

/* ========================================
   RESPONSIVE
======================================== */

/* Laptop */
@media (max-width: 1200px) {

  h1 {
    font-size: 60px;
  }

  .card-grid,
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-wrap {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 768px) {

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 36px;
  }

  p {
    font-size: 16px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 160px;
    padding-bottom: 100px;
  }

  .card-grid,
  .story-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 90px 0;
  }

  .sleep-card {
    padding: 36px 24px;
  }
}

/* Mobile */
@media (max-width: 480px) {

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .footer-subscribe {
    flex-direction: column;
    gap: 12px;
  }

  .footer-subscribe input,
  .footer-subscribe button {
    width: 100%;
    border-radius: 999px;
  }
}

